/* ==========================
   WEIMAR SIMULATION THEME
   Colors inspired by Weimar-era design and political symbolism
   ========================== */

:root {
  /* Primary Colors - Based on German flag and period design */
  --weimar-black: #1a1a1a;
  --weimar-red: #c8102e;
  --weimar-gold: #d4af37;
  --weimar-cream: #f5f1e8;
  
  /* Political Party Colors */
  --spd-red: #e3000f;
  --kpd-red: #8b0000;
  --centre-black: #2c2c2c;
  --nazi-brown: #5c3317;
  --dnvp-blue: #003366;
  --liberal-yellow: #ffcc00;
  
  /* Semantic Colors */
  --crisis-red: #b22222;
  --stability-green: #2d5016;
  --warning-amber: #ff8c00;
  --neutral-gray: #6b6b6b;
  
  /* Typography */
  --font-heading: 'Crimson Text', Georgia, serif;
  --font-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
}

/* ==========================
   BASE STYLES
   ========================== */

body {
  font-family: var(--font-body);
  color: var(--weimar-black);
  background-color: var(--weimar-cream);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* Container for consistent width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   TYPOGRAPHY
   ========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5em;
  color: var(--weimar-black);
  border-bottom: 3px solid var(--weimar-red);
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

h2 {
  font-size: 2em;
  color: var(--weimar-black);
  border-left: 5px solid var(--weimar-gold);
  padding-left: 15px;
}

h3 {
  font-size: 1.5em;
  color: var(--weimar-black);
}

.subtitle {
  font-size: 1.3em;
  font-style: italic;
  color: var(--neutral-gray);
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */

.site-header {
  background: linear-gradient(135deg, var(--weimar-black) 0%, #2c2c2c 100%);
  color: var(--weimar-cream);
  padding: 2em 0;
  border-bottom: 4px solid var(--weimar-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header h1 {
  color: var(--weimar-gold);
  border: none;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.site-header .subtitle {
  color: var(--weimar-cream);
  text-align: center;
  opacity: 0.9;
}

/* Main Navigation */
.main-nav {
  background-color: #2c2c2c;
  border-bottom: 2px solid var(--weimar-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hamburger Menu Button (hidden by default on desktop) */
.nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  color: var(--weimar-cream);
  font-size: 1.5em;
  padding: 0.5em 1em;
  cursor: pointer;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.nav-toggle:hover {
  color: var(--weimar-gold);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 1em 1.5em;
  color: var(--weimar-cream);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--weimar-red);
  border-bottom-color: var(--weimar-gold);
}

/* Sub-navigation (for sections within pages) */
.narrative-nav {
  background-color: #f0ebe0;
  padding: 1.5em;
  margin: 2em 0;
  border-left: 5px solid var(--weimar-gold);
  border-radius: 4px;
}

.narrative-nav h3 {
  margin-top: 0;
  font-size: 1.2em;
}

.narrative-nav ul {
  list-style: none;
  padding: 0;
  column-count: 2;
  column-gap: 2em;
}

.narrative-nav li {
  margin-bottom: 0.5em;
  break-inside: avoid;
}

.narrative-nav a {
  color: var(--weimar-black);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.narrative-nav a:hover {
  color: var(--weimar-red);
  padding-left: 5px;
}

.narrative-nav a::before {
  content: "▸ ";
  color: var(--weimar-gold);
  font-weight: bold;
}

/* ==========================
   CONTENT BOXES & CARDS
   ========================== */

/* Key Facts Box */
.key-facts {
  background-color: #fff;
  border: 2px solid var(--weimar-gold);
  border-radius: 8px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.key-facts h3 {
  color: var(--weimar-red);
  margin-top: 0;
  font-size: 1.3em;
}

/* Challenge Grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin: 2em 0;
}

.challenge {
  background-color: #fff;
  border-top: 4px solid var(--weimar-red);
  padding: 1.5em;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.challenge h3 {
  color: var(--weimar-red);
  margin-top: 0;
  font-size: 1.3em;
}

/* Historical Context Box */
.historical-context {
  background: linear-gradient(to right, #f5f1e8 0%, #e8e0d0 100%);
  border-left: 8px solid var(--weimar-black);
  padding: 2em;
  margin: 2em 0;
  font-size: 1.05em;
  line-height: 1.8;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.historical-context p.emphasis {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--weimar-red);
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 2px solid var(--weimar-gold);
}

/* Key Concept Boxes */
.key-concept {
  background-color: #fff8dc;
  border: 2px dashed var(--weimar-gold);
  padding: 1.5em;
  margin: 1.5em 0;
  border-radius: 4px;
}

.key-concept h4 {
  color: var(--weimar-black);
  margin-top: 0;
  font-size: 1.2em;
}

/* Warning/Crisis Boxes */
.warning-sign,
.consequence,
.what-if {
  background-color: #fff5f5;
  border-left: 5px solid var(--crisis-red);
  padding: 1.5em;
  margin: 1.5em 0;
}

.warning-sign h4,
.consequence h4,
.what-if h2 {
  color: var(--crisis-red);
  margin-top: 0;
}

/* Dilemma Box (for presenting options) */
.dilemma-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin: 2em 0;
  padding: 1.5em;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.dilemma-box .option {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 4px;
  border-top: 3px solid var(--weimar-black);
}

.dilemma-box .option h4 {
  margin-top: 0;
  color: var(--weimar-black);
}

/* ==========================
   TIMELINE STYLES
   ========================== */

.timeline {
  position: relative;
  padding-left: 50px;
  margin: 2em 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    var(--weimar-black) 0%, 
    var(--weimar-red) 50%, 
    var(--crisis-red) 100%);
}

.timeline-section {
  margin-bottom: 3em;
}

.timeline-section h2 {
  background-color: var(--weimar-black);
  color: var(--weimar-gold);
  padding: 0.5em 1em;
  border-radius: 4px;
  display: inline-block;
  margin-left: -50px;
  position: relative;
  z-index: 10;
}

.timeline-event {
  position: relative;
  margin-bottom: 2em;
  padding-left: 2em;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--weimar-gold);
  border: 3px solid var(--weimar-black);
  z-index: 10;
}

.timeline-event .year {
  display: inline-block;
  background-color: var(--weimar-red);
  color: #fff;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 0.5em;
}

.timeline-event .event-content {
  background-color: #fff;
  padding: 1.5em;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-event .event-content h3 {
  margin-top: 0;
  color: var(--weimar-black);
  font-size: 1.2em;
}

/* Crisis period styling */
.timeline-section.crisis-period h2 {
  background-color: var(--crisis-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timeline-event.emphasis {
  background-color: #fff9e6;
  padding: 1em;
  border-radius: 8px;
  border: 3px solid var(--weimar-gold);
}

.timeline-event.emphasis::before {
  background-color: var(--crisis-red);
  width: 20px;
  height: 20px;
  left: -36px;
  animation: pulse 2s infinite;
}

/* Mini timeline (for narrative flow within sections) */
.timeline-mini {
  background-color: #f8f8f8;
  border-left: 4px solid var(--weimar-gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
}

.timeline-mini .event {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px dashed #ccc;
}

.timeline-mini .event:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-mini .event strong {
  color: var(--weimar-red);
  font-weight: 700;
}

/* Violence timeline (for showing political events) */
.violence-timeline .event {
  margin-bottom: 1.5em;
  padding: 1em;
  border-radius: 4px;
}

.violence-timeline .event.right-wing {
  background-color: #e8f4f8;
  border-left: 5px solid var(--dnvp-blue);
}

.violence-timeline .event.left-wing {
  background-color: #ffe8e8;
  border-left: 5px solid var(--kpd-red);
}

/* ==========================
   PARTY/FACTION CARDS
   ========================== */

.faction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
  margin: 2em 0;
}

.faction-card {
  background: white;
  border: 2px solid #2c3e50;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.faction-card h3 {
  margin-top: 0;
  font-size: 1.4em;
}

.faction-card .party-name {
  font-size: 0.9em;
  color: var(--neutral-gray);
  margin-bottom: 0.5em;
}

.faction-card .ideology {
  font-style: italic;
  color: var(--neutral-gray);
  font-size: 0.95em;
  margin-bottom: 1em;
}

.faction-card .description {
  line-height: 1.6;
  margin-bottom: 1em;
}

.faction-card .mandates {
  font-weight: 600;
  margin-bottom: 0.5em;
}

.faction-card .leaders {
  font-size: 0.9em;
  margin-bottom: 1em;
  padding-top: 0.5em;
  border-top: 1px solid #e0e0e0;
}

/* Party-specific card colors */
.faction-card.spd {
  border-top: 4px solid var(--spd-red);
}

.faction-card.kpd {
  border-top: 4px solid var(--kpd-red);
}

.faction-card.centre {
  border-top: 4px solid var(--centre-black);
}

.faction-card.nsdap {
  border-top: 4px solid var(--nazi-brown);
}

.faction-card.dnvp {
  border-top: 4px solid var(--dnvp-blue);
}

.faction-card.liberal {
  border-top: 4px solid var(--liberal-yellow);
}

.faction-card.agrarian {
  border-top: 4px solid #2d5016;
}

.faction-card.protestant {
  border-top: 4px solid #4a4a4a;
}

.faction-card.particularist {
  border-top: 4px solid #8b4513;
}

.faction-card.camarilla {
  border-top: 4px solid #2c2c2c;
}

/* Faction header styles (for individual faction pages) */
.faction-header {
  padding: 1.5em;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.faction-header h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 0.3em 0;
}

.faction-header .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1em;
  margin: 0;
}

.faction-header .ideology {
  color: rgba(255,255,255,0.85);
  font-size: 1em;
  font-style: italic;
  margin: 0;
}

/* Party-specific header colors */
.faction-header.spd { background-color: var(--spd-red); }
.faction-header.kpd { background-color: var(--kpd-red); }
.faction-header.centre { background-color: var(--centre-black); }
.faction-header.nsdap { background-color: var(--nazi-brown); }
.faction-header.dnvp { background-color: var(--dnvp-blue); }
.faction-header.liberal { background-color: var(--liberal-yellow); color: var(--weimar-black); }
.faction-header.liberal h2,
.faction-header.liberal .subtitle,
.faction-header.liberal .ideology { color: var(--weimar-black); }
.faction-header.agrarian { background-color: #2d5016; }
.faction-header.protestant { background-color: #4a4a4a; }
.faction-header.particularist { background-color: #8b4513; }
.faction-header.camarilla { background: linear-gradient(135deg, #2c2c2c 0%, #5c5c5c 100%); }

/* Character profile boxes */
.character-profile {
  background-color: #f8f8f8;
  border-left: 4px solid var(--weimar-gold);
  padding: 1.5em;
  margin: 1.5em 0;
  border-radius: 4px;
}

.character-profile h3 {
  margin-top: 0;
  color: var(--weimar-black);
}

.character-profile .role {
  font-style: italic;
  color: var(--neutral-gray);
  margin-bottom: 1em;
}

/* ==========================
   TABLES (for election results, etc.)
   ========================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

thead {
  background-color: var(--weimar-black);
  color: var(--weimar-cream);
}

th {
  padding: 1em;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--weimar-gold);
}

td {
  padding: 0.8em 1em;
  border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
  background-color: #f5f5f5;
}

/* Party-specific row styling */
tr.spd { border-left: 4px solid var(--spd-red); }
tr.kpd { border-left: 4px solid var(--kpd-red); }
tr.centre { border-left: 4px solid var(--centre-black); }
tr.nsdap { border-left: 4px solid var(--nazi-brown); }
tr.dnvp { border-left: 4px solid var(--dnvp-blue); }
tr.liberal { border-left: 4px solid var(--liberal-yellow); }
tr.agrarian { border-left: 4px solid #2d5016; }
tr.protestant { border-left: 4px solid #4a4a4a; }
tr.particularist { border-left: 4px solid #8b4513; }

.election-results {
  margin: 2em 0;
}

.election-results .analysis {
  background-color: #f8f8f8;
  padding: 1em;
  margin-top: 1em;
  border-left: 4px solid var(--weimar-gold);
  font-style: italic;
}

/* ==========================
   INTERACTIVE ELEMENTS
   ========================== */

/* Collapsible Sections */
.collapsible {
  background-color: var(--weimar-black);
  color: var(--weimar-cream);
  cursor: pointer;
  padding: 1em 1.5em;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1em;
  font-weight: 700;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible:hover {
  background-color: #2c2c2c;
}

.collapsible.active {
  background-color: var(--weimar-red);
}

.collapsible::after {
  content: '\002B'; /* Plus sign */
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.collapsible.active::after {
  content: '\2212'; /* Minus sign */
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #f8f8f8;
  border-left: 4px solid var(--weimar-gold);
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.collapsible-content.active {
  padding: 1.5em;
  margin-bottom: 1em;
}

/* Tabs */
.tab-container {
  margin: 2em 0;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--weimar-gold);
  background-color: #f0f0f0;
}

.tab-button {
  background-color: transparent;
  border: none;
  padding: 1em 2em;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: var(--weimar-black);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  background-color: #e0e0e0;
}

.tab-button.active {
  background-color: var(--weimar-black);
  color: var(--weimar-gold);
  border-bottom-color: var(--weimar-red);
}

.tab-content {
  display: none;
  padding: 2em;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--weimar-black);
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 300px;
  background-color: var(--weimar-black);
  color: var(--weimar-cream);
  text-align: center;
  padding: 0.8em;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -150px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--weimar-black) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: var(--weimar-cream);
  margin: 5% auto;
  padding: 2em;
  border: 3px solid var(--weimar-black);
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
  animation: slideDown 0.4s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  color: var(--neutral-gray);
  float: right;
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--crisis-red);
}

/* ==========================
   LIVE GAME TRACKER
   ========================== */

.game-status-board {
  background: linear-gradient(135deg, #2c2c2c 0%, var(--weimar-black) 100%);
  color: var(--weimar-cream);
  padding: 2em;
  border-radius: 8px;
  margin: 2em 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.game-status-board h2 {
  color: var(--weimar-gold);
  border-left-color: var(--weimar-red);
  margin-top: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}

.status-item {
  background-color: rgba(255,255,255,0.1);
  padding: 1.5em;
  border-radius: 4px;
  border-top: 3px solid var(--weimar-gold);
}

.status-item h3 {
  color: var(--weimar-gold);
  margin-top: 0;
  font-size: 1.1em;
}

.status-item .value {
  font-size: 2em;
  font-weight: 700;
  color: var(--weimar-cream);
  display: block;
  margin-top: 0.5em;
}

/* Stability Index Meter */
.stability-meter {
  background-color: #fff;
  border-radius: 8px;
  padding: 2em;
  margin: 2em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stability-meter h3 {
  text-align: center;
  margin-top: 0;
}

.meter-bar {
  position: relative;
  height: 40px;
  background: linear-gradient(to right, 
    var(--crisis-red) 0%, 
    var(--warning-amber) 33%,
    var(--liberal-yellow) 50%, 
    #90EE90 67%,
    var(--stability-green) 100%);
  border-radius: 20px;
  margin: 1em 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.meter-indicator {
  position: absolute;
  width: 4px;
  height: 50px;
  background-color: var(--weimar-black);
  top: -5px;
  transition: left 0.5s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.meter-indicator::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid var(--weimar-black);
}

.meter-value {
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 0.5em;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--neutral-gray);
}

/* ==========================
   MAPS & IMAGES
   ========================== */

.map-container {
  margin: 2em 0;
  text-align: center;
}

.map-container img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--weimar-black);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border-radius: 4px;
}

.map-container .caption {
  font-style: italic;
  color: var(--neutral-gray);
  margin-top: 0.5em;
  font-size: 0.95em;
}

/* ==========================
   BUTTONS & LINKS
   ========================== */

.btn {
  display: inline-block;
  padding: 0.8em 2em;
  background-color: var(--weimar-red);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.btn:hover {
  background-color: var(--crisis-red);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--weimar-black);
}

.btn-secondary:hover {
  background-color: #2c2c2c;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--weimar-red);
  color: var(--weimar-red);
}

.btn-outline:hover {
  background-color: var(--weimar-red);
  color: #fff;
}

/* Next Steps / Call to Action */
.next-steps {
  background: linear-gradient(135deg, var(--weimar-gold) 0%, #c9a961 100%);
  padding: 2em;
  border-radius: 8px;
  margin: 2em 0;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.next-steps h3 {
  color: var(--weimar-black);
  margin-top: 0;
}

.next-steps ol {
  font-size: 1.1em;
  line-height: 2;
}

.next-steps a {
  color: var(--weimar-black);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.next-steps a:hover {
  color: var(--weimar-red);
}

/* ==========================
   FOOTER
   ========================== */

.site-footer {
  background-color: var(--weimar-black);
  color: var(--weimar-cream);
  padding: 2em 0;
  margin-top: 4em;
  border-top: 4px solid var(--weimar-gold);
}

.site-footer p {
  text-align: center;
  margin: 0.5em 0;
}

.site-footer a {
  color: var(--weimar-gold);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

@media (max-width: 768px) {
  
  body {
    line-height: 1.55;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  h3 {
    font-size: 1.3em;
  }

  h1, h2, h3 {
    margin-top: 1.1em;
  }

  .historical-context {
    padding: 1.25em;
    line-height: 1.65;
  }
    
  .narrative-nav ul {
    column-count: 1;
  }
  
  .challenge-grid,
  .faction-grid {
    grid-template-columns: 1fr;
  }
  
  .dilemma-box {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Navigation */
  .main-nav {
    position: relative;
    min-height: 50px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2c2c2c;
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-nav a {
    padding: 1em 1.5em;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    border-left-color: var(--weimar-gold);
    border-bottom: none;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
  }
  
  .tab-button {
    flex: 1 1 45%;
  }

  .faction-card {
    padding: 1rem;
  }
}

/* ==========================
   PRINT STYLES
   ========================== */

@media print {
  .main-nav,
  .nav-toggle,
  .collapsible,
  .btn,
  .next-steps {
    display: none;
  }
  
  body {
    background-color: #fff;
    color: #000;
  }
  
  .timeline::before {
    display: none;
  }
}

/* ==========================
   DEEP DIVES HOVER EFFECT
   ========================== */

#deep-dives a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-left-color: var(--weimar-red);
}
