/*
    TNT | SuperSorterTNT2026-10-14-Stg6
    File:    styles/superSorterChatlogStyles.css
    Created: 2026-10-14
    Author:  klp + GitHub Copilot

    PURPOSE:
    Styles for superSorterChatlog.html — the S.P.A.R.K. development dialog
    that documents the SuperSorter renovation and serves as a teaching
    resource for novices.

    Modeled on NarniaSaga2026/styles/narniaSPARKChatlogStyles.css.

    The hero background url() is relative to THIS file's location (styles/),
    so ../images/sortingPic.jpg resolves to:
      SuperSorterTNT2026-10-14-Stg6/images/sortingPic.jpg  ✓

    COLOR PALETTE (SuperSorter):
      --ss-blue:     #1a7fd4   machine / AI blue — primary accent
      --ss-steel:    #4aaae8   lighter machine blue — links
      --ss-dark:     #090e1a   deep navy background
      --ss-deep:     #05090f   deepest background
      --ss-frost:    #e8f4fc   near-white for light-background boxes
*/

:root {
    --ss-blue:     #1a7fd4;
    --ss-steel:    #4aaae8;
    --ss-dark:     #090e1a;
    --ss-deep:     #05090f;
    --ss-frost:    #e8f4fc;
}

/* ════════════════════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════════════════════ */
#hero {
    background:
        linear-gradient(135deg, rgba(5,9,20,0.58) 0%, rgba(10,20,40,0.42) 100%),
        url('../images/sortingPic.jpg') center 35% / cover no-repeat;
    background-color: var(--ss-deep);
    min-height: 210px;
    padding: 3rem 1rem 2.5rem;
}

.hero-title    { font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
.hero-subtitle { font-size: clamp(0.88rem, 1.8vw, 1.05rem); }

/* ════════════════════════════════════════════════════════
   BACK BAR
════════════════════════════════════════════════════════ */
.back-bar {
    background: var(--ss-deep);
    border-bottom: 2px solid var(--ss-blue);
    padding: 0.55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.back-bar a {
    color: var(--ss-steel);
    font-weight: 700;
    text-decoration: none;
}
.back-bar a:hover { text-decoration: underline; color: #80ccf5; }
.back-bar span { color: rgba(200, 220, 255, 0.35); font-size: 0.78rem; }

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

/* ════════════════════════════════════════════════════════
   SESSION DIVIDERS
════════════════════════════════════════════════════════ */
.log-divider {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ss-blue);
    margin: 2.4rem 0 1.2rem;
    position: relative;
}
.log-divider::before,
.log-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: rgba(26, 127, 212, 0.30);
}
.log-divider::before { left: 0; }
.log-divider::after  { right: 0; }

/* ════════════════════════════════════════════════════════
   SPARK PHASE BANNERS
   Each letter of S.P.A.R.K. gets its own color band.
════════════════════════════════════════════════════════ */
.spark-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin: 1.6rem 0 0.6rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.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;
}

/* S — Set Goal (blue) */
.spark-s { background: #e8f4fd; border-left: 5px solid #3498DB; }

/* P — Prompt (green) */
.spark-p { background: #eafaf1; border-left: 5px solid #27AE60; }

/* A — Analyze (yellow) */
.spark-a { background: #fef9e7; border-left: 5px solid #F1C40F; }

/* R — Refine (purple) */
.spark-r { background: #fdf2fb; border-left: 5px solid #8E44AD; }

/* K — Know / Keep (machine blue — matches SuperSorter theme) */
.spark-k { background: #e8f4fd; border-left: 5px solid var(--ss-blue); }

/* ════════════════════════════════════════════════════════
   CHAT BUBBLES
   User bubbles: right-aligned blue
   Copilot bubbles: left-aligned green
════════════════════════════════════════════════════════ */
.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: #1a5276; text-align: right; }
.chat-speaker.copilot { color: #145A32; }

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

.chat-bubble p:last-child,
.chat-bubble ul:last-child,
.chat-bubble ol:last-child,
.chat-bubble table:last-child { margin-bottom: 0; }

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

.bubble-copilot {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    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; }

/* clearfix after each turn */
.chat-turn::after { content: ""; display: table; clear: both; }

/* inline code inside bubbles */
.chat-bubble code {
    background: rgba(0,0,0,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: "Noto Sans Mono", "Consolas", monospace;
    font-size: 0.85em;
    color: #0d5c73;
}

/* ════════════════════════════════════════════════════════
   CALLOUT BOXES
════════════════════════════════════════════════════════ */

/* Amber critique box — prompt evaluation */
.critique-box {
    background: #fffbf2;
    border: 2px solid #c47b0a;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
}
.critique-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8c5400;
    margin-bottom: 0.5rem;
}

/* Teal decision box — design and renovation decisions */
.decision-box {
    background: #f0fafa;
    border: 2px solid #1a7fd4;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
}
.decision-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0e5d8a;
    margin-bottom: 0.5rem;
}

/* Blue aside box — orientation, notes, "what comes next" */
.aside-box {
    background: #f4f8ff;
    border: 1px solid rgba(26, 127, 212, 0.35);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #1a2a3a;
}
.aside-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

/* Teaching moment box — CS / algorithm pedagogy */
.teaching-box {
    background: #f0f9f4;
    border: 2px solid #27AE60;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
}
.teaching-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #145A32;
    margin-bottom: 0.5rem;
}

/* ════════════════════════════════════════════════════════
   TABLES inside bubbles / boxes
════════════════════════════════════════════════════════ */
.chat-bubble .table,
.decision-box .table,
.critique-box .table,
.teaching-box .table {
    font-size: 0.83rem;
    margin-top: 0.6rem;
}

/* ════════════════════════════════════════════════════════
   CODE BLOCKS
════════════════════════════════════════════════════════ */
pre {
    background: #f4f8fc;
    border: 1px solid rgba(26, 127, 212, 0.25);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: "Noto Sans Mono", "Consolas", monospace;
    font-size: 0.82rem;
    overflow-x: auto;
}

/* ════════════════════════════════════════════════════════
   FOOTER — rendered by tnt-base-styles.css
   No overrides needed; fonts size is consistent.
════════════════════════════════════════════════════════ */
