/* =========================================
   Global Resets & Fonts
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dm-serif-text-regular {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
}

.dm-serif-text-regular-italic {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* =========================================
   Global Background & Body Styling
   ========================================= */
body {
   font-family: 'DM Serif Text', serif;
    /* Black & White radial background */
    background: radial-gradient(circle at center, #010101, #000000);
    color: #000000;
    cursor: crosshair;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

/* =========================================
   Utility Layout Classes
   ========================================= */
.container {
    max-width: 1200px; /* Default max-width, can be overridden */
    margin: 80px auto 40px auto;
    position: relative;
    z-index: 10;
}

/* Centered container specifically for the Index page */
.container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 140px 20px 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header img {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.section-title {
    font-size: 20px;
    color: #ccccee;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Generic Section Card (Used on Shows, Contact, etc.) */
.content-section {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid #4a4a6a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Simple responsive 2-column grid wrapper (e.g. bio + members side by side) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Visually-hidden text for SEO/accessibility (keeps content in the DOM
   for crawlers/screen readers without showing it on screen) */
.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================
   Gallery Component (photo grids, discography, press shots, etc.)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #3a3a5a, #2a2a4a);
    border: 1px solid #4a4a6a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8aaa;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    background: linear-gradient(45deg, #4a4a6a, #3a3a5a);
    border-color: #6a6a8a;
}

/* Caption overlay for gallery items (e.g. track/album title + date) */
.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffffff;
    padding: 15px 10px 10px;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.album-info h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.album-info p {
    font-size: 11px;
    opacity: 0.9;
}

/* NOTE: some page-level styles reference filter: url(#fractalBorder) and
   url(#fractalBorderSmall) on .show-item/.modal-content/.modal-image/.show-image.
   These SVG filters are not defined in this shared sheet — confirm where they
   live (inline SVG per-page?) before reusing those classes elsewhere, since a
   missing filter reference fails silently (element just renders unfiltered). */

/* =========================================
   Global Components (Doors & Hover Effects)
   ========================================= */
.back-door-container {
    position: relative;
    width: 100px;
    height: auto;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
}

.back-door {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
   transition: transform 0.2s ease-in-out;
}

.back-overlay {
    animation: floatY 4s ease-in-out infinite;
    position: absolute;
    width: 70%;
    height: auto;
    pointer-events: none;
    mix-blend-mode: difference;
    filter: drop-shadow(0 0 6px white) drop-shadow(0 0 10px white);
    z-index: 1;
    top: 10%;
    transform: translateY(-10%) translateY(0);
}

@keyframes floatY {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Generic "nothing to show" message (e.g. no shows, no results, no posts) */
.empty-state {
    text-align: center;
    color: #aaaacc;
    font-size: 16px;
    padding: 40px 20px;
}

/* =========================================
   Modal / Lightbox Component
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid #6a6a8a;
    border-radius: 8px;
    color: #ccccee;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px 20px 0 20px;
    text-align: center;
}

.modal-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}

.modal-details {
    font-size: 16px;
    color: #ccccee;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    opacity: 0.7;
}

/* =========================================
   Carousel Component (used inside modals for multi-image display)
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: none;
}

.carousel-image.active {
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

/* =========================================
   Shared Mobile Responsive Styles
   (base pattern — pages may add their own rules inside this same
   breakpoint for page-specific elements, e.g. .gallery-grid column count)
   ========================================= */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        padding: 10px;
    }

    .container {
        margin: 40px auto 40px auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header img {
        height: 70px;
    }

    .back-door-container {
        width: 80px;
    }

    .content-section {
        padding: 20px;
    }

    .modal-content {
        width: 95vw;
        max-height: 85vh;
    }

    .carousel-nav {
        font-size: 18px;
        padding: 8px 12px;
    }
}
