/* ══════════════════════════════════════════════════════════════════════════════
   xmasLightsChatlogStyles.css
   TNT | Tool Time | Xmas Lights — Entry #7 Chatlog
   Created: 11/02/2026
   Palette: Christmas forest green · holiday red · gold star · snow cream
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --xm-dark:   #070f0a;
    --xm-card:   #0e1a10;
    --xm-forest: #1a5c1a;
    --xm-red:    #cc2200;
    --xm-gold:   #f2a800;
    --xm-cream:  #f0ebe0;
    --xm-dim:    rgba(240,235,224,0.60);
    --xm-green:  #27ae3d;
    --xm-border: rgba(39,174,61,0.28);
    --xm-blue2:  rgba(39,174,61,0.18);
}

body { background: var(--xm-dark); color: var(--xm-cream);
       font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.72; }

/* ── Back bar ──────────────────────────────────────────────────────────────── */
.xm-back-bar {
    background: rgba(7,15,10,0.96);
    border-bottom: 1px solid var(--xm-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;
}
.xm-back-bar a       { color: var(--xm-green); text-decoration: none; transition: color 0.18s; }
.xm-back-bar a:hover { color: var(--xm-cream); }
.xm-back-bar span    { color: rgba(240,235,224,0.28); margin-left: auto; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
    min-height: 30vh;
    background:
        linear-gradient(160deg, rgba(7,15,10,0.90) 0%, rgba(15,40,18,0.72) 100%),
        url('../images/xmasTree2.png') center 30% / cover no-repeat;
    padding: 3.5rem 1rem 2.5rem;
    display: flex; align-items: center; justify-content: center;
}
.hero-content   { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-eyebrow   { display: block; font-size: 0.75rem; font-weight: 600;
                   letter-spacing: 2.5px; text-transform: uppercase;
                   color: var(--xm-gold); margin-bottom: 0.55rem; }
.hero-title     { font-family: 'Boogaloo', sans-serif;
                   font-size: clamp(1.8rem, 4.5vw, 2.8rem);
                   color: var(--xm-cream); margin-bottom: 0.5rem; }
.hero-subtitle  { font-size: 0.95rem; color: var(--xm-dim);
                   max-width: 560px; margin: 0 auto; line-height: 1.65; }

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

/* ── Log divider ───────────────────────────────────────────────────────────── */
.log-divider {
    text-align: center; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(39,174,61,0.55); margin: 2rem 0 1.1rem; position: relative;
}
.log-divider::before, .log-divider::after {
    content: ''; position: absolute; top: 50%;
    width: 25%; height: 1px; background: rgba(39,174,61,0.22);
}
.log-divider::before { left: 0; }
.log-divider::after  { right: 0; }

/* ── SPARK banners ─────────────────────────────────────────────────────────── */
.spark-banner {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 0.9rem 1.1rem; border-radius: 10px;
    margin: 1.5rem 0 0.7rem; font-size: 0.9rem;
}
.spark-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1.2; }
.spark-banner strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.spark-s  { background: rgba(39,174,61,0.14); border-left: 5px solid var(--xm-green); color: #d0f0d0; }
.spark-p  { background: rgba(242,168,0,0.12);  border-left: 5px solid var(--xm-gold);  color: #fef0d0; }
.spark-a  { background: rgba(39,174,61,0.10);  border-left: 5px solid #4ecb6e;          color: #d0f0d0; }
.spark-r  { background: rgba(39,174,61,0.14);  border-left: 5px solid var(--xm-green); color: #d0f0d0; }
.spark-k  { background: rgba(242,168,0,0.14);  border-left: 5px solid var(--xm-gold);  color: #fef0d0; }

/* ── Aside / info boxes ────────────────────────────────────────────────────── */
.aside-box {
    background: var(--xm-card); border: 1px solid var(--xm-border);
    border-left: 4px solid var(--xm-green); border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem; margin: 1.1rem 0;
    font-size: 0.88rem; color: var(--xm-dim);
}
.aside-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
               text-transform: uppercase; color: var(--xm-green); margin-bottom: 0.45rem; }
.aside-box a { color: var(--xm-green); font-weight: 600; }

/* ── Chat turns ────────────────────────────────────────────────────────────── */
.chat-turn { margin: 0.5rem 0 1.2rem; }
.chat-speaker { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
                text-transform: uppercase; margin-bottom: 0.3rem; }
.chat-speaker.user    { color: var(--xm-green); text-align: right; }
.chat-speaker.copilot { color: var(--xm-gold); }
.chat-bubble { display: inline-block; max-width: 88%; background: var(--xm-card);
               border-radius: 10px; padding: 0.7rem 1rem;
               font-size: 0.88rem; color: var(--xm-dim); line-height: 1.68; }
.bubble-user-wrap { text-align: right; }
.bubble-user-wrap .chat-bubble {
    background: rgba(39,174,61,0.12); border: 1px solid rgba(39,174,61,0.25); text-align: left;
}

/* ── Critique box ──────────────────────────────────────────────────────────── */
.critique-box {
    background: var(--xm-card); border: 1px solid var(--xm-border);
    border-radius: 10px; padding: 1.4rem 1.6rem; margin: 1rem 0; position: relative;
}
.critique-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
                  text-transform: uppercase; color: var(--xm-green);
                  margin-bottom: 2rem; }
.prompt-grade {
    position: absolute; top: 1.1rem; right: 1.3rem;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Boogaloo', sans-serif; font-size: 1.6rem; font-weight: 700;
}
.grade-a  { background: rgba(39,174,96,0.18);  border: 2px solid #27AE60; color: #27AE60; }
.grade-b  { background: rgba(39,174,61,0.18);  border: 2px solid var(--xm-green); color: var(--xm-green); }
.prompt-check {
    display: flex; gap: 0.7rem; align-items: flex-start;
    padding: 0.45rem 0; border-bottom: 1px solid rgba(39,174,61,0.08);
    font-size: 0.86rem; color: var(--xm-dim);
}
.prompt-check:last-of-type { border-bottom: none; }
.check-icon { flex-shrink: 0; font-size: 1rem; margin-top: 0.1rem; }

/* ── Code snap ─────────────────────────────────────────────────────────────── */
.code-snap {
    background: #f0fdf4; border: 1px solid rgba(22,163,74,0.28);
    border-radius: 6px; padding: 0.65rem 0.9rem;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.82rem; color: #0a2010;
    overflow-x: auto; white-space: pre; margin: 0.65rem 0;
}

/* ── Decision box ──────────────────────────────────────────────────────────── */
.decision-box {
    background: rgba(39,174,61,0.06); border: 1px solid rgba(39,174,61,0.20);
    border-radius: 10px; padding: 1.1rem 1.4rem; margin: 1rem 0;
    font-size: 0.88rem; color: var(--xm-dim);
}
.decision-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
                  text-transform: uppercase; color: var(--xm-green); margin-bottom: 0.55rem; }
.decision-box code { color: var(--xm-green); background: rgba(39,174,61,0.10);
                      padding: 1px 5px; border-radius: 3px; font-size: 0.87em; }
.decision-box a    { color: var(--xm-green); font-weight: 600; }
