/* Custom styles for Bodega Bar */

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

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 251, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Menu tabs */
.menu-tab {
    color: #78716c;
    background: transparent;
}

.menu-tab.active {
    color: #ffffff;
    background: #d44a2b;
    box-shadow: 0 2px 8px rgba(212, 74, 43, 0.3);
}

.menu-tab:hover:not(.active) {
    color: #d44a2b;
    background: #fdf0eb;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d44a2b;
}

/* Selection color */
::selection {
    background: #f9d7cc;
    color: #6b231a;
}
