/* ══════════════════════════════════════════════════════════════════════
   zeroTalentBehindScenesStyles.css
   TNT | See the Code | Zero Talent — Behind the Scenes
   Created: 11/06/2026
   Entry theme: Sprocket's Big Disaster — vaudeville theater palette
     Stage-light amber  #e8a820   primary accent
     Theater crimson    #c0192a   secondary / curtain accent
     Deep stage dark    #100a04   background
     Warm cream         #fff2d2   body text
   (See the Code venue green is used for nav / back bar only)
   ══════════════════════════════════════════════════════════════════════ */

:root {
    /* Entry theme — warm theater/vaudeville */
    --stc-green:      #e8a820;                   /* repurposed as primary amber for this entry */
    --stc-green-dim:  rgba(232, 168, 32, 0.12);
    --stc-bg:         #100a04;
    --stc-mid:        #1a0f06;
    --stc-card:       #221408;
    --stc-border:     rgba(232, 168, 32, 0.22);
    --stc-light:      rgba(255, 242, 210, 0.90);
    --stc-muted:      rgba(255, 226, 160, 0.52);

    /* Theater accent */
    --zt-crimson:     #c0192a;
    --zt-crimson-dim: rgba(192, 25, 42, 0.12);
    --zt-amber:       #e8a820;
    --zt-amber-soft:  #d4962a;
    --zt-silver:      #c4c8cc;

    /* HTML paper — light gray (unchanged) */
    --html-paper:     #f4f4f4;
    --html-stripe:    rgba(0, 0, 0, 0.035);
    --html-border:    #9ca3af;
    --html-header-bg: #374151;
    --html-header-fg: #f3f4f6;
    --html-footer-bg: #e5e7eb;
    --html-footer-fg: #374151;
    --html-text:      #1a1a2e;
    --html-linenum:   #9ca3af;
}

/* ── Base ─────────────────────────────────────────────────────────── */
body {
    background: var(--stc-bg);
    color: var(--stc-light);
    font-family: 'Inter', sans-serif;
}

/* ── Back bar ─────────────────────────────────────────────────────── */
.stc-back-bar {
    background: #010301;
    padding: 0.55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--stc-green);
    font-size: 0.88rem;
}

.stc-back-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.stc-back-bar a { color: var(--stc-green); font-weight: 700; text-decoration: none; transition: color 0.15s; }
.stc-back-bar a:hover { color: #fff; }
.stc-back-label { color: rgba(255,255,255,0.28); font-size: 0.80rem; font-style: italic; }

/* ── Hero ─────────────────────────────────────────────────────────── */
#hero {
    min-height: 44vh;
    background:
        linear-gradient(to right,
            rgba(16,10,4,0.97) 0%,
            rgba(16,10,4,0.80) 20%,
            rgba(40,20,6,0.52) 50%,
            rgba(16,10,4,0.80) 80%,
            rgba(16,10,4,0.97) 100%),
        url('../images/zeroTalentRobot2.jpg') center 32% / cover no-repeat;
    background-color: #100a04;
    padding: 4.5rem 1rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--stc-green);
    margin-bottom: 0.55rem;
    opacity: 0.88;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    color: #fff;
    line-height: 1.12;
    margin-bottom: 0.55rem;
    text-shadow: 0 0 24px rgba(0,184,0,0.22);
}

.hero-title .stc-accent { color: var(--stc-green); }

.hero-subtitle {
    font-size: clamp(0.92rem, 2.1vw, 1.05rem);
    color: rgba(200,240,200,0.70);
    line-height: 1.65;
}

/* ── Main sections ────────────────────────────────────────────────── */
#explainSection { background: var(--stc-bg); padding: 3.5rem 1rem 2rem; }
#codeSection    { background: linear-gradient(180deg, var(--stc-bg) 0%, #04120a 100%); padding: 2rem 1rem 3rem; border-top: 1px solid var(--stc-border); }
#revealSection  { background: #04120a; padding: 2.5rem 1rem 4rem; border-top: 1px solid var(--stc-border); }

.stc-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--stc-green);
    margin-bottom: 0.4rem;
}

.stc-section-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* ── Explanation cards ────────────────────────────────────────────── */
.explain-card {
    background: var(--stc-card);
    border: 1px solid var(--stc-border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    height: 100%;
}

.explain-card h3 {
    font-family: 'Boogaloo', cursive;
    font-size: 1.4rem;
    color: var(--stc-green);
    margin-bottom: 0.75rem;
}

.explain-card p {
    font-size: 0.88rem;
    color: var(--stc-muted);
    line-height: 1.78;
    margin-bottom: 0.75rem;
}

.explain-card p:last-child { margin-bottom: 0; }

.explain-card code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.84em;
    background: rgba(0,184,0,0.12);
    color: #7dff7d;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Key concept rows within explanation cards */
.key-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,184,0,0.10);
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--stc-muted);
}

.key-row:last-child { border-bottom: none; padding-bottom: 0; }

.key-row-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.80em;
    background: rgba(0,184,0,0.12);
    color: #7dff7d;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0.1rem;
}

/* ── Language badge ───────────────────────────────────────────────── */
.lang-badge-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22em 0.75em;
    border-radius: 20px;
}

.lang-badge-html {
    background: rgba(156,163,175,0.18);
    color: #d1d5db;
    border: 1px solid rgba(156,163,175,0.30);
}

.lang-dot-html {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #9ca3af;
    flex-shrink: 0;
}

/* ── HTML code panel ──────────────────────────────────────────────── */
.html-panel {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--html-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
}

.html-panel-header {
    background: var(--html-header-bg);
    color: var(--html-header-fg);
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.html-panel-dots { display: flex; gap: 0.35rem; }
.hd { width: 11px; height: 11px; border-radius: 50%; }
.hd-r { background: #ef4444; }
.hd-y { background: #f59e0b; }
.hd-g { background: #22c55e; }

.html-panel-filename {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.78;
    flex: 1;
}

.html-panel-tag {
    font-size: 0.70rem;
    font-weight: 400;
    opacity: 0.55;
    font-style: italic;
}

.html-copy-btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.82);
    border-radius: 5px;
    padding: 0.22rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.html-copy-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Gray banded "vintage computer paper" */
.code-paper {
    background: var(--html-paper);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 560px;
}

.code-paper ol {
    margin: 0;
    padding: 0;
    list-style-type: decimal;
    padding-left: 3.2rem;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.74rem;
    line-height: 1.62;
    color: var(--html-text);
}

.code-paper ol li {
    padding: 0 0.7rem 0 0.3rem;
    white-space: pre;
}

/* Alternating gray stripes — the vintage greenbar effect */
.code-paper ol li:nth-child(even) {
    background: var(--html-stripe);
}

.code-paper ol li::marker {
    font-size: 0.66rem;
    color: var(--html-linenum);
}

.html-panel-footer {
    background: var(--html-footer-bg);
    color: var(--html-footer-fg);
    padding: 0.5rem 0.9rem;
    font-size: 0.74rem;
    border-top: 1px solid var(--html-border);
}

.html-panel-footer a {
    color: #374151;
    font-weight: 700;
    text-decoration: underline;
}

.html-panel-footer a:hover { color: #000; }

/* ── "No Styles" reveal section ───────────────────────────────────── */
.reveal-callout {
    background: rgba(0,184,0,0.07);
    border: 1px solid rgba(0,184,0,0.25);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.reveal-callout h3 {
    font-family: 'Boogaloo', cursive;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.65rem;
}

.reveal-callout p {
    font-size: 0.92rem;
    color: var(--stc-muted);
    line-height: 1.72;
    max-width: 540px;
    margin: 0 auto 1.2rem;
}

.btn-reveal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--stc-green);
    color: var(--stc-green);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-reveal:hover {
    background: var(--stc-green);
    color: #010301;
    text-decoration: none;
}

/* ── Sprocket callout — entry-specific whimsical intro ────────────── */
.sprocket-callout {
    background: linear-gradient(135deg, rgba(32,16,4,0.95) 0%, rgba(50,18,8,0.85) 100%);
    border: 1px solid rgba(192, 25, 42, 0.30);
    border-left: 5px solid var(--zt-crimson);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.sprocket-callout-icon {
    font-size: 2.6rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 0.1rem;
}

.sprocket-callout-body { flex: 1; }

.sprocket-callout-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.4rem;
    color: var(--zt-crimson);
    margin-bottom: 0.55rem;
    line-height: 1.2;
}

.sprocket-callout-body p {
    font-size: 0.90rem;
    color: var(--stc-muted);
    line-height: 1.78;
    margin-bottom: 0.65rem;
}

.sprocket-callout-body p:last-child { margin-bottom: 0; }

.sprocket-callout-body strong { color: var(--zt-amber); }

.sprocket-callout-body em { color: rgba(255, 242, 210, 0.75); font-style: normal; }

/* ── Challenge image card — "This Is What You're Building" ────────── */
.challenge-card {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    background: var(--stc-card);
    border: 1px solid var(--stc-border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
}

.challenge-thumb-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.challenge-thumb {
    width: 150px;
    border: 2px solid var(--zt-amber);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    display: block;
}

.challenge-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(232,168,32,0.28);
}

.btn-view-original {
    font-size: 0.74rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(232,168,32,0.35);
    color: rgba(232,168,32,0.72);
    border-radius: 5px;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.btn-view-original:hover {
    background: rgba(232,168,32,0.10);
    color: var(--zt-amber);
    border-color: var(--zt-amber);
}

.challenge-text { flex: 1; min-width: 0; }

.challenge-label {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--zt-amber);
    margin-bottom: 0.4rem;
    opacity: 0.90;
}

.challenge-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.55rem;
    color: #fff;
    margin-bottom: 0.65rem;
    line-height: 1.2;
}

.challenge-text p {
    font-size: 0.88rem;
    color: var(--stc-muted);
    line-height: 1.75;
    margin-bottom: 0.65rem;
}

.challenge-text p:last-of-type { margin-bottom: 0; }
.challenge-text strong { color: var(--stc-light); }

.btn-challenge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.80rem;
    font-weight: 700;
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
    background: rgba(232,168,32,0.12);
    border: 1px solid rgba(232,168,32,0.30);
    color: var(--zt-amber);
}

.btn-challenge-link:hover {
    background: rgba(232,168,32,0.20);
    color: #fff;
    text-decoration: none;
}

.btn-challenge-link-ghost {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: var(--stc-muted);
}

.btn-challenge-link-ghost:hover {
    background: rgba(255,255,255,0.10);
    color: var(--stc-light);
}

/* ── Sprocket photo reveal button ─────────────────────────────────── */
.btn-sprocket-photo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid rgba(192, 25, 42, 0.45);
    color: rgba(255, 210, 175, 0.72);
    font-size: 0.80rem;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.btn-sprocket-photo:hover {
    border-color: var(--zt-crimson);
    color: rgba(255, 230, 200, 0.95);
    background: rgba(192, 25, 42, 0.10);
}

/* Sprocket modal overrides */
.sprocket-modal-content {
    background: #180c04;
    border: 1px solid rgba(192, 25, 42, 0.38);
    border-radius: 12px;
}

.sprocket-modal-header {
    border-bottom: 1px solid rgba(192, 25, 42, 0.22);
    padding: 0.85rem 1.2rem;
}

.sprocket-modal-title {
    font-family: 'Boogaloo', cursive;
    font-size: 1.3rem;
    color: var(--zt-amber);
    margin: 0;
}

.sprocket-modal-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.sprocket-prompt-box {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(232, 168, 32, 0.06);
    border: 1px solid rgba(232, 168, 32, 0.18);
    border-radius: 8px;
}

.sprocket-prompt-label {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232, 168, 32, 0.68);
    margin-bottom: 0.5rem;
}

.sprocket-prompt-text {
    font-size: 0.88rem;
    color: rgba(255, 242, 210, 0.82);
    line-height: 1.70;
    font-style: italic;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .stc-back-bar { justify-content: flex-start; }
    .html-panel-tag { display: none; }
    .sprocket-callout { flex-direction: column; gap: 0.75rem; }
    .challenge-card { flex-direction: column; gap: 1rem; }
    .challenge-thumb-wrap { flex-direction: row; align-items: center; gap: 1rem; }
    .challenge-thumb { width: 100px; }
}
