/* Custom styles for Blast Off Gaming */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: #2d2d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d1832;
}

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

/* Reveal animations (progressive enhancement - only apply when JS is enabled) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #f5d78e 0%, #d4a843 50%, #b88f2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burgundy glow effect */
.burgundy-glow {
    box-shadow: 0 0 40px rgba(158, 27, 60, 0.3);
}

/* Nav scroll state */
nav.scrolled {
    background: rgba(10, 10, 15, 0.98) !important;
    border-bottom-color: rgba(158, 27, 60, 0.5) !important;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 400px;
}

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

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

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Subtle card shimmer on hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}
