/* Custom styles for Bottoms Up Tavern */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 149, 46, 0.3);
    color: #faf8f5;
}

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-fade {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .reveal-left {
        opacity: 0;
        animation: fadeInLeft 0.8s ease forwards;
    }
    
    .reveal-right {
        opacity: 0;
        animation: fadeInRight 0.8s ease forwards;
    }
    
    .reveal-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }
}

/* Scroll-triggered reveals (enhancement via JS) */
.reveal-fade.scroll-reveal,
.reveal-left.scroll-reveal,
.reveal-right.scroll-reveal,
.reveal-up.scroll-reveal {
    opacity: 0;
}

.reveal-fade.scroll-reveal.visible,
.reveal-left.scroll-reveal.visible,
.reveal-right.scroll-reveal.visible,
.reveal-up.scroll-reveal.visible {
    opacity: 1;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 149, 46, 0.1);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Gold accent glow */
.glow-gold {
    box-shadow: 0 0 30px rgba(201, 149, 46, 0.2);
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #c9952e;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Reduced motion */
@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;
    }
}
