/*
 * loadedDiceAppChatlogStyles.css
 * TNT | Loaded Dice Analyzer — S.P.A.R.K. chatlog page styles
 * Created: 10/28/2026
 * Palette: ld-green / ld-gold (dice theme)
 */

/* ═══ CUSTOM PROPERTIES ═══ */
:root {
    --ld-green:      #1e7a3e;
    --ld-green-lt:   rgba(30,122,62,0.15);
    --ld-green-glow: rgba(30,122,62,0.28);
    --ld-gold:       #c4892b;
    --ld-gold-lt:    rgba(196,137,43,0.15);
    --ld-ice:        #d0f0d8;
    --ld-red:        #c03030;
    --ld-dark:       #060e08;
    --ld-card:       #0b1a0e;
    --ld-border:     rgba(30,122,62,0.22);
}

/* ═══ BODY ═══ */
body {
    background:
        linear-gradient(140deg, rgba(6,14,8,0.85) 0%, rgba(10,22,12,0.88) 100%),
        url('../images/Five_ivory_dice.jpg') center / cover fixed;
    color: #d5f0d8;
    font-family: 'Inter', sans-serif;
}

/* ═══ LOG CONTAINER ═══ */
.log-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* ═══ BACK BAR ═══ */
.back-bar {
    background: rgba(4,10,5,0.92);
    border-bottom: 1px solid rgba(30,122,62,0.22);
    padding: 0.58rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.back-bar a {
    color: #5cd483;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.18s;
}

.back-bar a:hover {
    color: var(--ld-ice);
    text-decoration: underline;
}

.back-bar span {
    color: rgba(100,180,120,0.40);
    font-size: 0.80rem;
}

/* ═══ HERO ═══ */
.ld-hero-log {
    background:
        linear-gradient(150deg, rgba(4,12,6,0.65), rgba(8,24,12,0.55)),
        url('images/Five_ivory_dice.jpg') center 40% / cover no-repeat;
    border-bottom: 1px solid rgba(30,122,62,0.18);
    padding: 3rem 1rem 2.5rem;
}

.hero-eyebrow-cl {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ld-ice);
    margin-bottom: 0.5rem;
}

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

/* S — Set Goal */
.spark-s {
    background: rgba(30,122,62,0.18);
    border-left: 5px solid #3db86a;
    color: #d8fce0;
}

/* P — Prompt */
.spark-p {
    background: rgba(39,174,96,0.15);
    border-left: 5px solid #41c77a;
    color: #ddffe8;
}

/* A — Analyze */
.spark-a {
    background: rgba(196,137,43,0.17);
    border-left: 5px solid #e0a840;
    color: #fff5d0;
}

/* R — Act / Result */
.spark-r {
    background: rgba(60,120,80,0.22);
    border-left: 5px solid #52c07a;
    color: #d5f0dd;
}

/* K — Knowledge */
.spark-k {
    background: rgba(180,120,40,0.20);
    border-left: 5px solid #d4a044;
    color: #fff2d5;
}

/* ═══ CHAT TURNS ═══ */
.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: #3da860; text-align: right; }
.chat-speaker.copilot { color: #2e8a50; }

.chat-bubble {
    display: inline-block;
    max-width: 88%;
    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(16,50,22,0.88);
    border: 1px solid rgba(30,122,62,0.38);
    color: #c8ecd0;
    border-bottom-right-radius: 3px;
    float: right;
    clear: both;
    text-align: left;
}

.bubble-copilot {
    background: rgba(10,30,14,0.92);
    border: 1px solid rgba(30,122,62,0.25);
    color: #b8e0c4;
    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; }

/* ═══ ANNOTATION BOXES ═══ */
.critique-box {
    background: #fffbf0;
    border: 2px solid #d4922e;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: #2a1f08;
}

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

.decision-box {
    background: rgba(12,30,16,0.90);
    border-left: 5px solid var(--ld-green);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(195,240,205,0.90);
}

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

.aside-box {
    background: rgba(5,14,7,0.90);
    border: 1px solid rgba(30,122,62,0.32);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: rgba(194,240,208,0.88);
}

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

/* ═══ LOG DIVIDER ═══ */
.log-divider {
    text-align: center;
    margin: 2rem 0 0.5rem;
    color: #5cd48a;
    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(30,122,62,0.30);
    vertical-align: middle;
    margin: 0 0.7rem;
}

/* ═══ CODE SNIPPETS ═══ */
pre.code-snap {
    background: rgba(4,12,6,0.72);
    color: #9fe8b2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.83em;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    overflow-x: auto;
    white-space: pre;
    border: 1px solid rgba(30,122,62,0.20);
}

/* In light critique boxes, use darker code */
.critique-box pre.code-snap {
    background: rgba(0,0,0,0.07);
    color: #1a3a22;
    border: 1px solid rgba(30,122,62,0.15);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 575px) {
    .log-container { padding: 0 0.6rem 3rem; }
    .chat-bubble   { max-width: 95%; }
}
