/* Shared light / white theme for portfolio case studies (photo + video + matrix) */

[data-theme="light"] {
    --bg-color: #f7f7f7;
    --text-color: #0a0a0a;
    --text-muted: #5a5a5a;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .noise-overlay { opacity: 0.025; }
[data-theme="light"] #bg-canvas { opacity: 0.28; }

/* ——— Hero ——— */
[data-theme="light"] .case-hero {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background:
        radial-gradient(ellipse 55% 40% at 100% 0%, rgba(230, 32, 32, 0.1) 0%, transparent 55%),
        var(--bg-color);
}
[data-theme="light"] .hero-bg { filter: brightness(0.72) contrast(1.04); }
[data-theme="light"] .case-client {
    color: #fff;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .case-type {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-red);
    border: 1px solid rgba(230, 32, 32, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .scroll-down { color: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .glow-track { background: rgba(255, 255, 255, 0.22); }

/* ——— Data strip / brief ——— */
[data-theme="light"] .data-strip {
    background:
        linear-gradient(160deg, rgba(230, 32, 32, 0.06) 0%, transparent 42%),
        #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .data-cell {
    border-right-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .m-lab { color: var(--text-muted); }
[data-theme="light"] .m-val { color: var(--text-color); }
[data-theme="light"] .brief-text { color: #666; }
[data-theme="light"] .brief-text strong { color: var(--text-color); }
[data-theme="light"] .t-list { color: #666; }

/* ——— Legacy matrix pages ——— */
[data-theme="light"] .case-matrix {
    background:
        linear-gradient(160deg, rgba(230, 32, 32, 0.05) 0%, transparent 40%),
        #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .matrix-block {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .case-overview {
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(230, 32, 32, 0.06) 0%, transparent 55%),
        var(--bg-color);
}
[data-theme="light"] .case-gallery {
    background: var(--bg-color);
    border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .c-item {
    background: #ececec;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* ——— Galleries / walls / stills / video ——— */
[data-theme="light"] .mega-wall-section,
[data-theme="light"] .stills-section,
[data-theme="light"] .video-section {
    background:
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(230, 32, 32, 0.06) 0%, transparent 55%),
        var(--bg-color);
    border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mega-wall-section { padding: 6px; }
[data-theme="light"] .mega-grid,
[data-theme="light"] .stills-grid { gap: 6px; }
[data-theme="light"] .m-img {
    background: #e8e8e8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .m-img img { filter: brightness(0.92); }
[data-theme="light"] .m-img:hover img { filter: brightness(1.05); }
[data-theme="light"] .stills-label,
[data-theme="light"] .video-label {
    background: transparent;
    color: var(--text-muted);
}
[data-theme="light"] .video-wrap video,
[data-theme="light"] .video-wrap iframe {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
    background: #111;
}

/* ——— Recap ——— */
[data-theme="light"] .recap-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(230, 32, 32, 0.08) 0%, transparent 55%),
        #ffffff;
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .recap-quote { color: var(--text-color); }
[data-theme="light"] .recap-author { color: var(--text-muted); }

/* ——— Next project ——— */
[data-theme="light"] .next-project {
    background:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(230, 32, 32, 0.1) 0%, transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .next-bg { filter: brightness(0.35) grayscale(20%); }
[data-theme="light"] .next-project:hover .next-bg { filter: brightness(0.5) grayscale(0%); }
[data-theme="light"] .next-title {
    -webkit-text-stroke: 1.5px rgba(10, 10, 10, 0.55);
    color: transparent;
}
[data-theme="light"] .next-project:hover .next-title {
    color: var(--text-color);
    -webkit-text-stroke: 0;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ——— Lightbox stays dark for image focus ——— */
[data-theme="light"] .lightbox { background: rgba(0, 0, 0, 0.94); }
[data-theme="light"] .lb-close { color: #fff; }
