/* ─────────────────────────────────────────────────────────────
   graysonsOriginalSketchStyles.css
   TNT | GraysonsP5JSDesign2026-09-17 | Original Sketch
   Palette derived from the sketch itself:
     cyan (#00c8d8) from the upper-half hue range (H ≈ 200°)
     amber (#ffaa00) from the lower-half hue range (H ≈ 46°)
     deep near-black (#060612) matching the sketch's black background
──────────────────────────────────────────────────────────────── */

:root {
    --gp-dark:      #060612;
    --gp-navy:      #0d0d22;
    --gp-mid:       #1a1a35;
    --gp-cyan:      #00c8d8;
    --gp-amber:     #ffaa00;
    --gp-amber-dk:  #cc8800;
    --gp-red:       #ff2040;

    --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(--gp-dark); color: #e8e8f0; }

/* ── Spark / mini-nav bar ─────────────────────────────────── */
.spark-bar {
    background: var(--gp-navy);
    padding: 0.52rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-bottom: 2px solid var(--gp-cyan);
    font-size: 0.88rem;
}
.spark-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spark-links a { color: var(--gp-cyan); 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 image: images/graysonsHero.jpg — add url() here when supplied */
#hero {
    background:
        radial-gradient(ellipse 70% 45% at 50% 32%, rgba(0, 190, 215, 0.18) 0%, transparent 100%),
        radial-gradient(ellipse 70% 45% at 50% 68%, rgba(255, 140, 0, 0.18) 0%, transparent 100%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        var(--gp-dark);
    background-color: var(--gp-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.50);
    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(--gp-cyan);
}

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

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

/* ── Intro card ───────────────────────────────────────────── */
.intro-card {
    background: var(--gp-navy);
    border: 1px solid rgba(0,200,216,0.20);
    border-top: 4px solid var(--gp-cyan);
    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(--gp-cyan);
    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-badge {
    display: inline-block;
    background: var(--gp-cyan);
    color: var(--gp-dark);
    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;
}

.grayson-note {
    background: rgba(0,200,216,0.08);
    border-left: 3px solid var(--gp-cyan);
    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;
}

.grayson-note strong { color: var(--gp-cyan); }

/* ── Tutorial callout (amber accent) ─────────────────────── */
.tutorial-callout {
    background: rgba(255,170,0,0.07);
    border-left: 3px solid var(--gp-amber);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.1rem;
    margin: 1rem 0 0;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.80);
    line-height: 1.65;
}

.tutorial-callout strong { color: var(--gp-amber); }

/* ── Showcase card ────────────────────────────────────────── */
.showcase-card {
    background: #0d0d1c;
    border: 1px solid rgba(0,200,216,0.15);
    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: 520px;
    overflow-y: auto;
    height: 100%;
    min-height: 300px;
}

.code-paper ol {
    margin: 0;
    padding: 0;
    list-style-type: decimal;
    padding-left: 3.2rem;
    counter-reset: line;
    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: #0d0d1c;
    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: 520px;
    }
}

.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;
}

#graysonsCanvas {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#graysonsCanvas canvas {
    display: block;
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 4px 28px rgba(0,0,0,0.60);
}

.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(--gp-cyan); font-weight: 700; }

/* ── What's Next / Analysis card ─────────────────────────── */
.next-card {
    background: var(--gp-navy);
    border: 1px solid rgba(0,200,216,0.20);
    border-radius: 12px;
    padding: 1.4rem 1.75rem;
}

.next-card h3 {
    font-family: 'Boogaloo', cursive;
    font-size: 1.35rem;
    color: var(--gp-cyan);
    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(0,200,216,0.18);
    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;
    margin-left: 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;
}
