/*
 * APCSDojoChatlogStyles.css
 * APCS Java Dojo — S.P.A.R.K. Chat Log Styles
 * Color identity: AP Java blue #5eb3d6
 * Created: 2026-11-11
 */

:root {
    --dojo:      #5eb3d6;
    --dojo-mid:  #3a8fb5;
    --dojo-dark: #1a5c8a;
    --dojo-dim:  rgba(94, 179, 214, 0.18);
    --dojo-bg:   #030c16;
    --amber:     #E69F4D;
}

body {
    background: #f3f5f8;
    color: #1a1a2a;
    font-family: 'Inter', sans-serif;
}

/* ── Back bar ───────────────────────────────────────────────── */
.back-bar {
    background: var(--dojo-bg);
    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(--dojo);
}
.back-bar a {
    color: var(--dojo);
    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.35); font-size: 0.80rem; }

/* ── Hero ───────────────────────────────────────────────────── */
#dojoClHero {
    background:
        linear-gradient(135deg, rgba(5,15,30,0.63) 0%, rgba(10,45,80,0.50) 100%),
        url('../../images/Wax-On.jpg') center 42% / cover no-repeat;
    min-height: 220px;
    padding: 3.5rem 1rem;
    text-align: center;
    color: #fff;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
}

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

/* ── Session separator ──────────────────────────────────────── */
.session-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}
.session-sep::before,
.session-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

/* ── S.P.A.R.K. 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: #e8f0ff; border-left: 5px solid #3498DB; }
.spark-p { background: #eafaf1; border-left: 5px solid #27AE60; }
.spark-a { background: #fef9e7; border-left: 5px solid #F1C40F; }
.spark-r { background: rgba(26,92,138,0.07); border-left: 5px solid var(--dojo-dark); }
.spark-k { background: rgba(230,159,77,0.10); border-left: 5px solid var(--amber); }

/* ── Chat bubbles ───────────────────────────────────────────── */
.chat-turn { margin: 0.5rem 0 1.4rem; }

.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: 92%;
    padding: 0.8rem 1.05rem;
    border-radius: 12px;
    font-size: 0.91rem;
    line-height: 1.62;
}
.chat-bubble p: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; }
.chat-turn::after { content: ''; display: table; clear: both; }

/* ── Information boxes ──────────────────────────────────────── */
.decision-box {
    background: #fffbf0;
    border-left: 5px solid var(--amber);
    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: #8a6010;
    margin-bottom: 0.4rem;
}

/* Critique box — AP Java blue theme */
.critique-box {
    background: rgba(94, 179, 214, 0.06);
    border: 2px solid var(--dojo);
    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: var(--dojo-dark);
    margin-bottom: 0.4rem;
}

/* Grade badge */
.grade-badge {
    display: inline-block;
    font-family: 'Boogaloo', cursive;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--dojo-dark);
    background: rgba(94, 179, 214, 0.15);
    border: 2px solid var(--dojo);
    border-radius: 8px;
    padding: 0.1rem 0.6rem 0.2rem;
    margin-bottom: 0.6rem;
}

/* Prompt-check rows */
.prompt-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.5rem 0;
    font-size: 0.87rem;
    line-height: 1.6;
}
.check-icon { flex-shrink: 0; font-size: 1rem; margin-top: 0.05rem; }

/* Aside / info box */
.aside-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    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: #555;
    margin-bottom: 0.4rem;
}

/* SPARK in-use callout (for SPARK analysis section) */
.spark-use-box {
    background: rgba(94, 179, 214, 0.08);
    border: 2px solid var(--dojo-dim);
    border-left: 5px solid var(--dojo);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}
.spark-use-label {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dojo-dark);
    margin-bottom: 0.4rem;
}

/* Dividers */
.log-divider {
    text-align: center;
    margin: 2rem 0 0.5rem;
    color: #aaa;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
