/*
 * soundOfThunderStyles.css
 * TNT | Chaos Game Saga — A Sound of Thunder (Ray Bradbury, 1952)
 * Created: 2026-10-21
 * Palette: same amber / teal / dark tokens as butterFlyEffect1Styles.css
 * Purpose: classroom reading display — optimized for projected screen + audio
 */

:root {
    --bf-amber:      #C4882A;
    --bf-amber-lt:   rgba(196,136,42,0.14);
    --bf-teal:       #2A7A96;
    --bf-dark:       #060C14;
    --bf-card:       #0B1824;
    --bf-border:     rgba(196,136,42,0.20);
    --story-cream:   rgba(240,222,178,0.92);
    --story-dim:     rgba(240,222,178,0.55);
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
    min-height: 34vh;
    background:
        linear-gradient(135deg, rgba(6,12,20,0.84) 0%, rgba(20,36,58,0.66) 100%),
        url('../../images/butterfly-effect.jpg') center 42% / cover no-repeat;
    background-color: var(--bf-dark);
    padding: 3.5rem 1rem 2.5rem;
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bf-amber);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    margin-bottom: 0.7rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.82);
    font-weight: 300;
    line-height: 1.6;
    font-size: clamp(0.95rem, 2.5vw, 1.12rem);
}


/* ══════════════════════════════════════════
   BODY / PAGE BACKGROUND
══════════════════════════════════════════ */
body {
    background: var(--bf-dark);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
}


/* ══════════════════════════════════════════
   SPARK BAR
══════════════════════════════════════════ */
.spark-bar {
    background: #040a10;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    border-bottom: 1px solid var(--bf-border);
}

.spark-bar a {
    color: var(--bf-amber);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

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

.spark-bar span {
    color: rgba(255,255,255,0.38);
    font-size: 0.80rem;
    margin-left: auto;
}


/* ══════════════════════════════════════════
   READING PROGRESS BAR  (fixed at top)
══════════════════════════════════════════ */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    z-index: 2000;
    pointer-events: none;
}

#readingBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bf-teal), var(--bf-amber));
    transition: width 0.1s linear;
}


/* ══════════════════════════════════════════
   STORY SECTION
══════════════════════════════════════════ */
#storySection {
    background: linear-gradient(180deg, var(--bf-dark) 0%, #020608 100%);
    padding: 2rem 1rem 5rem;
}


/* ══════════════════════════════════════════
   READING CONTROLS BAR
══════════════════════════════════════════ */
.reading-controls {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: var(--bf-card);
    border: 1px solid var(--bf-border);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
}

.ctrl-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ctrl-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.50);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ctrl-btn {
    background: rgba(196,136,42,0.14);
    border: 1px solid rgba(196,136,42,0.35);
    border-radius: 5px;
    color: var(--bf-amber);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.3;
}

.ctrl-btn:hover { background: rgba(196,136,42,0.30); }

.ctrl-btn.active {
    background: var(--bf-amber);
    color: #000;
    border-color: var(--bf-amber);
}

.ctrl-speed {
    accent-color: var(--bf-amber);
    cursor: pointer;
    width: 90px;
}

.reading-controls .ms-auto {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.30);
}


/* ══════════════════════════════════════════
   STORY TITLE CARD
══════════════════════════════════════════ */
.story-title-card {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--bf-border);
}

.story-main-title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    font-weight: 700;
    font-style: italic;
    color: var(--story-cream);
    text-shadow: 0 2px 16px rgba(196,136,42,0.25);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.story-byline {
    font-size: 0.9rem;
    color: var(--bf-amber);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.story-meta {
    font-size: 0.78rem;
    color: var(--story-dim);
    margin-top: 0.75rem;
    font-style: italic;
}


/* ══════════════════════════════════════════
   STORY BODY  (the actual text)
══════════════════════════════════════════ */
#storyBody {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 1.12rem;
    line-height: 2.0;
    color: var(--story-cream);
}

#storyBody p {
    margin-bottom: 1.4rem;
    text-indent: 2em;
}

#storyBody p.no-indent { text-indent: 0; }

#storyBody p.dialogue { text-indent: 2em; }


/* ══════════════════════════════════════════
   THE SIGNS
══════════════════════════════════════════ */

/* Original sign — the office in the proper future */
.story-sign {
    font-family: 'Courier New', 'Courier', monospace;
    background: #0a1a08;
    border: 2px solid rgba(100,220,80,0.55);
    border-radius: 4px;
    color: rgba(120,255,90,0.95);
    text-shadow: 0 0 10px rgba(100,255,80,0.7), 0 0 25px rgba(100,255,80,0.35);
    box-shadow: 0 0 18px rgba(80,200,60,0.18), inset 0 0 10px rgba(0,0,0,0.4);
    padding: 1.2rem 1.8rem;
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.5px;
    text-indent: 0 !important;
}

.story-sign p { text-indent: 0 !important; margin: 0; line-height: 2; }

/* Corrupted sign — the changed future */
.story-sign-corrupted {
    font-family: 'Courier New', 'Courier', monospace;
    background: #1a0808;
    border: 2px solid rgba(220,60,60,0.55);
    border-radius: 4px;
    color: rgba(255,90,90,0.92);
    text-shadow: 0 0 10px rgba(255,60,60,0.7), 0 0 25px rgba(255,60,60,0.35);
    box-shadow: 0 0 18px rgba(200,50,50,0.20), inset 0 0 10px rgba(0,0,0,0.4);
    padding: 1.2rem 1.8rem;
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.5px;
    text-indent: 0 !important;
}

.story-sign-corrupted p { text-indent: 0 !important; margin: 0; line-height: 2; }


/* ══════════════════════════════════════════
   DATE SEQUENCES  (time travel markers)
══════════════════════════════════════════ */
.date-sequence {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 4px;
    color: var(--bf-teal);
    opacity: 0.80;
    margin: 2.2rem 0;
    text-indent: 0 !important;
}


/* ══════════════════════════════════════════
   KEY PASSAGES  (highlighted moments)
══════════════════════════════════════════ */
.key-passage {
    border-left: 3px solid var(--bf-amber);
    padding: 0.4rem 0 0.4rem 1.2rem;
    color: var(--story-cream);
    opacity: 0.95;
    text-indent: 0 !important;
    margin-left: 0;
    margin-bottom: 1.4rem;
}

.thunder-line {
    text-align: center;
    font-style: italic;
    font-weight: 700;
    color: var(--bf-amber);
    font-size: 1.15em;
    letter-spacing: 1px;
    text-indent: 0 !important;
    margin: 2rem 0;
}

.story-end {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bf-border);
}

.story-end .year-stamp {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 4px;
    color: var(--bf-teal);
    margin-bottom: 0.5rem;
}

.story-end .the-end {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    color: var(--story-dim);
    font-size: 0.95rem;
}

.story-section-break {
    text-align: center;
    color: var(--bf-amber);
    opacity: 0.35;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin: 2.5rem 0 1.5rem;
    text-indent: 0 !important;
}

.story-section-break::before,
.story-section-break::after {
    content: ' ✦ ';
}
