/* Custom styles for The Pub at the Ridge */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0610;
}
::-webkit-scrollbar-thumb {
    background: #3b0764;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #581c87;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #faf5ff;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 3, 9, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(88, 28, 135, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Reveal animations - progressive enhancement via JS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-up.is-hidden,
    .reveal-left.is-hidden,
    .reveal-right.is-hidden {
        opacity: 0;
    }

    .reveal-up.is-hidden {
        transform: translateY(40px);
    }

    .reveal-left.is-hidden {
        transform: translateX(-40px);
    }

    .reveal-right.is-hidden {
        transform: translateX(40px);
    }
}

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

#mobileMenu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

/* Gold shimmer on hover for CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Input autofill styling for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d0610 inset !important;
    -webkit-text-fill-color: #f3e8ff !important;
    caret-color: #f3e8ff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a0a1e 0%, #3b0764 100%);
    min-height: 4px;
}
