/* Custom CSS Overrides */

/* Base grid system */
* {
    box-sizing: border-box;
}

/* 14px base grid */
.grid-14 {
    padding: 14px;
    margin: 14px 0;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Navbar scroll behavior */
.navbar-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.navbar-hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* Hero background overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.7) 0%, rgba(20, 20, 20, 0.3) 100%);
}

/* Accordion animations */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

/* Video responsive wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox animations */
#lightbox {
    transition: opacity 0.3s ease-out;
}

#lightbox.show {
    display: flex !important;
    opacity: 1;
}

/* Track player styling */
.track-item {
    transition: all 0.2s ease;
}

.track-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Press logo animation */
.press-logos {
    animation: slideLogos 20s linear infinite;
}

@keyframes slideLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile-specific styles */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 10vw;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid #C6A15B;
    outline-offset: 2px;
}

/* Touch targets */
@media (max-width: 768px) {
    button,
    a {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Preload spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C6A15B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}