/*
    TNT | True Story of the Wolf — S.P.A.R.K. Chat Log Styles
    trueStoryWolfChatlogStyles.css
    Created: 2026-10-27
    Companion stylesheet for: TrueStoryWolf2026-10-27/trueStoryWolfChatlog.html
    Color identity: wolf brown #7a3c0a + pig pink #e07080 — fairy-tale palette
    Modelled on: ToolTime/styles/toolTimeChatLogStyles.css
*/

/* ── Design Tokens ───────────────────────────────────────── */
:root {
    --tsw-wolf:   #7a3c0a;
    --tsw-pig:    #e07080;
    --tsw-dark:   #2a1008;
    --tsw-mid:    #3d1c0f;
    --tsw-card:   #4a2215;
    --tsw-border: rgba(122, 60, 10, 0.22);
    --tsw-amber:  #E8862A;
}

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

/* ── Hero ────────────────────────────────────────────────── */
#tswclHero {
    background:
        linear-gradient(to bottom, rgba(42,16,8,0.88) 0%, rgba(122,60,10,0.52) 50%, rgba(42,16,8,0.92) 100%),
        url('../images/3pigs.jpg') center top / cover no-repeat;
    background-color: #2a1008;
    min-height: 210px;
    padding: 3rem 1rem;
}

/* ── Back bar ─────────────────────────────────────────────── */
.back-bar {
    background: #2a1008;
    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(--tsw-wolf);
}

.back-bar a {
    color: var(--tsw-wolf);
    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 — wolf brown (Refine) */
.spark-r { background: rgba(122,60,10,0.07); border-left: 5px solid #7a3c0a; }
/* K — pig pink (Know & Share) */
.spark-k { background: rgba(224,112,128,0.10); border-left: 5px solid #e07080; }

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

/* TTG's side */
.chat-speaker.user    { color: #7a3c0a; text-align: right; }
/* Copilot'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; }

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

/* Copilot'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 — wolf brown left border */
.decision-box {
    background: #fffbf0;
    border-left: 5px solid var(--tsw-wolf);
    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: #7a3c0a;
    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: #f9f5f0;
    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; }

.shadow-stroke {
  font-size: 4rem;
  color: white;
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
