/*
 * galtonBoardSimAppChatlogStyles.css
 * TNT | Galton Board Simulator — S.P.A.R.K. Chat Log styles
 * Created: 10/30/2026
 * Palette: Steel blue / warm gold / navy dark — from robotGaltonBoard1.jpg
 */

/* ═══ CUSTOM PROPERTIES ═══ */
:root {
    --gb-blue:    #2e86c1;
    --gb-blue-lt: rgba(46,134,193,0.15);
    --gb-gold:    #e8a020;
    --gb-gold-lt: rgba(232,160,32,0.15);
    --gb-dark:    #0d1219;
    --gb-card:    #131c28;
    --gb-border:  rgba(46,134,193,0.25);
    --gb-ice:     #d4e9f7;
}

/* ═══ BODY ═══ */
body {
    background:
        linear-gradient(145deg, rgba(13,18,25,0.90) 0%, rgba(18,26,40,0.92) 100%),
        url('../images/robotGaltonBoard2.jpg') center 30% / cover fixed;
    color: #d0e8f5;
    font-family: 'Inter', sans-serif;
}

/* ═══ BACK BAR ═══ */
.back-bar {
    background: rgba(13,18,25,0.95);
    border-bottom: 1px solid var(--gb-border);
    padding: 0.45rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.back-bar a {
    color: var(--gb-blue);
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.18s;
}
.back-bar a:hover { color: var(--gb-ice); }
.back-bar span { color: rgba(100,160,200,0.40); font-size: 0.78rem; margin-left: auto; }

/* ═══ HERO ═══ */
.gb-hero-log {
    background:
        linear-gradient(150deg, rgba(10,16,24,0.72), rgba(18,28,44,0.60)),
        url('../images/robotGaltonBoard2.jpg') center 30% / cover no-repeat;
    border-bottom: 1px solid var(--gb-border);
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}

/* ═══ LOG CONTAINER ═══ */
.log-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* ═══ SPARK BANNERS ═══ */
.spark-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin: 1.8rem 0 0.7rem;
    font-size: 0.9rem;
}
.spark-banner .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(46,134,193,0.18); border-left: 5px solid var(--gb-blue); color: #d4e9f7; }
.spark-p { background: rgba(232,160,32,0.14); border-left: 5px solid var(--gb-gold); color: #fef0d0; }
.spark-a { background: rgba(46,134,193,0.12); border-left: 5px solid #5dade2; color: #d4e9f7; }
.spark-r { background: rgba(46,134,193,0.18); border-left: 5px solid #2e86c1; color: #d4e9f7; }
.spark-k { background: rgba(232,160,32,0.16); border-left: 5px solid #e8a020; color: #fef0d0; }

/* ═══ 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(--gb-blue); text-align: right; }
.chat-speaker.copilot { color: var(--gb-gold); }
.chat-bubble {
    display: inline-block; max-width: 90%;
    padding: 0.75rem 1rem; border-radius: 12px;
    font-size: 0.91rem; line-height: 1.65;
}
.chat-bubble p:last-child { margin-bottom: 0; }
.bubble-user {
    background: rgba(46,134,193,0.20);
    border: 1px solid rgba(46,134,193,0.38);
    color: #d4e9f7;
    border-bottom-right-radius: 3px;
    float: right; clear: both; text-align: left;
}
.bubble-user-wrap { text-align: right; }
.bubble-user-wrap .chat-bubble { text-align: left; }
.chat-turn::after { content: ""; display: table; clear: both; }

/* ═══ ANNOTATION BOXES ═══ */
.critique-box {
    background: #fffbee;
    border: 2px solid var(--gb-gold);
    border-radius: 8px; padding: 0.9rem 1.1rem;
    margin: 1rem 0; font-size: 0.88rem; color: #2a1f08;
}
.critique-label {
    font-weight: 700; font-size: 0.72rem; letter-spacing: 2px;
    text-transform: uppercase; color: #9a6800; margin-bottom: 0.3rem;
}

.decision-box {
    background: rgba(13,18,25,0.90);
    border-left: 5px solid var(--gb-blue);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem; margin: 1rem 0;
    font-size: 0.88rem; color: rgba(195,228,248,0.90);
}
.decision-label {
    font-weight: 700; font-size: 0.72rem; letter-spacing: 2px;
    text-transform: uppercase; color: #5dade2; margin-bottom: 0.3rem;
}

.aside-box {
    background: rgba(10,16,24,0.88);
    border: 1px solid var(--gb-border);
    border-radius: 8px; padding: 0.9rem 1.1rem;
    margin: 1rem 0; font-size: 0.88rem;
    color: rgba(194,228,248,0.88);
}
.aside-label {
    font-weight: 700; font-size: 0.72rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gb-ice); margin-bottom: 0.3rem;
}

/* ═══ LOG DIVIDER ═══ */
.log-divider {
    text-align: center; margin: 2rem 0 0.5rem;
    color: var(--gb-blue); font-size: 0.78rem;
    letter-spacing: 2px; text-transform: uppercase;
}
.log-divider::before, .log-divider::after {
    content: "";
    display: inline-block; width: 60px; height: 1px;
    background: var(--gb-border); vertical-align: middle; margin: 0 0.7rem;
}

/* ═══ CODE SNAPS ═══ */
pre.code-snap {
    background: rgba(4,10,16,0.85);
    color: #7ec8e3;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 0.82em; padding: 0.65rem 0.9rem;
    border-radius: 6px; margin: 0.5rem 0;
    overflow-x: auto; white-space: pre;
    border: 1px solid var(--gb-border);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 575px) {
    .log-container { padding: 0 0.6rem 3rem; }
    .chat-bubble   { max-width: 97%; }
}
