/* Custom styles for Bulgogi House Sports Bar */

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: #0f172a;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(8, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

/* Mobile menu animations */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) {
        transition-delay: 0.1s;
    }
    
    .reveal:nth-child(3) {
        transition-delay: 0.2s;
    }
}

/* For reduced motion preference, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(20px) rotate(40deg);
    }
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px #14b8a6;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* Print styles */
@media print {
    nav, #mobileMenu, button, .reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-slate-950, .bg-slate-900 {
        background: white !important;
    }
    
    .text-white, .text-slate-300, .text-slate-400 {
        color: black !important;
    }
    
    .text-teal-400, .text-teal-300 {
        color: #0d9488 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-teal-500 {
        background-color: ButtonText;
    }
    
    .text-teal-400 {
        color: ButtonText;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0;
    }
    
    .font-display.text-6xl {
        font-size: 3rem;
    }
}

/* Reduce motion for performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
