/* ─────────────────────────────────────────────────────────────────────────
   henryGhostDevmt1ChatlogStyles.css
   TNT | Henry's Ghost Saga — Stage 3 Single Ghost Development Chat Log
   Deep-blue chatlog theme adapted from the Henry's Ghost / Twinkling Stars log pattern.
──────────────────────────────────────────────────────────────────────────── */

:root {
    --hg-dark:   #05081a;
    --hg-navy:   #070d25;
    --hg-blue:   #1d4ed8;
    --hg-teal:   #3a9e8a;
    --hg-ghost:  #c8d8ff;
    --hg-panel:  #eff6ff;
    --hg-ink:    #0e1a33;
}

body {
    background: #eef2ff;
    color: var(--hg-ink);
    font-family: 'Inter', sans-serif;
}

.log-container {
    margin: 0 auto;
    max-width: 900px;
    padding: 0 1rem 4rem;
}

#hero {
    background:
        linear-gradient(135deg, rgba(5,14,37,0.90) 0%, rgba(10,25,70,0.76) 100%),
        url('../images/henryGhost2.png') center / cover no-repeat;
    background-color: var(--hg-dark);
    color: #fff;
    min-height: 230px;
    padding: 3.4rem 1rem;
}

.back-bar {
    align-items: center;
    background: var(--hg-navy);
    border-bottom: 2px solid var(--hg-blue);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
}

.back-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-bar a {
    color: var(--hg-ghost);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

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

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

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

.hero-title {
    color: var(--hg-ghost);
    font-family: 'Boogaloo', cursive;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    line-height: 1.65;
    margin: 0;
}

.chat-turn {
    margin: 0.5rem 0 1.2rem;
}

.chat-speaker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.chat-speaker.user {
    color: #1d4ed8;
    text-align: right;
}

.chat-speaker.copilot {
    color: #166534;
}

.bubble-user-wrap {
    text-align: right;
}

.chat-bubble {
    border-radius: 12px;
    display: inline-block;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 92%;
    padding: 0.75rem 1rem;
}

.bubble-user-wrap .chat-bubble {
    text-align: left;
}

.bubble-user {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-bottom-right-radius: 3px;
    color: #1e3a5f;
}

.bubble-copilot {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-bottom-left-radius: 3px;
    color: #14532d;
}

.log-divider {
    color: #1d4ed8;
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin: 2.2rem 0 0.7rem;
    text-align: center;
    text-transform: uppercase;
}

.log-divider::before,
.log-divider::after {
    background: rgba(29,78,216,0.35);
    content: '';
    display: inline-block;
    height: 1px;
    margin: 0 0.7rem;
    vertical-align: middle;
    width: 52px;
}

.decision-box,
.aside-box,
.critique-box {
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 1rem 0;
    padding: 0.95rem 1.15rem;
}

.decision-box {
    background: #ffffff;
    border: 1px solid rgba(29,78,216,0.12);
    border-left: 5px solid var(--hg-blue);
}

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

.aside-box {
    background: #ffffff;
    border: 1px solid rgba(12,74,110,0.12);
    border-left: 5px solid #4dd9e8;
}

.box-label {
    color: #0c4a6e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.spark-banner {
    align-items: flex-start;
    border-radius: 10px;
    display: flex;
    font-size: 0.9rem;
    gap: 0.9rem;
    margin: 1.6rem 0 0.7rem;
    padding: 0.9rem 1.1rem;
}

.spark-banner.spark-s { border-left-color: #3b82f6; background: rgba(59,130,246,0.06); border-left-width: 5px; border-left-style: solid; }
.spark-banner.spark-a { border-left-color: #f59e0b; background: rgba(245,158,11,0.06); border-left-width: 5px; border-left-style: solid; }
.spark-banner.spark-p { border-left-color: #8b5cf6; background: rgba(139,92,246,0.06); border-left-width: 5px; border-left-style: solid; }

.spark-icon {
    flex-shrink: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.critique-box {
    background: rgba(29,78,216,0.06);
    border: 1px solid rgba(29,78,216,0.18);
    border-left: 5px solid #60a5fa;
}

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

code {
    background: rgba(37,99,235,0.10);
    border-radius: 3px;
    color: #2563eb;
    font-size: 0.88em;
    padding: 1px 5px;
}

pre {
    background: #0f172a;
    border-radius: 8px;
    color: #dbeafe;
    font-family: 'Source Code Pro', 'Noto Sans Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem;
    overflow-x: auto;
    padding: 0.8rem 1rem;
}

footer {
    background: var(--hg-dark);
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    padding: 2rem 1rem;
    text-align: center;
}

footer .footer-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1rem;
}

footer .footer-icons img { height: 28px; opacity: 0.55; }
footer .footer-icons img:hover { opacity: 0.9; }
footer .footer-text { margin-bottom: 0.25rem; }

@media (max-width: 575px) {
    .back-bar,
    .back-bar-links {
        justify-content: center;
        text-align: center;
    }

    .log-divider::before,
    .log-divider::after {
        width: 26px;
    }
}
