/* Custom styles for Bernie's Cafe */

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

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f1f5f9;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Menu tab active state */
.menu-tab {
    color: #94a3b8;
    background: transparent;
}
.menu-tab:hover {
    color: #f1f5f9;
}
.menu-tab.active {
    color: #0f172a;
    background: linear-gradient(135deg, #d4a843, #e2c05a);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* Menu panel transitions */
.menu-panel {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal base styles */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Scroll reveal hidden state - applied by JS */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .menu-panel {
        animation: none;
    }
    @keyframes fadeIn {
        from { opacity: 1; }
        to { opacity: 1; }
    }
}

/* Navbar transition for scroll state */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero gradient text animation */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a843, #14b8a6);
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Decorative line animation on hover */
.hover\:border-gold-500\/30:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

/* Subtle pulse for the open indicator */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse-gold 2s ease-in-out infinite;
}
