/*
File: parabolaSagaChatlogStyles.css
Date: 2026-09-10
Author: klp
Purpose: Styles for parabolaSagaChatlog.html — SPARK development chat log for Parabola Saga.
Theme: forest green + Oz gold, matching the onlyHadABrain / quadratic ecosystem.
*/

:root {
    --ps-green:       #2a7a2a;
    --ps-green-mid:   #4A8C2A;
    --ps-green-light: #AADE7E;
    --ps-gold:        #C8941A;
    --ps-gold-light:  #E8B840;
    --ps-dark:        #0A1505;
    --nunito:         'Nunito', 'Inter', sans-serif;
    --mono:           'Noto Sans Mono', 'Courier New', monospace;
}

body {
    font-family: var(--nunito);
    background: #f4f9f4;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
#hero {
    min-height: 28vh;
    background:
        linear-gradient(155deg,
            rgba(8,20,3,0.58) 0%,
            rgba(25,50,8,0.48) 50%,
            rgba(4,12,2,0.62) 100%),
        url('../images/scarecrowBrain.jpg') center 35% / cover no-repeat;
    background-color: var(--ps-dark);
    padding: 3rem 1rem;
}

.hero-eyebrow {
    color: var(--ps-gold);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    color: rgba(170,222,126,0.85);
}

/* ── Back bar ──────────────────────────────────────────────────────── */
.ps-back-bar {
    background: var(--ps-dark);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--ps-green-mid);
}

.ps-back-bar a {
    color: var(--ps-gold);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.ps-back-bar a:hover { text-decoration: underline; }

.ps-back-bar span {
    color: rgba(255,255,255,0.45);
    font-size: 0.80rem;
}

/* ── Log container ─────────────────────────────────────────────────── */
.log-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── Section dividers ──────────────────────────────────────────────── */
.log-divider {
    text-align: center;
    margin: 2.2rem 0 0.6rem;
    color: var(--ps-green-mid);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.log-divider::before,
.log-divider::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #b8d8b8;
    vertical-align: middle;
    margin: 0 0.7rem;
}

/* ── SPARK banners ─────────────────────────────────────────────────── */
.spark-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin: 1.6rem 0 0.7rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.spark-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.spark-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.spark-s { background: #e8f4fd; border-left: 5px solid #3498DB; }
.spark-p { background: #eafaf1; border-left: 5px solid #27AE60; }
.spark-a { background: #f0f8ec; border-left: 5px solid var(--ps-green); }
.spark-r { background: #fef9e7; border-left: 5px solid var(--ps-gold); }
.spark-k { background: #f9f4ea; border-left: 5px solid var(--ps-gold-light); }

/* ── Chat turns ────────────────────────────────────────────────────── */
.chat-turn { margin: 0.5rem 0 1.4rem; }

.chat-speaker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.chat-speaker.user    { color: #1a5276; text-align: right; }
.chat-speaker.copilot { color: var(--ps-green); }

.chat-bubble {
    display: inline-block;
    max-width: 92%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.65;
}

.chat-bubble p:last-child { margin-bottom: 0; }

.bubble-user {
    background: #d6eaf8;
    border: 1px solid #aed6f1;
    color: #1a2a3a;
    border-bottom-right-radius: 3px;
    float: right;
    clear: both;
}

.bubble-copilot {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1a2a1a;
    border-bottom-left-radius: 3px;
    float: left;
    clear: both;
}

.bubble-user-wrap { text-align: right; }
.bubble-user-wrap .chat-bubble { text-align: left; }
.chat-turn::after { content: ""; display: table; clear: both; }

/* ── Inline code in all boxes ──────────────────────────────────────── */
.chat-bubble code,
.aside-box code,
.decision-box code,
.critique-box code,
.bug-box code,
.phase2-box code {
    background: rgba(0,0,0,0.09);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.84em;
}

/* ── Decision box (green) ──────────────────────────────────────────── */
.decision-box {
    background: #f0f9f0;
    border-left: 5px solid var(--ps-green);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

.decision-label {
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #155215;
    margin-bottom: 0.35rem;
}

/* ── Critique box (amber) ──────────────────────────────────────────── */
.critique-box {
    background: #fffbf2;
    border: 2px solid var(--ps-gold);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

.critique-label {
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a4e00;
    margin-bottom: 0.35rem;
}

/* ── Aside box (gray-green) ────────────────────────────────────────── */
.aside-box {
    background: #f8faf8;
    border: 1px solid #ccdccc;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

.aside-label {
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ps-dark);
    margin-bottom: 0.35rem;
}

/* ── Bug box (red) ─────────────────────────────────────────────────── */
.bug-box {
    background: #fff8f8;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

.bug-label {
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 0.35rem;
}

/* ── Phase 2 preview box (dashed green) ────────────────────────────── */
.phase2-box {
    background: rgba(42,122,42,0.05);
    border: 2px dashed rgba(42,122,42,0.38);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ── Code snippet blocks ───────────────────────────────────────────── */
pre.code-snippet {
    background: #111d11;
    color: #b8d89a;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    font-size: 0.80rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-family: var(--mono);
    line-height: 1.6;
    white-space: pre;
}

pre.code-snippet .kw { color: var(--ps-gold); }
pre.code-snippet .cm { color: rgba(170,222,126,0.55); font-style: italic; }
pre.code-snippet .cf { color: var(--ps-green-light); font-weight: bold; }

/* ── Tables inside boxes ───────────────────────────────────────────── */
.aside-box .table,
.decision-box .table {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.aside-box thead,
.decision-box thead {
    background: rgba(42,122,42,0.12);
}

/* ── Stage navigation bar ───────────────────────────────── */
.ps-stage-nav-bar {
    background: var(--ps-dark);
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(42,122,42,0.35);
    font-size: 0.88rem;
}

.ps-stage-nav-bar a {
    color: var(--ps-gold);
    font-weight: 700;
    text-decoration: none;
}

.ps-stage-nav-bar a:hover { text-decoration: underline; }

.ps-stage-current {
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}

.ps-stage-upcoming {
    color: rgba(255,255,255,0.32);
    font-size: 0.82rem;
    margin-left: auto;  /* push to far right */
}

