/* --- Global Style Reset & Variables --- */
:root {
    --bg-dark: #121c1a;
    --bg-panel: #1b2a27;
    --accent-teal: #0d6efd; /* Temporary distinct accent; change to gold/green as desired */
    --text-light: #f8f9fa;
    --text-muted: #bdc3c7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding: 20px;
}

/* --- Layout Header & Reusable Navigation --- */
.site-header {
    background-color: var(--bg-panel);
    padding: 2rem;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 20px;
}

.logo-container h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.logo-container .tagline {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
}

.main-nav {
    margin-top: 1.5rem;
    border-top: 1px solid #2a3e3a;
    padding-top: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    transition: background 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #243a36;
    border-radius: 4px;
}

/* --- Document Content & Grid Structure --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-content {
    background-color: var(--bg-panel);
    padding: 2rem;
    border-radius: 6px;
}

h2, h3 {
    margin-bottom: 1rem;
}

/* --- Layout Systems (Profiles, Grids, Forms) --- */
.profile-grid, .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Responsive 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 1.5rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* --- Clean Native Form Fields --- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: #121c1a;
    border: 1px solid #2a3e3a;
    color: #fff;
    border-radius: 4px;
}

.submit-btn {
    background-color: #243a36;
    color: #fff;
    border: 1px solid #3a5751;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.submit-btn:hover {
    background-color: #2e4a45;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- About Page Specific Layouts --- */

/* Hero banner container */
.about-hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 6px;
    margin-bottom: 30px;
    align-items: center;
}

/* Image scaling wrapper */
.hero-image-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* "Duo" visual overlay badge */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #c9a054; /* Warm gold color */
    color: #121c1a;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* Hero introductory text styles */
.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.2rem;
    color: #c9a054;
    margin-bottom: 15px;
    border-bottom: 1px solid #2a3e3a;
    padding-bottom: 10px;
}

.hero-text p {
    font-size: 1.15rem;
    color: #e2e8f0;
}

/* Individual Artist Profile Box Styling */
.artist-card h3 {
    color: #c9a054;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.artist-card p {
    color: #bdc3c7;
    font-size: 1rem;
}

/* --- Media Queries for Responsive Screens --- */
@media (min-width: 768px) {
    /* Shifts picture side-by-side with text on desktop viewports */
    .about-hero {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .hero-image-wrapper {
        max-width: 450px;
    }
}
/* --- Advanced Anti-Scraping Rule --- */
.email-reversed {
    direction: rtl;
    unicode-bidi: bidi-override;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-light);
    background: #121c1a;
    padding: 10px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
/* --- Disable Text Selection and Copying --- */
.email-reversed {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard modern browsers */
    cursor: default;           /* Changes pointer from a text "I-beam" to a standard arrow */
}
/* --- News & Gigs Page Specific Layouts --- */

.news-bulletin {
    margin-bottom: 3rem;
}

.bulletin-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #2a3e3a;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bulletin-date {
    display: inline-block;
    color: #c9a054;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bulletin-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.schedule-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Safe scrollable wrapper for mobile tables */
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 6px;
    border: 1px solid #2a3e3a;
}

.gig-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px; /* Prevents text crowding on small phones */
}

.gig-table th, .gig-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #2a3e3a;
}

.gig-table th {
    background: rgba(0, 0, 0, 0.3);
    color: #c9a054;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.gig-table tr:last-child td {
    border-bottom: none;
}

.gig-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Tags styling */
.status-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-tag.confirmed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-tag.pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* --- Business Card Inspired Header Typography --- */

.logo-container h1 {
    font-family: 'Arvo', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: #e03a3a; /* Matches that punchy red ink */
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Creates the top and bottom red border framing from the card */
    border-top: 3px solid #e03a3a;
    border-bottom: 3px solid #e03a3a;
    padding: 10px 0;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- Expandable Artist Accordions & Layouts --- */

.solo-artists-section h2 {
    color: #c9a054;
    border-bottom: 1px solid #2a3e3a;
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Master Accordion Container */
.artist-accordion {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid #2a3e3a;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Header bar you click to expand */
.artist-accordion summary {
    background: #1b2a27;
    color: #c9a054;
    padding: 15px 20px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hides default chrome triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.artist-accordion summary::-webkit-details-marker {
    display: none; /* Hides default safari triangle */
}

/* Rotates toggle indicator symbol when open */
.artist-accordion[open] summary .toggle-icon {
    transform: rotate(45deg);
    color: #e03a3a;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.accordion-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* --- Alternating Text Wraps & Image Controls --- */

.blurb-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.thumb-wrapper {
    width: 140px;
    flex-shrink: 0;
}

/* Interactive click-to-expand thumbnail engine */
.pop-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #2a3e3a;
    cursor: zoom-in;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.pop-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Smart full-screen expansion when tapped/clicked */
.pop-thumb:active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.5);
    z-index: 9999;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 80vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    cursor: zoom-out;
}

/* --- Inline More Breaks --- */

.read-more-box {
    margin-top: 15px;
}

.read-more-box summary.more-btn {
    list-style: none;
    color: #c9a054;
    font-weight: bold;
    cursor: pointer;
    font-style: italic;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px dashed #c9a054;
}

.read-more-box summary.more-btn::-webkit-details-marker {
    display: none;
}

.read-more-box[open] summary.more-btn {
    display: none; /* Smoothly rolls away the link once active */
}

.more-content {
    margin-top: 15px;
}

/* --- Inner Grids, Bulletins & Quotes --- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.spec-list h4, .blurb-block h4 {
    color: #c9a054;
    margin-bottom: 10px;
}

.spec-list ul {
    list-style: square;
    margin-left: 20px;
    color: var(--text-muted);
}

.testimonial-quote {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid #c9a054;
    font-style: italic;
}

.testimonial-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

/* --- Media Queries for Layout Flipping --- */
@media (min-width: 600px) {
    /* Shifts text block horizontally on desktops */
    .blurb-block {
        flex-direction: row;
        align-items: flex-start;
    }
    
    /* Mirrors layout dynamically to the right edge */
    .blurb-block.img-right {
        flex-direction: row-reverse;
    }
}
/* --- Pure CSS Click-to-Toggle Lightbox Engine --- */

/* Completely hides the functional utility checkbox from view */
.lightbox-toggle {
    display: none;
}

.thumb-container {
    width: 140px;
    flex-shrink: 0;
}

.thumb-label {
    display: block;
    cursor: zoom-in;
}

/* Base style for the hidden fullscreen backdrop shadow overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Dark backdrop blur effect */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Keeps it completely non-interactive when hidden */
    transition: opacity 0.25s ease;
}

/* The scaled fullscreen image inside the viewport container */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain; /* Prevents distortion, maintaining photo aspect ratio */
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* Floating overlay close text action button */
.close-box-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
}

.close-box-btn:hover {
    color: #e03a3a; /* Red alert hover cue */
}

/* --- The Functional CSS Toggle Switch --- */
/* When user clicks the thumbnail label, checking the box instantly reveals the overlay */
.lightbox-toggle:checked ~ .lightbox-overlay {
    opacity: 1;
    pointer-events: auto; /* Activates scrolling and interaction controls within the lightbox */
}

/* --- Optimized Constrained Hold-to-Zoom Engine --- */
.more-content .pop-thumb:active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the image perfectly without over-scaling */
    z-index: 9999;
    
    /* Strict viewport boundaries so it NEVER overflows the window */
    width: auto;
    height: auto;
    max-width: 85vw;   /* Keeps it inside 85% of the screen width */
    max-height: 75vh;  /* Keeps it inside 75% of the screen height */
    
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border: 3px solid #c9a054; /* Gold accent frame matches card theme */
    border-radius: 6px;
    cursor: zoom-out;
}
/* --- Unify Original Lightbox Image Frames --- */
.lightbox-img {
    border: 5px solid #c9a054; /* Matches the gold accent frame from the card */
    border-radius: 10px;        /* Adds the exact same smooth rounded corners */
}

/* --- Automated Gallery Thumbnail System --- */

.pop-thumb-gallery {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Crops photos cleanly into rectangles without distortion */
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.pop-thumb-gallery:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ==========================================================================
   PRODUCTION MEDIA GALLERY ENGINE (Unified & Streamlined)
   ========================================================================== */

/* 1. MASTER GRID SYSTEM */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
}

/* 2. UNIFORM OUTER TILES (The Gold Frames) */
.gallery-grid > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 240px !important;                 /* Absolute lock on height ceiling */
    background-color: #0d1513 !important;     /* Solid backdrop for portrait side-voids */
    border: 2px solid #c9a054 !important;     /* Replicates your business card gold frame */
    border-radius: 6px !important;
    padding: 10px !important;
    overflow: hidden !important;              /* Absolute containment guard */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* 3. PROPORTIONAL IMAGE SCALING (TARGETING THE EXACT HTML CLASS) */
.gallery-grid .pop-thumb-gallery {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;                  /* Allows narrow photos to scale inward gracefully */
    height: auto !important;                 /* Allows wide photos to scale downward gracefully */
    object-fit: contain !important;          /* Hard defense against cropping pixels */
    border-radius: 2px !important;
    cursor: zoom-in;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover swell animation effect applied directly to the class */
.gallery-grid > div:hover .pop-thumb-gallery {
    transform: scale(1.04) !important;
}

/* 4. LIGHTBOX BACKDROP OVERLAY (Click Anywhere to Close) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: block !important; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Expands close toggle area across the entire viewport background screen */
.lightbox-overlay .close-box-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;                    /* Discards visual text string '×' from view */
}

/* High-res Pop-out Image Presentation Frame */
.lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    margin: 7.5vh auto 0 auto;               /* Centers the pop-up frame vertically on monitor screens */
    display: block;
    pointer-events: none;                    /* Bypasses clicking straight to full backdrop layer */
    border: 3px solid #c9a054;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
/* Layout alignment for the album content */
.album-card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.album-art img {
  border-radius: 4px;
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.album-details {
  flex: 1;
}

/* Styled Purchase Button */
.buy-button {
  display: inline-block;
  background-color: #a3e3ea; /* Matching your theme's bright accent border color */
  color: #1a1a1a; /* Dark text for readability on light background */
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 1rem;
  transition: opacity 0.2s ease;
}

.buy-button:hover {
  opacity: 0.9;
}

/* Mobile responsive layout adjustment */
@media (max-width: 600px) {
  .album-card {
    flex-direction: column;
    text-align: center;
  }
}
/* Forces the album image to stay small in the media card layout */
.album-art,
.album-art img,
.album-art a,
.album-art a img {
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Restores layout balance so the image doesn't force a weird layout gap */
.album-card {
  display: flex !important;
  gap: 2rem;
  align-items: center;
}

/* Smooth scrolling across the whole site */
html {
  scroll-behavior: smooth;
}
