/* ─────────────────────────────────────────────────────────────
   jaydensScalableEmojiStyles.css
   TNT | JaydenJamminEmoji2026-09-18 | Phase 5: Scalability Demo
   Same dark navy + gold + blue palette.
   Canvas target: #jaydensScalableCanvas
   Additions: .size-control (prominent gold slider), .constants-readout (grid).
──────────────────────────────────────────────────────────────── */

:root {
    --jj-gold:    #ffd700;
    --jj-gold-dk: #c9a800;
    --jj-blue:    #0078ff;
    --jj-blue-lt: #4da3ff;
    --jj-dark:    #07080f;
    --jj-navy:    #090c20;
    --jj-mid:     #0d1038;

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

/* ── Spark / mini-nav bar ─────────────────────────────────── */
.spark-bar {
    background: var(--jj-navy);
    padding: 0.52rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-bottom: 2px solid var(--jj-blue);
    font-size: 0.88rem;
}
.spark-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spark-links a { color: var(--jj-gold); 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 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 15% 55%, rgba(0, 120, 255, 0.28) 0%, transparent 65%),
        radial-gradient(ellipse 80% 55% at 85% 55%, rgba(0, 120, 255, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 55% 70% at 50% 108%, rgba(255, 215, 0, 0.24) 0%, transparent 55%),
        linear-gradient(170deg, #040608 0%, #060f2a 55%, #040608 100%);
    background-color: var(--jj-dark);
    min-height: 34vh;
    display: flex;
    align-items: center;
    padding: 4rem 1rem 3rem;
    color: #fff;
    text-align: center;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to right,
        transparent 0px, transparent 9px,
        rgba(0, 120, 255, 0.038) 9px, rgba(0, 120, 255, 0.038) 10px
    );
    pointer-events: none;
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; 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(--jj-gold);
}
.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;
}
.hero-subtitle code {
    background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 3px; font-size: 0.90em;
}

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

/* ── Intro card ───────────────────────────────────────────── */
.intro-card {
    background: var(--jj-navy);
    border: 1px solid rgba(0, 120, 255, 0.22);
    border-top: 4px solid var(--jj-gold);
    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(--jj-gold); 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;
}
.intro-card code {
    background: rgba(255,255,255,0.10); padding: 1px 5px;
    border-radius: 3px; font-size: 0.88em; color: var(--jj-blue-lt);
}

.stage-badge {
    display: inline-block;
    background: var(--jj-gold);
    color: var(--jj-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;
}

.concept-note {
    background: rgba(255, 215, 0, 0.07);
    border-left: 3px solid var(--jj-gold);
    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.65;
}
.concept-note strong { color: var(--jj-gold); }
.concept-note code {
    background: rgba(255,255,255,0.10); padding: 1px 4px;
    border-radius: 3px; font-size: 0.88em; color: var(--jj-blue-lt);
}

/* ── Showcase card ────────────────────────────────────────── */
.showcase-card {
    background: #0c0e22;
    border: 1px solid rgba(0, 120, 255, 0.18);
    border-radius: 14px; overflow: hidden; margin-bottom: 2rem;
}

.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: 580px; 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: #0c0e22;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    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: 580px;
    }
}
.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; align-self: flex-start;
}
#jaydensScalableCanvas {
    display: flex; align-items: center;
    justify-content: center; background: transparent; width: 100%;
}
#jaydensScalableCanvas canvas {
    display: block; border-radius: 8px; max-width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.canvas-caption {
    margin-top: 0.55rem; font-size: 0.78rem;
    color: rgba(255,255,255,0.38); text-align: center; line-height: 1.55;
}
.canvas-caption code {
    background: rgba(255,255,255,0.08); padding: 1px 4px; border-radius: 3px; font-size: 0.88em;
}

/* ── Face size slider — the star of the show ──────────────── */
.size-control {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 10px;
    padding: 0.90rem 1rem;
    margin: 0.85rem 0 0.55rem;
}

.size-control .size-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--jj-gold);
    display: block;
    margin-bottom: 0.45rem;
}

input[type="range"]#faceDiamSlider {
    width: 100%;
    height: 5px;
    accent-color: var(--jj-gold);
    cursor: pointer;
    display: block;
    margin: 0.2rem 0;
}

.size-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.28);
    font-family: 'Source Code Pro', monospace;
    margin-top: 0.18rem;
}

/* ── Color controls — secondary ───────────────────────────── */
.color-controls {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0, 120, 255, 0.28);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ctrl-row { display: flex; flex-direction: column; gap: 0.28rem; }
.ctrl-label {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.40);
}
.ctrl-input-row { display: flex; align-items: center; gap: 0.60rem; flex-wrap: nowrap; }

input[type="color"]#faceColorPicker {
    -webkit-appearance: none; appearance: none;
    width: 38px; height: 26px;
    border: 2px solid rgba(255, 215, 0, 0.45); border-radius: 5px;
    background: transparent; cursor: pointer; padding: 0; flex-shrink: 0;
}
input[type="color"]#faceColorPicker::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]#faceColorPicker::-webkit-color-swatch { border: none; border-radius: 3px; }
input[type="color"]#faceColorPicker::-moz-color-swatch { border: none; border-radius: 3px; }

input[type="range"]#bandHueSlider,
input[type="range"]#strokeBriSlider {
    flex: 1; min-width: 55px; accent-color: var(--jj-blue); cursor: pointer;
}

.ctrl-readout {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.68rem; color: rgba(255, 215, 0, 0.80); white-space: nowrap;
    flex-shrink: 0; background: rgba(0,0,0,0.22);
    padding: 0.10rem 0.40rem; border-radius: 4px;
}

/* ── Constants readout — live cascade display ─────────────── */
.constants-readout {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 0.70rem 0.90rem;
    margin-top: 0.55rem;
}

.const-readout-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin-bottom: 0.45rem;
}

.const-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.12rem 0.65rem;
    align-items: baseline;
}

.const-name {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.67rem;
    color: rgba(255,255,255,0.48);
}

.const-val {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.70rem;
    color: var(--jj-gold);
    font-weight: 700;
    text-align: right;
    min-width: 42px;
    transition: color 0.15s;
}

.const-note {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.60rem;
    color: rgba(255,255,255,0.20);
}

/* ── Attribution strip ────────────────────────────────────── */
.attr-strip {
    background: #080a18; 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(--jj-gold); font-weight: 700; }

/* ── What's Next card ─────────────────────────────────────── */
.next-card {
    background: var(--jj-navy);
    border: 1px solid rgba(0, 120, 255, 0.22);
    border-radius: 12px; padding: 1.4rem 1.75rem;
}
.next-card h3 {
    font-family: 'Boogaloo', cursive; font-size: 1.35rem;
    color: var(--jj-gold); 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;
}
.next-card code {
    background: rgba(255,255,255,0.10); padding: 1px 5px;
    border-radius: 3px; font-size: 0.88em; color: var(--jj-blue-lt);
}

/* ── 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: 5px;
    padding: 0.18rem 0.65rem; font-size: 0.70rem; cursor: pointer;
    font-family: inherit; display: inline-flex; align-items: center;
    gap: 0.35rem; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.copy-btn:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.45); }
