/* ─────────────────────────────────────────────────────────────
   graysonsSongStg2Styles.css
   TNT | GraysonsSong2026-10-18 | Stage 2 — Professional Refactoring
   Palette: same dark night sky as Stage 1, plus teal upgrade accent
     --gs-dark  #07091c  (night sky, HSB 235,75,14)
     --gs-gold  #ffd740  (stars, primary accent)
     --gs-teal  #2eb88a  (Stage 2 "upgraded" signal)
──────────────────────────────────────────────────────────────── */

:root {
    --gs-dark:     #07091c;
    --gs-navy:     #0d1230;
    --gs-mid:      #161c3a;
    --gs-gold:     #ffd740;
    --gs-gold-dk:  #cc9900;
    --gs-teal:     #2eb88a;
    --gs-teal-dk:  #1e8a64;
    --gs-cream:    #fff8e0;

    --gb-row-a:    #e8f4e8;
    --gb-row-b:    #d4ead4;
    --gb-num-color:#6aaa6a;
    --gb-border:   #a8d4a8;

    --js-keyword:  #0055cc;
    --js-comment:  #6a737d;
    --js-string:   #006400;
}

body { background: var(--gs-dark); color: #e8e8f0; }

/* ── Spark bar ────────────────────────────────────────────── */
.spark-bar {
    background: var(--gs-navy);
    padding: 0.52rem 1.2rem;
    display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem;
    border-bottom: 2px solid var(--gs-teal);
    font-size: 0.88rem;
}
.spark-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spark-links a { color: var(--gs-teal); font-weight: 700; text-decoration: none; }
.spark-links a:hover { color: #fff; text-decoration: underline; }
.spark-bar > span { color: rgba(255,255,255,0.35); font-size: 0.80rem; margin-left: auto; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    background:
        linear-gradient(to bottom,
            rgba(5, 8, 25, 0.65) 0%,
            rgba(5, 8, 25, 0.42) 40%,
            rgba(5, 8, 25, 0.78) 100%),
        url('../../images/twinkle-twinkle-book-cover-e1748091069868-1200x675.webp')
        center 30% / cover no-repeat;
    background-color: var(--gs-dark);
    min-height: 34vh;
    display: flex; align-items: center;
    padding: 4rem 1rem 3rem;
    color: #fff; text-align: center;
}

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

.hero-eyebrow {
    font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); display: block; margin-bottom: 0.65rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    line-height: 1.12; margin-bottom: 0.75rem;
    color: var(--gs-teal);
    text-shadow: 0 0 30px rgba(46,184,138,0.45), 0 2px 8px rgba(0,0,0,0.70);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.68; max-width: 640px; margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.80);
}

/* ── Main section ─────────────────────────────────────────── */
#mainSection { background: var(--gs-dark); padding: 3rem 0 3.5rem; }

/* ── Intro card ───────────────────────────────────────────── */
.intro-card {
    background: var(--gs-navy);
    border: 1px solid rgba(46,184,138,0.20);
    border-top: 4px solid var(--gs-teal);
    border-radius: 12px; padding: 1.6rem 2rem; margin-bottom: 2rem;
}

.intro-card h2 {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    color: var(--gs-teal); margin-bottom: 0.4rem;
}

.intro-card p {
    font-size: 0.93rem; color: rgba(255,255,255,0.72);
    line-height: 1.75; margin-bottom: 0.6rem;
}

/* ── Stage badges ─────────────────────────────────────────── */
.stage-badge {
    display: inline-block;
    font-size: 0.70rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 0.2rem 0.75rem;
    border-radius: 50px; margin-bottom: 0.65rem;
}
.stage-badge-gold { background: var(--gs-gold); color: var(--gs-dark); }
.stage-badge-teal { background: var(--gs-teal); color: #fff; }

/* ── Developer goals list ─────────────────────────────────── */
.goal-list {
    list-style: none; padding: 0; margin: 1rem 0 0;
}
.goal-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: rgba(46,184,138,0.06);
    border: 1px solid rgba(46,184,138,0.15);
    border-radius: 8px; padding: 0.7rem 0.9rem;
    margin-bottom: 0.5rem; font-size: 0.87rem;
    color: rgba(255,255,255,0.78); line-height: 1.55;
}
.goal-number {
    flex-shrink: 0;
    background: var(--gs-teal); color: #fff;
    font-weight: 700; font-size: 0.75rem;
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.goal-list li strong { color: var(--gs-teal); }

/* ── Upgrade callout (what changed from Stage 1) ─────────── */
.upgrade-note {
    background: rgba(46,184,138,0.07);
    border-left: 3px solid var(--gs-teal);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 1rem; margin: 0.75rem 0 0;
    font-size: 0.87rem; color: rgba(255,255,255,0.75); line-height: 1.6;
}
.upgrade-note strong { color: var(--gs-teal); }

/* ── Showcase card ────────────────────────────────────────── */
.showcase-card {
    background: #0d0d1c;
    border: 1px solid rgba(46,184,138,0.13);
    border-radius: 14px; overflow: hidden; margin-bottom: 2rem;
}

/* ── Code terminal header ─────────────────────────────────── */
.code-terminal-header {
    background: #1e1e2e; padding: 0.6rem 1rem;
    display: flex; align-items: center; gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.terminal-dots { display: flex; gap: 0.4rem; align-items: center; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td-red    { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green  { background: #28c840; }

.terminal-filename { font-family: 'Source Code Pro', monospace; font-size: 0.80rem; color: rgba(255,255,255,0.65); flex: 1; }
.terminal-tag      { font-size: 0.70rem; color: rgba(255,255,255,0.35); letter-spacing: 0.5px; }

/* ── Greenbar code paper ──────────────────────────────────── */
.code-paper {
    background: var(--gb-row-a);
    border-right: 1px solid var(--gb-border);
    overflow-x: auto; max-height: 560px; overflow-y: auto;
    height: 100%; min-height: 300px;
}

.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.78rem; line-height: 1.62;
}

.code-paper ol li { padding: 0 0.75rem 0 0.4rem; white-space: pre; position: relative; }
.code-paper ol li:nth-child(6n+1), .code-paper ol li:nth-child(6n+2), .code-paper ol li:nth-child(6n+3) { background: var(--gb-row-a); }
.code-paper ol li:nth-child(6n+4), .code-paper ol li:nth-child(6n+5), .code-paper ol li:nth-child(6n+6) { background: var(--gb-row-b); }
.code-paper ol li::marker { color: var(--gb-num-color); font-size: 0.70rem; }
.code-paper ol li code { font-family: inherit; font-size: inherit; background: none; padding: 0; color: #1a2e12; white-space: pre; }

.js-keyword { color: var(--js-keyword); font-weight: 600; }
.js-comment { color: var(--js-comment); font-style: italic; }
.js-string  { color: var(--js-string); }

/* ── Live canvas panel ────────────────────────────────────── */
.canvas-panel {
    background: #07091c;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1.25rem 1rem; min-height: 300px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 992px) {
    .canvas-panel { border-top: none; border-left: 1px solid rgba(255,255,255,0.07); height: 100%; min-height: 560px; }
}

.canvas-label { font-size: 0.70rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }

#graysonsSongStg2Canvas canvas {
    display: block; border-radius: 8px; max-width: 100%;
    box-shadow: 0 4px 32px rgba(0,0,0,0.75), 0 0 24px rgba(46,184,138,0.08);
}

.canvas-caption { margin-top: 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.38); text-align: center; line-height: 1.55; }

/* ── Attribution strip ────────────────────────────────────── */
.attr-strip {
    background: #0a0a18; padding: 0.55rem 1rem;
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    font-size: 0.78rem; color: rgba(255,255,255,0.38);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.attr-name { color: var(--gs-teal); font-weight: 700; }

/* ── Next card ────────────────────────────────────────────── */
.next-card {
    background: var(--gs-navy);
    border: 1px solid rgba(46,184,138,0.20);
    border-radius: 12px; padding: 1.4rem 1.75rem;
}
.next-card h3 { font-family: 'Boogaloo', cursive; font-size: 1.35rem; color: var(--gs-teal); margin-bottom: 0.5rem; }
.next-card p  { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.72; margin-bottom: 0; }

/* ── Copy button ──────────────────────────────────────────── */
.copy-btn {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.55); border-radius: 6px; padding: 0.28rem 0.65rem;
    font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s; margin-left: auto;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.40); }
.copy-btn-label { font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #040410; border-top: 2px solid rgba(46,184,138,0.16); padding: 2rem 0 1.5rem; text-align: center; }
.footer-icons { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 1rem; flex-wrap: wrap; list-style: none; padding: 0; }
.footer-icons a img { width: 28px; height: 28px; opacity: 0.45; transition: opacity 0.2s; }
.footer-icons a:hover img { opacity: 0.80; }
.footer-text { font-size: 0.80rem; color: rgba(255,255,255,0.32); line-height: 1.7; margin-bottom: 0.25rem; }
