/* VESUVIUS SYMBOLIC RESURRECTION DASHBOARD
   Ancient aesthetic with modern interaction
   Phoenix Uprising LLC - November 2025
*/

:root {
  --papyrus-bg: #f4e4bc;
  --ink-dark: #2c1810;
  --ink-faded: #5a4a3a;
  --ash-gray: #6b6b6b;
  --volcanic-red: #8b2500;
  --gold-accent: #c4a35a;
  --scroll-border: #8b7355;
  --confidence-high: #2e7d32;
  --confidence-med: #f57c00;
  --confidence-low: #c62828;
  --stoic-blue: #37474f;
  --epicurean-green: #4a6741;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  background: linear-gradient(135deg, #1a1510 0%, #2c2318 100%);
  color: var(--papyrus-bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* HEADER */
.header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(139,35,0,0.3) 0%, transparent 100%);
  border-bottom: 2px solid var(--gold-accent);
}

.header h1 {
  font-size: 2.5em;
  color: var(--gold-accent);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.header .epigraph {
  font-style: italic;
  font-size: 1.4em;
  color: var(--papyrus-bg);
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--gold-accent);
  border-bottom: 1px solid var(--gold-accent);
}

/* MAIN CONTAINER */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* SCROLL OVERVIEW MAP */
.scroll-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  padding: 20px;
  background: rgba(244,228,188,0.1);
  border-radius: 10px;
  margin-bottom: 30px;
}

.scroll-tile {
  background: var(--papyrus-bg);
  color: var(--ink-dark);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--scroll-border);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.scroll-tile:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
  border-color: var(--gold-accent);
}

.scroll-tile .glyph-char {
  font-size: 2em;
  display: block;
  margin-bottom: 5px;
}

.scroll-tile .glyph-name {
  font-size: 0.9em;
  color: var(--ink-faded);
}

.scroll-tile .confidence-bar {
  height: 4px;
  background: var(--ash-gray);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.scroll-tile .confidence-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.confidence-high { background: var(--confidence-high); }
.confidence-med { background: var(--confidence-med); }
.confidence-low { background: var(--confidence-low); }

/* COMPARISON PANEL */
.comparison-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.panel {
  background: rgba(244,228,188,0.05);
  border: 2px solid var(--scroll-border);
  border-radius: 10px;
  padding: 20px;
}

.panel h3 {
  color: var(--gold-accent);
  border-bottom: 1px solid var(--gold-accent);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.raw-panel {
  background: rgba(0,0,0,0.3);
}

.inferred-panel {
  background: rgba(139,35,0,0.1);
}

/* GLYPH DISPLAY */
.glyph-display {
  text-align: center;
  padding: 30px;
  background: var(--papyrus-bg);
  color: var(--ink-dark);
  border-radius: 8px;
  margin-bottom: 15px;
}

.glyph-display .large-glyph {
  font-size: 5em;
  display: block;
  margin-bottom: 10px;
}

/* SEMANTIC ARC TIMELINE */
.arc-timeline {
  background: rgba(244,228,188,0.05);
  border: 2px solid var(--scroll-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.arc-timeline h3 {
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.timeline-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}

.timeline-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-accent);
  z-index: 0;
}

.timeline-node {
  background: var(--papyrus-bg);
  color: var(--ink-dark);
  padding: 10px 20px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--gold-accent);
  font-weight: bold;
}

.timeline-node.active {
  background: var(--volcanic-red);
  color: var(--papyrus-bg);
}

/* EMOTION DRIFT CHART */
.emotion-chart {
  background: rgba(244,228,188,0.05);
  border: 2px solid var(--scroll-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.emotion-chart h3 {
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.emotion-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emotion-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.emotion-label {
  width: 120px;
  text-align: right;
}

.emotion-fill-container {
  flex: 1;
  height: 25px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.emotion-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.8em;
  color: white;
}

.emotion-calm { background: linear-gradient(90deg, #4a6741, #6b8e23); }
.emotion-urgent { background: linear-gradient(90deg, #c62828, #ff5722); }
.emotion-reflective { background: linear-gradient(90deg, #37474f, #607d8b); }
.emotion-defensive { background: linear-gradient(90deg, #5d4037, #8d6e63); }
.emotion-joyful { background: linear-gradient(90deg, #c4a35a, #ffd700); }

/* PROVENANCE CARD */
.provenance-card {
  background: linear-gradient(135deg, rgba(196,163,90,0.1) 0%, rgba(139,35,0,0.1) 100%);
  border: 1px solid var(--gold-accent);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.provenance-card h3 {
  color: var(--gold-accent);
  margin-bottom: 15px;
}

.provenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.provenance-item {
  background: rgba(0,0,0,0.2);
  padding: 15px;
  border-radius: 8px;
}

.provenance-item label {
  display: block;
  font-size: 0.8em;
  color: var(--ash-gray);
  margin-bottom: 5px;
}

.provenance-item value {
  display: block;
  font-size: 1.1em;
  color: var(--papyrus-bg);
}

/* STORYLINE CARD */
.storyline-card {
  background: var(--papyrus-bg);
  color: var(--ink-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 5px solid var(--volcanic-red);
  font-size: 1.1em;
  line-height: 1.8;
}

.storyline-card .quote {
  font-style: italic;
  position: relative;
  padding-left: 30px;
}

.storyline-card .quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3em;
  color: var(--volcanic-red);
  opacity: 0.5;
}

/* RESONANCE CLUSTER */
.resonance-cluster {
  background: rgba(55,71,79,0.3);
  border: 2px solid var(--stoic-blue);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.resonance-cluster h3 {
  color: var(--gold-accent);
  margin-bottom: 15px;
}

.cluster-badge {
  display: inline-block;
  background: var(--stoic-blue);
  color: var(--papyrus-bg);
  padding: 5px 15px;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* SYNTHETIC TOGGLE */
.synthetic-toggle {
  background: rgba(139,35,0,0.2);
  border: 2px dashed var(--volcanic-red);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.synthetic-toggle h4 {
  color: var(--volcanic-red);
  margin-bottom: 15px;
}

.toggle-btn {
  background: var(--volcanic-red);
  color: var(--papyrus-bg);
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: var(--gold-accent);
  color: var(--ink-dark);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--gold-accent);
  margin-top: 50px;
  color: var(--ash-gray);
}

.footer .phoenix {
  color: var(--volcanic-red);
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .comparison-panel {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .header .epigraph {
    font-size: 1.1em;
  }
}
