/* Dragon Codex Story - Narrative Article Styles
   Extends quantum-theme.css
   Copyright (c) 2026 Tammy L Casey. All rights reserved. */

/* Story Header */
.story-header { text-align: center; padding: 2rem 0 1rem; border-bottom: 1px solid rgba(192,168,0,0.3); margin-bottom: 2rem; }
.story-title { font-size: 1.8rem; color: #c0a040; margin-bottom: 0.3rem; letter-spacing: 2px; }
.story-subtitle { font-size: 1rem; color: #999; margin-bottom: 0.5rem; }
.story-byline { font-size: 0.85rem; color: #777; }
.story-intro { color: #b0b0b0; font-size: 0.95rem; font-style: italic; max-width: 700px; margin: 1rem auto 0; line-height: 1.6; }

/* Chapter Navigation */
.chapter-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; padding: 1rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(192,192,192,0.15); }
.chapter-link { background: rgba(0,0,0,0.5); border: 1px solid rgba(192,168,0,0.25); border-radius: 4px; padding: 0.3rem 0.7rem; color: #999; text-decoration: none; font-size: 0.8rem; transition: all 0.2s; }
.chapter-link:hover { background: rgba(192,168,0,0.15); border-color: rgba(192,168,0,0.5); color: #c0a040; }

/* Chapter Container */
.chapter { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(192,168,0,0.15); }
.chapter:last-child { border-bottom: none; }
.chapter-number { font-size: 0.75rem; color: #666; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 0.3rem; }
.chapter-title { font-size: 1.5rem; color: #c0a040; margin-bottom: 0.2rem; }
.chapter-subtitle { font-size: 0.9rem; color: #888; margin-bottom: 1rem; font-style: italic; }

/* Captain's Quote */
.captain-quote { background: rgba(192,168,0,0.08); border-left: 3px solid #c0a040; padding: 0.8rem 1rem; margin-bottom: 1.5rem; border-radius: 0 6px 6px 0; }
.captain-label { font-size: 0.7rem; color: #c0a040; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.3rem; }
.captain-text { color: #d0c080; font-style: italic; font-size: 0.95rem; line-height: 1.6; }

/* Narrative Text */
.narrative { margin-bottom: 1.5rem; }
.narrative p { color: #d0d0d0; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.narrative p:last-child { margin-bottom: 0; }

/* Evidence Section */
.evidence-section { background: rgba(0,0,0,0.4); border: 1px solid rgba(192,192,192,0.15); border-radius: 6px; overflow: hidden; }
.evidence-toggle { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; cursor: pointer; transition: background 0.2s; }
.evidence-toggle:hover { background: rgba(192,168,0,0.08); }
.evidence-label { font-size: 0.8rem; color: #c0a040; letter-spacing: 1px; }
.evidence-arrow { color: #666; font-size: 0.8rem; transition: transform 0.2s; }
.evidence-arrow.open { transform: rotate(90deg); }
.evidence-body { display: none; padding: 0 1rem 0.8rem; }
.evidence-body.open { display: block; }

/* Evidence Tables */
.ev-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ev-table th { text-align: left; color: #c0a040; padding: 0.4rem 0.6rem; border-bottom: 1px solid rgba(192,168,0,0.3); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.ev-table td { padding: 0.4rem 0.6rem; color: #b0b0b0; border-bottom: 1px solid rgba(192,192,192,0.08); vertical-align: top; }
.ev-table tr:last-child td { border-bottom: none; }
.ev-table .ev-highlight { color: #c0a040; font-weight: bold; }

/* Evidence Cards (for non-table evidence) */
.ev-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(192,192,192,0.1); border-radius: 4px; padding: 0.6rem 0.8rem; margin-bottom: 0.5rem; }
.ev-card-title { color: #c0a040; font-weight: bold; font-size: 0.9rem; margin-bottom: 0.2rem; }
.ev-card-body { color: #b0b0b0; font-size: 0.85rem; line-height: 1.5; }
.ev-card-source { color: #666; font-size: 0.75rem; margin-top: 0.3rem; }

/* Synthesis List */
.synthesis-list { list-style: none; padding: 0; margin: 0; }
.synthesis-item { display: flex; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(192,192,192,0.08); align-items: flex-start; }
.synthesis-num { color: #c0a040; font-weight: bold; font-size: 1.1rem; min-width: 30px; text-align: center; flex-shrink: 0; }
.synthesis-content { flex: 1; }
.synthesis-thesis { color: #e0e0e0; font-weight: bold; font-size: 0.9rem; }
.synthesis-proof { color: #999; font-size: 0.85rem; }

/* Data Sources Footer */
.data-sources { font-size: 0.75rem; color: #555; margin-top: 0.8rem; padding-top: 0.5rem; border-top: 1px solid rgba(192,192,192,0.08); }

/* Stats Bar */
.story-stats { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 0.8rem 0; margin-bottom: 1rem; }
.story-stat { text-align: center; }
.story-stat-num { font-size: 1.5rem; color: #c0a040; font-weight: bold; display: block; }
.story-stat-label { font-size: 0.7rem; color: #777; letter-spacing: 1px; text-transform: uppercase; }

/* Page Container Override */
.story-page-container { max-width: 800px; margin: 0 auto; padding: 1rem; }

/* Story Footer */
.story-footer { text-align: center; padding: 2rem 0; border-top: 1px solid rgba(192,168,0,0.2); margin-top: 2rem; }
.story-footer-quote { color: #c0a040; font-size: 0.9rem; font-style: italic; }
.story-footer-copy { color: #666; font-size: 0.8rem; margin-top: 0.5rem; }

/* Back to Codex link */
.back-link { display: inline-block; color: #c0a040; text-decoration: none; font-size: 0.85rem; margin-bottom: 1rem; }
.back-link:hover { color: #e0c060; }
.back-link--footer { margin-top: 1rem; }

/* Read the Story button (on dragon_codex.html) */
.read-story-btn { display: inline-block; margin-top: 0.8rem; padding: 0.5rem 1.5rem; background: rgba(192,168,0,0.15); border: 1px solid rgba(192,168,0,0.4); border-radius: 6px; color: #c0a040; text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; transition: all 0.2s; }
.read-story-btn:hover { background: rgba(192,168,0,0.25); border-color: rgba(192,168,0,0.6); color: #e0c060; }

/* Mobile */
@media (max-width: 768px) {
    .story-title { font-size: 1.3rem; }
    .chapter-title { font-size: 1.2rem; }
    .chapter-nav { gap: 0.3rem; }
    .chapter-link { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
    .captain-text { font-size: 0.9rem; }
    .narrative p { font-size: 0.9rem; }
    .ev-table { font-size: 0.8rem; }
    .ev-table th, .ev-table td { padding: 0.3rem 0.4rem; }
    .story-stats { gap: 0.6rem; }
    .story-stat-num { font-size: 1.2rem; }
    .synthesis-item { flex-direction: column; gap: 0.2rem; }
}
