/*
    Six Word Memoir &mdash; S.P.A.R.K. Chat Log Styles
    sixWordMemoirChatlogStyles.css
    Created: 2026-10-26
    Companion: SixWordMemoir/sixWordMemoirChatlog.html
    Palette: teal (#15665e) and gold (#e3b65e) — mirrors sixWordMemoir2Styles.css
    Structural model: ToolTime/styles/toolTimeChatLogStyles.css
*/

/* ── Design Tokens ───────────────────────────────────────── */
:root {
    --swm-teal:       #15665e;
    --swm-teal-dark:  #0f4d47;
    --swm-dark:       #0a3230;
    --swm-dark-mid:   #122f2d;
    --swm-gold:       #e3b65e;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    background: #f5f9f8;
    color: #203137;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Hero ────────────────────────────────────────────────── */
#swmHero {
    background:
        linear-gradient(to bottom, rgba(10,50,48,0.90) 0%, rgba(21,102,94,0.55) 50%, rgba(10,50,48,0.92) 100%),
        url('../images/healingLightMosaic.jpeg') center / cover no-repeat;
    background-color: #0a3230;
    min-height: 210px;
    padding: 3rem 1rem;
}

/* ── Back bar ─────────────────────────────────────────────── */
.back-bar {
    background: #122f2d;
    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(--swm-teal);
}

.back-bar a {
    color: var(--swm-gold);
    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 — teal (Set Goal) */
.spark-s { background: #e8f5f3; border-left: 5px solid var(--swm-teal); }
/* 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 — dark teal (Refine) */
.spark-r { background: rgba(15,77,71,0.07); border-left: 5px solid var(--swm-teal-dark); }
/* K — brand teal (Know & Share) */
.spark-k { background: rgba(21,102,94,0.10); border-left: 5px solid var(--swm-teal); }

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

.chat-speaker.user    { color: var(--swm-teal-dark); text-align: right; }
.chat-speaker.copilot { color: #145A32; }
.chat-speaker.chatgpt { color: #1a3a5c; }

.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 — light teal */
.bubble-user {
    background: #e8f5f3;
    border: 1px solid #81c5bf;
    color: #1a2e2c;
    border-bottom-right-radius: 3px;
    float: right;
    clear: both;
}

/* Copilot — green */
.bubble-copilot {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1a2a1a;
    border-bottom-left-radius: 3px;
    float: left;
    clear: both;
}

/* ChatGPT — soft blue-grey */
.bubble-chatgpt {
    background: #f0f4f8;
    border: 1px solid #b0c4d4;
    color: #1a2535;
    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 — teal left border */
.decision-box {
    background: #f0faf9;
    border-left: 5px solid var(--swm-teal);
    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: var(--swm-teal-dark);
    margin-bottom: 0.3rem;
}

/* Critique — violet */
.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;
}

/* Aside — teal-tinted off-white */
.aside-box {
    background: #f2f7f6;
    border: 1px solid #c5d9d7;
    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: var(--swm-teal);
    margin-bottom: 0.3rem;
}

/* Response summary — blue-grey left border */
.response-box {
    background: #f0f4f8;
    border-left: 5px solid #4a7fa5;
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}

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

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

/* ── Code in boxes ────────────────────────────────────────── */
.chat-bubble code,
.aside-box code,
.decision-box code,
.critique-box code,
.response-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: Georgia, serif;
    font-weight: 700;
    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; }
.grade-b-minus { background: #fff7ed; color: #a16207; border: 2px solid #d97706; }

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

/* ── Hero text ────────────────────────────────────────────── */
.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a3d9d5;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    margin: 0 0 0.5rem;
    color: #e8f5f3;
}

.hero-subtitle {
    font-size: 1rem;
    color: #c5e8e5;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Bottom nav ───────────────────────────────────────────── */
.bottom-nav {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid #c5d9d7;
    font-size: 0.88rem;
}

.bottom-nav a { margin: 0 0.6rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 650px) {
    .log-container { padding: 0 0.75rem 3rem; }
    .hero-title    { font-size: 1.8rem; }
    .chat-bubble   { max-width: 100%; }
    .back-bar      { flex-direction: column; align-items: flex-start; }
}
