/* Custom styles for Boom Shack */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 26, 46, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal base — always visible by default (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero text glow */
h1 span {
    text-shadow: 0 2px 20px rgba(237, 115, 82, 0.3);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Subtle pattern overlay for sections */
.bg-pattern-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f8c4b4;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #d13f22;
    color: #ffffff;
}

/* Map container fix */
#visit .rounded-2xl {
    position: relative;
    overflow: hidden;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefcf8 inset !important;
    -webkit-text-fill-color: #0f1a2e !important;
}
