/*
    TNT | Tool Time | Ethan's Baby Shark — Chatlog Styles
    ethanBabySharkChatlogStyles.css
    Created: 2026-10-26
    Used by: ethanBabySharkChatlog.html
    Color identity: deep ocean blue — same palette as main entry page
*/

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --eb-blue:       #4A90E2;
    --eb-blue-dark:  #2D6DB5;
    --eb-ocean:      #050f1a;
    --eb-mid:        #0a1f35;
    --eb-card:       #0d2440;
    --eb-border:     rgba(74, 144, 226, 0.22);
    --eb-pink:       #FF6B8B;
    --eb-amber:      #E8862A;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    background: var(--eb-ocean);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    min-height: 38vh;
    background:
        linear-gradient(135deg, rgba(5,15,26,0.92) 0%, rgba(10,50,100,0.68) 100%),
        url('../images/ethanShark-card.gif') center 39% / cover no-repeat;
    background-color: var(--eb-ocean);
    padding: 4rem 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 0.4rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    color: #fff;
    line-height: 1.12;
    margin-bottom: 0.6rem;
}

.hero-title .eb-accent { color: var(--eb-pink); }

.hero-subtitle {
    font-size: clamp(0.92rem, 2.1vw, 1.1rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.68;
}

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

.eb-back-bar a { color: var(--eb-blue); font-weight: 700; text-decoration: none; }
.eb-back-bar a:hover { color: #fff; }
.eb-back-bar span { color: rgba(255,255,255,0.28); font-size: 0.80rem; }

/* ── 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(74,144,226,0.10); border-left: 5px solid var(--eb-blue); color: rgba(255,255,255,0.85); }
.spark-p { background: rgba(39,174,96,0.08);  border-left: 5px solid #27AE60; color: rgba(255,255,255,0.85); }
.spark-a { background: rgba(241,196,15,0.08); border-left: 5px solid #F1C40F; color: rgba(255,255,255,0.85); }
.spark-r { background: rgba(232,134,42,0.07); border-left: 5px solid var(--eb-amber); color: rgba(255,255,255,0.85); }
.spark-k { background: rgba(74,144,226,0.08); border-left: 5px solid var(--eb-blue); color: rgba(255,255,255,0.85); }

/* ── 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: #93c5fd; text-align: right; }
.chat-speaker.copilot { color: #6EE7B7; }

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

.bubble-user {
    background: rgba(74,144,226,0.14);
    border: 1px solid rgba(74,144,226,0.30);
    color: rgba(255,255,255,0.90);
    border-bottom-right-radius: 3px;
    float: right; clear: both;
}

.bubble-copilot {
    background: rgba(110,231,183,0.06);
    border: 1px solid rgba(110,231,183,0.16);
    color: rgba(255,255,255,0.88);
    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; }

/* ── Info boxes ───────────────────────────────────────────── */
.decision-box {
    background: rgba(74,144,226,0.06);
    border-left: 5px solid var(--eb-blue);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.82);
}

.decision-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--eb-blue);
    margin-bottom: 0.3rem;
}

/* Prompt 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;
    color: rgba(255,255,255,0.82);
}

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

.aside-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.80);
}

.aside-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.3rem;
}

/* ── Dividers ─────────────────────────────────────────────── */
.log-divider {
    text-align: center;
    margin: 2rem 0 0.5rem;
    color: rgba(74,144,226,0.60);
    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: rgba(74,144,226,0.22);
    vertical-align: middle;
    margin: 0 0.7rem;
}

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

/* ── Prompt check rows ────────────────────────────────────── */
.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; }

/* ── Code in boxes ────────────────────────────────────────── */
.decision-box code, .aside-box code, .chat-bubble code, .critique-box code {
    background: rgba(74,144,226,0.14);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Source Code Pro', 'Noto Sans Mono', monospace;
    font-size: 0.85em;
    color: #93c5fd;
}
