/* ══════════════════════════════════════════════════════════════════════════════
   rubberDuckOriginalStyles.css
   TNT | Tool Time | Rubber Duck Saga — Entry #8
   Created: 11/16/2026
   Palette: rubber-duck yellow · bath-water blue · deep-water dark
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --rd-dark:       #07111c;
    --rd-card:       #0f1e2d;
    --rd-card-lt:    #152a3d;
    --rd-yellow:     #f5c218;
    --rd-yellow-lt:  rgba(245,194,24,0.15);
    --rd-blue:       #2496b4;
    --rd-blue-dim:   rgba(36,150,180,0.20);
    --rd-cream:      #eef5f9;
    --rd-cream-dim:  rgba(238,245,249,0.65);
    --rd-border:     rgba(245,194,24,0.22);
    --rd-border-b:   rgba(36,150,180,0.22);
}

body {
    background-color: var(--rd-dark);
    color: var(--rd-cream);
    font-family: 'Inter', sans-serif;
}

/* ── Back bar ──────────────────────────────────────────────────────────────── */
.rd-back-bar {
    background: rgba(7,17,28,0.96);
    border-bottom: 1px solid var(--rd-border);
    padding: 0.45rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.rd-back-bar a            { color: var(--rd-yellow); text-decoration: none; transition: color 0.18s; }
.rd-back-bar a:hover      { color: var(--rd-cream); }
.rd-back-bar span         { color: rgba(238,245,249,0.30); margin-left: auto; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
    min-height: 40vh;
    background:
        linear-gradient(160deg, rgba(7,17,28,0.88) 0%, rgba(10,30,50,0.65) 100%),
        url('../images/ducks2026-11-12a.jpeg') center 40% / cover no-repeat;
    padding: 4rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content     { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-eyebrow     { display: block; font-size: 0.78rem; font-weight: 600;
                     letter-spacing: 2.5px; text-transform: uppercase;
                     color: var(--rd-yellow); margin-bottom: 0.65rem; }
.hero-title       { font-family: 'Boogaloo', sans-serif;
                     font-size: clamp(2rem, 5vw, 3.2rem);
                     color: var(--rd-cream); margin-bottom: 0.55rem; line-height: 1.15; }
.hero-subtitle    { font-size: 1rem; color: var(--rd-cream-dim);
                     max-width: 580px; margin: 0 auto; line-height: 1.65; }

/* ── Main section ──────────────────────────────────────────────────────────── */
#mainSection { background: var(--rd-dark); padding: 3rem 1rem 5rem; }

/* ── Intro card ────────────────────────────────────────────────────────────── */
.intro-card {
    background: var(--rd-card);
    border: 1px solid var(--rd-border);
    border-left: 4px solid var(--rd-yellow);
    border-radius: 10px;
    padding: 1.6rem 2rem;
    margin-bottom: 1.75rem;
    color: var(--rd-cream-dim);
    line-height: 1.72;
}
.intro-card h2    { font-family: 'Boogaloo', sans-serif; font-size: 1.5rem;
                    color: var(--rd-yellow); margin-bottom: 0.75rem; }
.intro-card code  { color: var(--rd-yellow); background: rgba(245,194,24,0.12);
                    padding: 1px 5px; border-radius: 4px; font-size: 0.87em; }
.intro-card a     { color: var(--rd-yellow); font-weight: 600; }
.intro-card a:hover { color: var(--rd-cream); }

.stage-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    background: var(--rd-yellow-lt); color: var(--rd-yellow);
    border: 1px solid rgba(245,194,24,0.35); border-radius: 4px;
    padding: 2px 10px; margin-bottom: 0.7rem;
}

/* ── TODO highlight box ────────────────────────────────────────────────────── */
.todo-box {
    background: rgba(245,194,24,0.08);
    border: 1px solid rgba(245,194,24,0.35);
    border-left: 4px solid var(--rd-yellow);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(245,220,100,0.90);
}
.todo-box strong { color: #f8e264; }
.todo-box code   { color: #f8e888; background: rgba(245,194,24,0.18);
                    padding: 1px 5px; border-radius: 3px; }

/* ── Showcase card ─────────────────────────────────────────────────────────── */
.showcase-card {
    background: var(--rd-card);
    border: 1px solid var(--rd-border-b);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

/* ── Code terminal header ──────────────────────────────────────────────────── */
.code-terminal-header {
    background: #040d14;
    border-bottom: 1px solid rgba(36,150,180,0.20);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.terminal-dots     { display: flex; gap: 6px; align-items: center; }
.td                { width: 12px; height: 12px; border-radius: 50%; }
.td-red            { background: #ff5f56; }
.td-yellow         { background: #ffbd2e; }
.td-green          { background: #27c93f; }
.terminal-filename { font-family: 'Source Code Pro', monospace;
                      font-size: 0.80rem; color: rgba(36,150,180,0.70); }
.terminal-tag      { font-size: 0.72rem; color: rgba(238,245,249,0.28); margin-left: 0.25rem; }
.copy-btn          { margin-left: auto; display: flex; align-items: center;
                      gap: 0.4rem; padding: 0.28rem 0.9rem;
                      background: rgba(36,150,180,0.12);
                      border: 1px solid rgba(36,150,180,0.40);
                      border-radius: 6px; font-size: 0.75rem; font-weight: 700;
                      color: var(--rd-blue); cursor: pointer;
                      transition: background 0.18s, color 0.18s; }
.copy-btn:hover    { background: rgba(36,150,180,0.25); color: var(--rd-cream); }

/* ── Blue-striped code display ─────────────────────────────────────────────── */
.code-paper {
    background: #030c15;
    overflow-x: auto;
    counter-reset: code-line;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.83rem;
    line-height: 1.65;
    padding: 0.6rem 0;
}
.code-paper ol { margin: 0; padding: 0; list-style: none; }
.code-paper li {
    padding: 1px 0 1px 0;
    white-space: pre;
    display: block;
    counter-increment: code-line;
    color: #b8d9f0;
}
.code-paper li:nth-child(odd)  { background: rgba(36,150,180,0.05); }
.code-paper li:nth-child(even) { background: rgba(36,150,180,0.11); }
.code-paper li::before {
    content: counter(code-line);
    display: inline-block;
    min-width: 36px;
    padding: 0 12px 0 10px;
    color: rgba(36,150,180,0.38);
    user-select: none;
    text-align: right;
    border-right: 1px solid rgba(36,150,180,0.15);
    margin-right: 12px;
}

/* ── Attribution strip ─────────────────────────────────────────────────────── */
.attr-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: #040d14;
    border-top: 1px solid rgba(36,150,180,0.15);
    font-size: 0.75rem;
    color: rgba(238,245,249,0.35);
}
.attr-name { color: var(--rd-yellow); font-weight: 700; }

/* ── Your Turn card ────────────────────────────────────────────────────────── */
.your-turn-card {
    background: var(--rd-card-lt);
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    padding: 1.6rem 2rem;
    color: var(--rd-cream-dim);
}
.your-turn-card h3   { font-family: 'Boogaloo', sans-serif; font-size: 1.3rem;
                        color: var(--rd-yellow); margin-bottom: 0.75rem; }
.your-turn-card h4   { font-size: 0.97rem; font-weight: 700; color: var(--rd-cream);
                        margin: 1.3rem 0 0.4rem; }
.your-turn-card code { color: var(--rd-yellow); background: rgba(245,194,24,0.10);
                        padding: 1px 5px; border-radius: 4px; font-size: 0.87em; }
.your-turn-card pre  { background: rgba(0,0,0,0.45); border: 1px solid rgba(36,150,180,0.22);
                        border-radius: 6px; padding: 0.75rem 1rem;
                        font-family: 'Source Code Pro', monospace;
                        font-size: 0.82rem; color: #b8d9f0;
                        overflow-x: auto; margin: 0.65rem 0; }
.your-turn-card a    { color: var(--rd-yellow); font-weight: 600; }
.your-turn-card a:hover { color: var(--rd-cream); }

.lang-idea-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }
.lang-idea {
    padding: 0.3rem 0.75rem; border-radius: 20px;
    background: var(--rd-yellow-lt);
    border: 1px solid rgba(245,194,24,0.30);
    font-size: 0.78rem; font-weight: 600; color: var(--rd-yellow);
}

.craft-callout {
    background: rgba(36,150,180,0.07);
    border-left: 3px solid var(--rd-blue);
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: rgba(238,245,249,0.68);
    margin-top: 1.2rem;
}
.craft-callout a { color: var(--rd-blue); }
.craft-callout a:hover { color: var(--rd-cream); }

/* ── Data file terminal header ─────────────────────────────────────────────── */
.data-terminal-header {
    background: #0d0a00;
    border-bottom: 1px solid rgba(245,194,24,0.20);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.data-copy-btn {
    margin-left: auto; display: flex; align-items: center;
    gap: 0.4rem; padding: 0.28rem 0.9rem;
    background: rgba(245,194,24,0.12);
    border: 1px solid rgba(245,194,24,0.40);
    border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    color: var(--rd-yellow); cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.data-copy-btn:hover { background: rgba(245,194,24,0.25); color: var(--rd-cream); }

/* ── Field legend strip ─────────────────────────────────────────────────────── */
.data-legend {
    background: rgba(245,194,24,0.06);
    border-bottom: 1px solid rgba(245,194,24,0.14);
    padding: 0.5rem 1rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: rgba(245,194,24,0.52);
    white-space: nowrap;
    overflow-x: auto;
}
.data-legend strong { color: rgba(245,194,24,0.78); }

/* ── Yellow-striped data file display ──────────────────────────────────────── */
.data-paper {
    background: #0d0a00;
    overflow-x: auto;
    counter-reset: data-line;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    padding: 0.6rem 0;
}
.data-paper ol { margin: 0; padding: 0; list-style: none; }
.data-paper li {
    padding: 1px 0 1px 0;
    white-space: pre;
    display: block;
    counter-increment: data-line;
    color: #f0d882;
}
.data-paper li:nth-child(odd)  { background: rgba(245,194,24,0.04); }
.data-paper li:nth-child(even) { background: rgba(245,194,24,0.09); }
.data-paper li::before {
    content: counter(data-line);
    display: inline-block;
    min-width: 36px;
    padding: 0 12px 0 10px;
    color: rgba(245,194,24,0.38);
    user-select: none;
    text-align: right;
    border-right: 1px solid rgba(245,194,24,0.15);
    margin-right: 12px;
}
.data-paper li.data-comment {
    color: rgba(245,194,24,0.40);
    font-style: italic;
}
.data-paper li.data-null {
    color: #ffb0b0 !important;
    background: rgba(220,50,50,0.14) !important;
}

/* ── Anomaly box ─────────────────────────────────────────────────────────────── */
.anomaly-box {
    background: rgba(220,50,50,0.08);
    border: 1px solid rgba(220,50,50,0.32);
    border-left: 4px solid #dc3232;
    border-radius: 0;
    padding: 0.85rem 1.1rem;
    margin: 0;
    font-size: 0.88rem;
    color: #ffb0b0;
    border-top: 4px solid #dc3232;
    border-left: none;
}
.anomaly-box strong { color: #ff7070; }
.anomaly-box code   { color: #ffbfbf; background: rgba(220,50,50,0.18);
                       padding: 1px 5px; border-radius: 3px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .hero-title       { font-size: 1.8rem; }
    .intro-card,
    .your-turn-card   { padding: 1.1rem 1rem; }
    .code-paper       { font-size: 0.75rem; }
    .rd-back-bar span { display: none; }
}
