/* assets/css/style.css */

/* =========================================
   1. GLOBAL RESETS & SCROLL BEHAVIOR
   ========================================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* This stops the horizontal scroll */
    scroll-behavior: smooth;
}

body {
    background-color: #172026; /* Mirage */
    color: #ededed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative; /* Helps contain absolute elements */
}

/* =========================================
   2. CUSTOM SCROLLBAR (The "Premium" Feel)
   ========================================= */
/* Width */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* For horizontal scrollbars */
}

/* Track */
::-webkit-scrollbar-track {
    background: #0f1519; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #BF5841; /* Crail */
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #d6654c; 
}

/* =========================================
   3. UTILITIES
   ========================================= */

/* Hide Scrollbar (For the Artist Horizontal Scroll) 
   Keeps functionality but hides the ugly bar */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Text Selection Color */
::selection {
    background: #BF5841; /* Crail */
    color: #ffffff;
}

/* =========================================
   4. COMPONENT SPECIFIC STYLES
   ========================================= */

/* Spotify Glassmorphism Wrapper */
.spotify-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.5s ease;
}

.spotify-wrapper:hover {
    border-color: rgba(191, 88, 65, 0.5); /* Crail opacity */
    box-shadow: 0 0 30px rgba(191, 88, 65, 0.1);
    transform: translateY(-5px);
}

/* Video Modal */
#video-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999; /* Always on top */
}

#video-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* BeatStars Iframe Skeleton Loader Background */
iframe {
    background-color: #000;
}

/* =========================================
   5. ANIMATIONS
   ========================================= */

/* The "Wiggle" Animation (From your original config) */
@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.animate-wiggle:hover {
    animation: wiggle 0.5s ease-in-out infinite;
}

/* Slow Pulse for Background Gradients */
@keyframes slow-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.animate-slow-pulse {
    animation: slow-pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =========================================
   6. MOBILE MENU OVERRIDES
   ========================================= */
#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

/* Ensure Logo stays clickable over the full screen menu */
header a {
    z-index: 51; 
}

/* Make sure the mobile toggle button is above the overlay */
#mobile-menu-btn {
    z-index: 51;
}

/* assets/css/style.css */

/* ... (keep existing code) ... */

/* SCROLLED HEADER STATE 
   Use this instead of Tailwind arbitrary values to ensure it always works.
   background: rgba(0, 0, 0, 0.97); -> Black at 97% opacity.
*/
.header-scrolled {
    background-color: rgba(0, 0, 0, 0.97) !important;
    padding-top: 1rem !important;    /* Equivalent to py-4 */
    padding-bottom: 1rem !important; /* Equivalent to py-4 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* =========================================
   7. ROSTER PAGE STYLES
   ========================================= */

/* Infinite Scroll Animations */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-scroll-left {
    animation: scroll-left 30s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 35s linear infinite;
}

/* Outlined Text (Hollow Text Effect) */
.text-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
    color: transparent;
}

/* assets/css/style.css */

/* ... existing code ... */

/* 8. HEADER STATES (Fix for Mobile Menu) */

/* Default transition for the header background/padding */
#main-header {
    transition: all 0.3s ease-in-out;
}

/* Scrolled State: Frosted Glass */
.header-scrolled {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu Open State: Force Solid Background */
/* This ensures the header matches the menu background seamlessly */
.header-menu-open {
    background-color: #172026 !important; /* Mirage */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}