/*
    TNT | Tool Time: AI Edition — Chat Log Styles
    toolTimeChatLogStyles.css
    Created: 2026-10-25
    Companion stylesheet for: ToolTime/toolTimeChatlog.html
    Color identity: warm amber #E8862A — workshop/improvement palette
    Modelled on: CrossTraining/crossTrainingChatlog.html (inline styles)
*/

/* ── Design Tokens ───────────────────────────────────────── */
:root {
    --tt-amber:       #E8862A;
    --tt-amber-dark:  #C86E1A;
    --tt-dark:        #110d07;
    --tt-dark-mid:    #1c1408;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    background: #f8f4ef;
    color: #1a1208;
    font-family: 'Inter', sans-serif;
}

/* ── Hero ────────────────────────────────────────────────── */
#ttclHero {
    background:
        linear-gradient(to bottom, rgba(17,13,7,0.88) 0%, rgba(100,45,5,0.50) 50%, rgba(17,13,7,0.90) 100%),
        url('../images/toolTimeHero.jpg') center 25% / cover no-repeat;
    background-color: #110d07;
    min-height: 210px;
    padding: 3rem 1rem;
}

/* ── Back bar ─────────────────────────────────────────────── */
.back-bar {
    background: #1c1408;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #E8862A;
}

.back-bar a {
    color: #E8862A;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.back-bar a:hover {
    color: #fff;
    text-decoration: underline;
}

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

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

/* ── S.P.A.R.K. step 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;
}

/* S — amber warm (Set Goal) */
.spark-s { background: #fff3e0; border-left: 5px solid #E8862A; }
/* P — green (Prompt) */
.spark-p { background: #eafaf1; border-left: 5px solid #27AE60; }
/* A — golden (Analyze) */
.spark-a { background: #fef9e7; border-left: 5px solid #F39C12; }
/* R — darker amber (Refine) */
.spark-r { background: rgba(200,110,26,0.07); border-left: 5px solid #C86E1A; }
/* K — brand amber (Know & Share) */
.spark-k { background: rgba(232,134,42,0.10); border-left: 5px solid #E8862A; }

/* ── Chat bubbles ─────────────────────────────────────────── */
.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;
}

/* Tim's side */
.chat-speaker.user    { color: #7a3c0a; text-align: right; }
/* Al's side */
.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 { margin-bottom: 0; }

/* Tim's bubble — warm honey */
.bubble-user {
    background: #fff3e0;
    border: 1px solid #f59e0b;
    color: #2d1b04;
    border-bottom-right-radius: 3px;
    float: right;
    clear: both;
}

/* Al's bubble — cool green */
.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; }
.chat-turn::after { content: ""; display: table; clear: both; }

/* ── Information boxes ────────────────────────────────────── */

/* Decision — amber left border */
.decision-box {
    background: #fffbf0;
    border-left: 5px solid #E8862A;
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.decision-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a4a10;
    margin-bottom: 0.3rem;
}

/* Prompt critique — violet for meta-analysis */
.critique-box {
    background: rgba(109,40,217,0.04);
    border: 2px solid #6d28d9;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.critique-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6d28d9;
    margin-bottom: 0.3rem;
}

/* General aside — warm off-white */
.aside-box {
    background: #f8f4ef;
    border: 1px solid #e0d4c0;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.aside-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b4c20;
    margin-bottom: 0.3rem;
}

/* ── Log dividers ─────────────────────────────────────────── */
.log-divider {
    text-align: center;
    margin: 2rem 0 0.5rem;
    color: #b8956a;
    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: #e0d4c0;
    vertical-align: middle;
    margin: 0 0.7rem;
}

/* ── Code in boxes ────────────────────────────────────────── */
.chat-bubble code,
.aside-box code,
.decision-box code,
.critique-box code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85em;
}

/* ── Prompt grade badge ───────────────────────────────────── */
.prompt-grade {
    display: inline-block;
    font-family: 'Boogaloo', cursive;
    font-size: 1.5rem;
    padding: 0.2rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.55rem;
    letter-spacing: 1px;
}

.grade-a-plus  { background: #d1fae5; color: #064e3b; border: 2px solid #10b981; }
.grade-a       { background: #d1fae5; color: #065f46; border: 2px solid #34d399; }
.grade-a-minus { background: #ecfdf5; color: #047857; border: 2px solid #6ee7b7; }
.grade-b-plus  { background: #fef3c7; color: #78350f; border: 2px solid #fbbf24; }
.grade-b       { background: #fef3c7; color: #92400e; border: 2px solid #f59e0b; }

/* ── Prompt element checklist ─────────────────────────────── */
.prompt-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.prompt-check .check-icon { flex-shrink: 0; font-size: 1rem; margin-top: 0.05rem; }
