/* ───────── 1. SETUP & LAYOUT ───────── */
.project-detail-theme {
    background-color: var(--bg-main);
    transition: background-color 0.8s ease;
}

.showcase-container {
    padding: 120px 10% 60px; 
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Spacer between projects */
.project-block {
    margin-bottom: 80px;
}

/* ───────── 2. TYPOGRAPHY ───────── */
.breadcrumb {
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumb a { color: var(--text-muted); transition: 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .slash { margin: 0 10px; opacity: 0.4; }
.breadcrumb .current { color: var(--accent); font-weight: 700; }

.project-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* ───────── 3. CINEMA MODE INTERACTION ───────── */
#cinema-mode-toggle { display: none; }

.cinema-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cinema-btn:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.cinema-btn i { transition: 0.3s; }
#cinema-mode-toggle:checked + .cinema-btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
#cinema-mode-toggle:checked + .cinema-btn i {
    text-shadow: 0 0 10px #fff;
}

/* BODY STATE WHEN LIGHTS OFF */
body.lights-off {
    background-color: #0e0e0e; 
}
body.lights-off .project-title,
body.lights-off .project-subtitle,
body.lights-off .breadcrumb,
body.lights-off header nav a,
body.lights-off .logo {
    color: #444; 
}
body.lights-off .project-title { color: #222; text-shadow: none; }

/* ───────── 4. VIDEO STAGE ───────── */
.theater-stage {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.video-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
}

.frame-decor {
    position: absolute;
    top: 20px; left: 20px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rec-dot {
    width: 10px; height: 10px;
    background: red;
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

body.lights-off .video-frame {
    transform: scale(1.02);
    box-shadow: 0 0 100px rgba(116, 140, 171, 0.3);
    z-index: 1001; 
}

/* ───────── 5. NEW: PHOTO STAGE (FOR DONUT) ───────── */
.photo-stage {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-height: 80vh; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 8px solid #fff; 
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Glossy Shine Overlay */
.gloss-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.photo-caption {
    margin-top: 15px;
    color: var(--text-muted);
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ───────── 6. INFO GRID ───────── */
.project-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    transition: opacity 0.5s;
}

body.lights-off .project-details { opacity: 0.3; }
body.lights-off .project-details:hover { opacity: 1; }

.detail-column h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.text-block p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Technical Specs List */
.spec-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Better alignment for wrapping text */
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-family: "Manrope", sans-serif;
}

.spec-list .label {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    flex-shrink: 0; /* Prevents label from squishing */
    margin-right: 20px;
}

.spec-list .value {
    color: var(--text-muted);
    text-align: right; /* Aligns data nicely to the right */
    line-height: 1.4;
}

.palette-swatch {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
.swatch {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.swatch:hover { transform: scale(1.2); }

/* ───────── 7. DIVIDER ───────── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px 0 120px;
    opacity: 0.4;
    color: var(--accent);
}

.section-divider .line {
    height: 1px;
    width: 100px;
    background: var(--text-muted);
    margin: 0 20px;
}

.section-divider .icon {
    font-size: 1.5rem;
}

/* ───────── 8. NAV ───────── */
.next-project-nav {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.back-btn {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    transition: 0.3s;
}

.back-btn:hover {
    opacity: 1;
    gap: 25px; 
}

/* ───────── 9. MOBILE ADAPTATION ───────── */
@media (max-width: 900px) {
    /* Layout Adjustments */
    .showcase-container { 
        padding: 100px 5% 40px; 
    }

    /* Stack details vertically */
    .project-details { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* Typography Scaling */
    .project-title { 
        font-size: 3rem; 
        margin-top: 10px;
    }
    
    .project-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Video & Photo Size */
    .theater-stage, .photo-stage {
        margin-bottom: 40px;
    }

    .photo-frame {
        border-width: 4px;
    }

    .section-divider {
        margin: 60px 0 80px;
    }

    .swatch {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .project-title { 
        font-size: 2.5rem; 
    }
    
    .text-block p {
        font-size: 1rem;
    }
    
    .cinema-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* FIX: Force list items to stack on very small screens if needed */
    .spec-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .spec-list .value {
        text-align: left;
    }
}
