/*
Theme Name: Bronirka
Theme URI: https://bronirka.ru
Author: Bronirka Team
Author URI: https://bronirka.ru
Description: Современная тема для системы онлайн-бронирования Бронирка. Включает лендинг, поддержку страниц и блога.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bronirka
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready

Бронирка — Умная система записи клиентов
*/

/* ==========================================================================
   Custom Styles (дополнение к Tailwind)
   ========================================================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(99, 102, 241, 0.2);
    color: #1f2937;
}

/* Focus styles - only for keyboard navigation */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for pulse effect */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* WordPress specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.entry-content > * + * {
    margin-top: 1.5rem;
}

/* Admin bar fix */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Blob animation for background decorations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Hover card effects */
.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

/* Gradient text (if needed) */
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    header,
    #cta,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
