/* --- Global Styles & Variables --- */
:root {
    --color-dark: #0A0A0A; /* Deep Black */
    --color-light: #F5F5DC; /* Cream/Off-White */
    --color-accent: #FFC000; /* A brighter, eye-catching Gold */
    --font-primary: 'Montserrat', sans-serif;
    --spacing-large: 80px;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark); 
    color: var(--color-light);
    line-height: 1.6;
}

a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* WIDER, CLOSER SECTION DIVIDER STYLE */
.section-divider {
    border: none;
    height: 1px;
    max-width: 800px;
    margin: 20px auto;
    background: linear-gradient(to right, 
        rgba(255, 192, 0, 0), 
        var(--color-accent), 
        rgba(255, 192, 0, 0)
    );
    opacity: 0.4; 
}

/* --- Section Formatting --- */
.section-container {
    padding: var(--spacing-large) 5%;
    max-width: 1200px;
    margin: 0 auto;
    background: none; 
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-accent);
    letter-spacing: 5px;
}

/* Specific title style for the left column in About/Contact (Desktop default) */
.section-title-left {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: left; 
    margin-bottom: 20px;
    color: var(--color-accent);
    letter-spacing: 5px;
}

/* --- Call-to-Action Buttons (General Style) --- */
.main-cta {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--color-accent);
    background-color: transparent;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.main-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 0 15px rgba(255, 192, 0, 0.6); 
}

/* 1. HERO SECTION */
#hero-section, #listen-hero-section {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
}

/* VIDEO SCALING FIX */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
    opacity: 0.35; 
}

.hero-content {
    /* This centers the entire block (Title, CTA) in the middle of the screen */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10; /* Lower z-index than nav */
    text-align: center;
    width: 90%;
    padding-top: 50px; 
}

.nbj-title {
    font-size: clamp(3rem, 6vw, 7rem); 
    margin: 0 0 40px 0; 
    color: var(--color-light); 
    letter-spacing: clamp(5px, 1.5vw, 15px);
    font-weight: 900;
}

.header-cta {
    margin-top: 40px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
}

/* 🚩 GLOBAL NAVIGATION POSITION (FOR index.html - 55%) */
.main-nav {
    display: flex; /* Display as a horizontal row by default */
    justify-content: center;
    
    /* Desktop Positioning - Default */
    position: absolute; 
    top: 55%; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 15; 
    
    width: 100%;
    max-width: 800px; 
    margin-bottom: 20px; 
}

.main-nav a {
    font-size: 1.1rem;
    padding: 0 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative; 
    color: var(--color-light); 
}

/* 🚩 HIDE THE MOBILE-ONLY LINK ON DESKTOP GLOBALLY 🚩 */
.listen-mobile-only {
    display: none; 
}

/* HAMBURGER ICON STYLES (Pinned to Viewport) */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    
    position: fixed; 
    top: 30px;
    right: 5%;
    
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 2000; 
    padding: 0;
    flex-direction: column;
    justify-content: space-around;
}

.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transition: all 0.3s ease-in-out;
}

/* TRANSFORM STYLES FOR X ICON */
.menu-toggle.open .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 9px);
}

.menu-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -9px);
}

/* NAVIGATION UNDERLINE/GLOW EFFECT */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    box-shadow: 0 0 5px var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* 2. UPCOMING SHOWS SECTION */
.show-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.show-item {
    grid-template-columns: 150px 1fr 150px; 
    display: grid;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.show-item:hover {
    background-color: rgba(255, 192, 0, 0.05); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); 
}

.show-date {
    font-weight: 700;
    color: var(--color-accent);
    text-align: left; 
    padding-left: 10px;
}

.show-headliner {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.show-venue {
    font-weight: 300;
    opacity: 0.7;
    text-align: right; 
    padding-right: 10px;
}

.show-venue a {
    color: var(--color-light);
    opacity: 0.7;
}

.show-venue a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* 3. FEATURED MUSICIANS SECTION */
.artist-content-split {
    display: block; 
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center; 
}

.artist-card {
    background-size: cover;
    background-position: center; 
    height: 500px; 
    width: 100%; 
    margin: 0 auto; 
    position: relative;
    overflow: hidden;
    filter: none;
    transition: all 0.5s ease;
    box-shadow: none; 
    background-image: url('ice.jpg'); 
}

/* ARTIST NAME OVERLAY (Desktop Default: Bottom Left) */
.artist-name-overlay {
    position: absolute;
    bottom: 15px; 
    left: 20px; 
    padding: 0; 
    background: none; 
    color: var(--color-light);
}

.artist-name-overlay h3 {
    font-weight: 900;
    font-size: 1.8rem; 
    color: var(--color-light); 
    letter-spacing: 2px;
    margin: 0;
    text-align: left; 
}

/* ARTIST BIO STYLES */
.artist-bio-text {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.artist-bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 300;
}


/* 4. ABOUT & CONTACT SECTION */
.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 40px; 
    position: relative;
    
    max-width: 100%; 
    margin: 0; 
}

/* Left Align Text on Desktop */
.about-nbj, .contact-info-block {
    text-align: left; 
}

.about-nbj p {
    font-weight: 300;
    line-height: 1.8;
}

/* VERTICAL SPLITTER */
.about-contact-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 5%; 
    bottom: 5%; 
    width: 4px; 
    background-color: var(--color-accent); 
    box-shadow: 0 0 10px rgba(255, 192, 0, 0.4); 
    transform: translateX(-50%);
}

/* CONTACT DETAILS EXAMPLE STYLING */
.contact-detail-item {
    padding: 15px 0;
    margin-bottom: 20px;
    border: none;
    background-color: transparent;
}

.contact-info-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 10px;
}
/* Ensure contact details text is aligned */
.contact-details {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
}

/* 5. FOOTER */
footer {
    padding: 30px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ---------------------------------------------------- */
/* --- LISTEN NOW PAGE SPECIFIC STYLES (listen.html) --- */
/* ---------------------------------------------------- */

/* Adjust the Listen Now title to be centered properly */
.listen-title {
    margin-bottom: 20px;
}

/* 🚩 DESKTOP NAV POSITION FIX FOR LISTEN NOW ONLY 🚩 */
/* This is ONLY for desktop spacing to push the nav down */
#listen-hero-section > .main-nav {
    /* Override global 55% to 65% to push the nav down for better spacing */
    top: 65%; 
}

/* Featured Video Embed Container (For responsiveness) */
.video-container {
    position: relative;
    width: 100%;
    /* 16:9 Aspect Ratio (9 / 16 * 100 = 56.25) */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 30px rgba(255, 192, 0, 0.4); 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 50px;
    padding: 0 5%;
}

/* ---------------------------------------------------- */
/* --- NEW: Video Grid Embed Styles (More Videos) --- */
/* ---------------------------------------------------- */

.video-grid-embeds {
    display: grid;
    /* Grid for auto-fitting, but a slightly larger min size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.video-embed-item {
    text-align: center;
}

.video-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Smaller 16:9 aspect ratio container for the grid videos */
.video-container-small {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    /* Use a lighter border/shadow for the grid videos */
    box-shadow: 0 0 15px rgba(255, 192, 0, 0.3); 
    border: 1px solid var(--color-accent);
}

.video-container-small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------------------------------------------------- */
/* --- 🚨 RESPONSIVENESS / MOBILE STYLES 🚨 --- */
/* ---------------------------------------------------- */
@media (max-width: 900px) {
    
    /* Show Hamburger */
    .menu-toggle {
        display: flex; 
    }

    /* Base mobile state for main-nav: Reset all desktop positioning */
    .main-nav {
        position: initial; 
        top: initial; 
        left: initial;
        transform: none;
        
        display: none; /* Hide by default */
        width: 100%;
        height: auto;
    }
    
    /* 🎯 CRITICAL MOBILE FIX: The ACTIVE state forces FIXED position and full screen */
    .main-nav.active {
        display: flex; 
        
        /* Full Screen Overlay - ENFORCED FIX: Use !important to guarantee these overrides */
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important;
        
        flex-direction: column;
        justify-content: center; /* This centers the links vertically */
        align-items: center;
        width: 100%;
        height: 100vh !important; /* Full screen coverage - ENFORCED FIX */
        
        background-color: rgba(28, 28, 28, 0.95); /* Semi-transparent overlay */
        z-index: 1500;
        gap: 20px;
        
        transition: none; 
    }
    
    /* Mobile link styling is shared across all pages */
    .main-nav a {
        font-size: 2rem; 
        padding: 10px 0;
        width: 80%;
        text-align: center;
        color: var(--color-light); 
        transition: background-color 0.1s ease; 
    }
    
    /* 🚩 SHOW THE MOBILE-ONLY LINK ON MOBILE SCREENS (Only affects index.html) 🚩 */
    .listen-mobile-only {
        display: block; 
    }

    /* MOBILE ACTIVE/TAP EFFECT FIX */
    .main-nav a:active {
        background-color: rgba(255, 192, 0, 0.2); 
        color: var(--color-accent);
    }
    
    /* 🎯 UNIVERSAL MOBILE CENTER-ALIGNMENT 🎯 */
    .section-title, 
    .section-title-left {
        text-align: center !important; 
        margin-bottom: 20px;
        font-size: 2rem;
    }

    /* Philosophy text font fix: ensures it doesn't get large on mobile */
    .about-nbj, 
    .about-nbj p {
        text-align: center !important; 
        font-size: initial; 
    }

    .artist-bio-text,
    .artist-bio-text p {
        text-align: center;
        font-size: initial;
    }
    
    /* 🎯 ARTIST NAME POSITION FIX (Mobile: Bottom Left) 🎯 */
    .artist-name-overlay {
        left: 5%; 
        transform: translateX(0); 
        text-align: left !important;
    }

    /* Mobile Artist Card adjustments */
    .artist-card {
        height: 300px; 
        transform: none; 
        box-shadow: none; 
    }

    /* 🎯 CONTACT BLOCK CENTER FIX 🎯 */
    .contact-info-block, 
    .contact-info-block h3, 
    .contact-info-block p,
    .contact-detail-item {
        text-align: center !important;
    }
    
    /* Mobile Show List adjustments */
    .show-item {
        grid-template-columns: 80px 1fr 80px; 
    }
    
    /* Mobile About/Contact stacking */
    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 100%; 
    }
    .about-contact-grid::before {
        content: none; 
    }
    
    .contact-detail-item {
        padding: 15px 0; 
    }
    .show-item:hover {
        transform: none; 
        box-shadow: none;
    }

    /* Listen Now Page Mobile Adjustments */
    .video-grid-embeds {
        /* On mobile, stack them instead of auto-fit */
        grid-template-columns: 1fr;
    }
}