/* ─────────────────────────────────────────────────────────────
   ethansOriginalCrazyEmojiStyles.css
   TNT | EthansCrazedEmoji2026-09-15 | Original Sketch Showcase
   Light-on-dark: crazed emoji canvas glows against the dark page.
──────────────────────────────────────────────────────────────── */

:root {
    --ec-yellow:    #ffcc00;   /* emoji face tone — primary accent */
    --ec-yellow-dk: #d4a800;   /* darker hover */
    --ec-dark:      #0a0b1a;   /* near-black for body */
    --ec-navy:      #0d1033;   /* section dark */
    --ec-red:       #ff4060;   /* tongue/wild accent */
    --ec-mid:       #1a1e3f;   /* intermediate sections */

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

    /* JS syntax */
    --js-keyword:   #0055cc;
    --js-comment:   #6a737d;
    --js-string:    #006400;
}

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

/* ── Spark / mini-nav bar ─────────────────────────────────── */
.spark-bar {
    background: var(--ec-navy);
    padding: 0.52rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-bottom: 2px solid var(--ec-yellow);
    font-size: 0.88rem;
}
.spark-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spark-links a { color: var(--ec-yellow); 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(135deg, rgba(10,10,26,0.86) 0%, rgba(60,10,10,0.75) 100%),
        url('../images/cuckoo.jpg') center 25% / cover no-repeat;
    background-color: var(--ec-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(--ec-yellow);
}

.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(--ec-dark);
    padding: 3rem 0 3.5rem;
}

/* ── Intro card ───────────────────────────────────────────── */
.intro-card {
    background: var(--ec-navy);
    border: 1px solid rgba(255,204,0,0.20);
    border-top: 4px solid var(--ec-yellow);
    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(--ec-yellow);
    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(--ec-yellow);
    color: var(--ec-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;
}

.ethan-note {
    background: rgba(255,204,0,0.08);
    border-left: 3px solid var(--ec-yellow);
    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;
}

.ethan-note strong { color: var(--ec-yellow); }

/* ── Showcase card ────────────────────────────────────────── */
.showcase-card {
    background: #111327;
    border: 1px solid rgba(255,204,0,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 syntax highlights */
.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: #111327;
    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;
}

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

#ethansCanvas 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.75rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    text-align: center;
    line-height: 1.55;
}

/* ── Attribution strip ────────────────────────────────────── */
.attr-strip {
    background: #0d0f22;
    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(--ec-yellow); font-weight: 700; }

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

.next-card h3 {
    font-family: 'Boogaloo', cursive;
    font-size: 1.35rem;
    color: var(--ec-yellow);
    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: 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);
}
