/* ─────────────────────────────────────────────────────────────────────────
   henryGhostDevmt1Styles.css
   TNT | Henry's Ghost Saga — Stage 3: Single Ghost (p5.js)
   Deep-blue ghost theme with dark greenbar code panel and live sketch canvas.
──────────────────────────────────────────────────────────────────────────── */

:root {
    --hg-blue:    #2563eb;
    --hg-teal:    #3a9e8a;
    --hg-ghost:   #c8d8ff;
    --hg-dark:    #05081a;
    --hg-navy:    #070d25;
    --hg-mid:     #0b1230;

    /* Greenbar paper — dark variant */
    --gb-row-a:   #080e1f;
    --gb-row-b:   #040a18;
    --gb-num:     #2a4a7a;
    --gb-text:    #c9d1d9;

    /* JS syntax highlights */
    --js-keyword: #ff7b72;
    --js-comment: #8b949e;
    --js-string:  #a5d6ff;
    --js-number:  #79c0ff;
}

body { background: var(--hg-dark); color: rgba(255,255,255,0.85); }

.spark-bar {
    background: var(--hg-navy);
    padding: 0.52rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-bottom: 2px solid var(--hg-blue);
    font-size: 0.88rem;
}

.spark-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.spark-links a { color: var(--hg-ghost); font-weight: 700; text-decoration: none; }
.spark-links a:hover { color: #fff; text-decoration: underline; }
.spark-bar > span { color: rgba(255,255,255,0.38); font-size: 0.80rem; margin-left: auto; }

#hero {
    min-height: 35vh;
    background:
        linear-gradient(135deg, rgba(5,14,37,0.80) 0%, rgba(10,20,60,0.65) 100%),
        url('../images/henryGhost2.png') center / cover no-repeat;
    background-color: var(--hg-dark);
    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.52);
    display: block;
    margin-bottom: 0.65rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 0.75rem;
    color: var(--hg-ghost);
}

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

#mainSection {
    background: linear-gradient(180deg, #071027 0%, #040814 100%);
    padding: 3rem 0 5rem;
}

.intro-card {
    background: var(--hg-mid);
    border: 1px solid rgba(37,99,235,0.25);
    border-top: 4px solid var(--hg-blue);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

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

.intro-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.74);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.novice-badge {
    display: inline-block;
    background: rgba(37,99,235,0.14);
    border: 1px solid rgba(37,99,235,0.38);
    color: #93c5fd;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 0.6rem;
}

.tech-note {
    background: rgba(37,99,235,0.08);
    border-left: 3px solid var(--hg-blue);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

.tech-note strong { color: var(--hg-ghost); }

.showcase-card {
    background: #0c132b;
    border: 1px solid rgba(37,99,235,0.20);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.code-terminal-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #111a36;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.terminal-dots { display: flex; gap: 6px; }
.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.78rem;
    color: rgba(255,255,255,0.68);
    flex: 1;
}

.terminal-tag {
    font-size: 0.70rem;
    color: rgba(147,197,253,0.90);
    background: rgba(37,99,235,0.14);
    padding: 2px 8px;
    border-radius: 4px;
}

.copy-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #ccc;
    font-size: 0.76rem;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.code-paper {
    background: var(--gb-row-a);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 540px;
    height: 100%;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.78rem;
    line-height: 1.62;
    counter-reset: lineno;
}

.code-paper ol { list-style: none; margin: 0; padding: 0; }

.code-paper li {
    display: flex;
    counter-increment: lineno;
    padding: 0 1rem;
}

.code-paper li:nth-child(6n+1),
.code-paper li:nth-child(6n+2),
.code-paper li:nth-child(6n+3) { background: var(--gb-row-a); }

.code-paper li:nth-child(6n+4),
.code-paper li:nth-child(6n+5),
.code-paper li:nth-child(6n+6) { background: var(--gb-row-b); }

.code-paper li::before {
    content: counter(lineno);
    min-width: 2.8rem;
    color: var(--gb-num);
    text-align: right;
    padding-right: 1rem;
    user-select: none;
    flex-shrink: 0;
}

.code-paper li code {
    color: var(--gb-text);
    white-space: pre;
    font-family: inherit;
    background: none;
    padding: 0;
}

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

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

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

.canvas-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 0.75rem;
}

#sketchContainer canvas {
    border-radius: 6px;
    display: block;
    max-width: 100%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 12px 32px rgba(0,0,0,0.35);
}

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

.canvas-mobile-warning {
    display: none;
    text-align: center;
    color: var(--tnt-red);
    font-weight: 700;
    padding: 1.5rem 1rem;
}

@media (max-width: 575px) {
    .canvas-panel { display: none; }
    .canvas-mobile-warning { display: block; }
}

footer {
    background: var(--hg-dark);
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    padding: 2rem 1rem;
    text-align: center;
}

footer .footer-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1rem;
}

footer .footer-icons img { height: 28px; opacity: 0.55; }
footer .footer-icons img:hover { opacity: 0.9; }
footer .footer-text { margin-bottom: 0.25rem; }

@media (max-width: 575px) {
    .spark-bar,
    .spark-links {
        justify-content: center;
        text-align: center;
    }
}
