/* ==========================================================================
   AGC Chronos-Weltkarte v2.0 — Klassischer World-of-Warcraft-Kartenrahmen,
   Gealtertes Pergament-Questbuch & Vorher/Nachher-Verwüstungs-Vergleich
   (100 % eigenes CSS/Vektor-Ornamentwerk, 0 % extrahierte Spielclient-Dateien)
   ========================================================================== */

:root {
  --metal-dark: #16110c;
  --metal-mid: #271d13;
  --metal-bronze: #46331e;
  --gold-edge: #c9a243;
  --gold-bright: #f7dc88;
  --gold-deep: #8c681d;
  --wow-red-top: #9e1919;
  --wow-red-bot: #580b0b;
  --wow-red-hover: #c42222;
  --parchment-light: #f4e7c8;
  --parchment-mid: #e6d2a6;
  --parchment-dark: #cbb07c;
  --ink-dark: #281a0d;
  --ink-sepia: #52381e;
  --tooltip-bg: rgba(9, 13, 24, 0.95);
}

* {
  box-sizing: border-box;
}

body.wow-atlas-body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--metal-dark);
  color: #f5ebd4;
  font-family: 'Inter', Georgia, serif;
  user-select: none;
}

/* ========================================================
   OBERER BRONZE-/GOLD-RAHMEN & KLASSISCHE ROTE WOW-BUTTONS
   ======================================================== */
.wow-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 16px;
  background: linear-gradient(180deg, #312315 0%, #1c140c 55%, #120d08 100%);
  border-bottom: 2px solid var(--gold-edge);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(247, 220, 136, 0.35);
  z-index: 40;
}

.wow-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wow-crest-medallion {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6b4e26, #24180b);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 8px rgba(201, 162, 67, 0.5), inset 0 0 6px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.wow-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-edge);
  font-weight: 700;
}

.wow-main-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.wow-world-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wow-red-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #fce8b2;
  background: linear-gradient(180deg, var(--wow-red-top) 0%, var(--wow-red-bot) 100%);
  border: 1.5px solid var(--gold-edge);
  border-radius: 4px;
  padding: 6px 13px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.35), 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: filter 0.14s ease, transform 0.08s ease;
}

.wow-red-btn:hover {
  background: linear-gradient(180deg, var(--wow-red-hover) 0%, #6e0e0e 100%);
  border-color: var(--gold-bright);
  color: #ffffff;
}

.wow-red-btn.active {
  background: linear-gradient(180deg, #ca8a04 0%, #78350f 100%);
  border-color: #fef08a;
  color: #fffbeb;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.wow-btn-sm {
  font-size: 11.5px;
  padding: 5px 10px;
}

.wow-gold-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  color: #241707;
  background: linear-gradient(180deg, #fde68a 0%, #d99b26 100%);
  border: 1.5px solid #fef3c7;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.wow-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wow-search-wrap {
  position: relative;
  width: 290px;
}

#agc-search-input {
  width: 100%;
  padding: 6px 11px;
  border-radius: 4px;
  border: 1.5px solid var(--gold-deep);
  background: #0e0a07;
  color: #fef3c7;
  font-size: 12.5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}

#agc-search-input:focus {
  outline: none;
  border-color: var(--gold-bright);
}

.wow-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--tooltip-bg);
  border: 1.5px solid var(--gold-edge);
  border-radius: 5px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
  z-index: 90;
}

.agc-search-item {
  padding: 8px 11px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(201, 162, 67, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.agc-search-item:hover {
  background: rgba(201, 162, 67, 0.22);
}

/* ========================================================
   CHRONOS-ZEITSTRAHL-LEISTE
   ======================================================== */
.wow-chronos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 16px;
  background: linear-gradient(180deg, #221910 0%, #17110b 100%);
  border-bottom: 2px solid #594124;
  z-index: 35;
}

.wow-slider-block {
  flex: 1;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wow-slider-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wow-era-badge {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}

.wow-year-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(158, 25, 25, 0.55);
  border: 1px solid var(--gold-edge);
  color: #fde68a;
}

#chronos-era-slider {
  width: 100%;
  accent-color: #eab308;
  height: 6px;
  cursor: pointer;
}

.wow-era-ticks {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.agc-era-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(201, 162, 67, 0.35);
  background: #140f0a;
  color: #d6c5a3;
  cursor: pointer;
  transition: all 0.12s ease;
}

.agc-era-pill:hover {
  border-color: var(--gold-bright);
  color: #fff;
}

.agc-era-pill.active {
  background: linear-gradient(180deg, #854d0e 0%, #451a03 100%);
  border-color: var(--gold-bright);
  color: #fef08a;
  font-weight: 700;
}

.wow-filter-toggles {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #e7d8b9;
}

.wow-chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.wow-chk input {
  accent-color: #d97706;
}

/* ========================================================
   HAUPT-WORKSPACE: METALL-KARTENRAHMEN + PERGAMENT-SIDEBAR
   ======================================================== */
.wow-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 425px;
  padding: 8px;
  gap: 8px;
  background: radial-gradient(circle at center, #261c12 0%, #120d08 100%);
}

.wow-map-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--gold-edge);
  border-radius: 6px;
  box-shadow:
    inset 0 0 28px rgba(24, 14, 5, 0.82),
    0 4px 18px rgba(0, 0, 0, 0.85);
  background: #bda06d;
}

.wow-map-frame.is-dragging {
  cursor: grabbing;
}

/* Geschmiedete Eck-Ornamente */
.wow-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-bright);
  z-index: 25;
  pointer-events: none;
}
.wow-corner.tl { top: 3px; left: 3px; border-right: 0; border-bottom: 0; }
.wow-corner.tr { top: 3px; right: 3px; border-left: 0; border-bottom: 0; }
.wow-corner.bl { bottom: 3px; left: 3px; border-right: 0; border-top: 0; }
.wow-corner.br { bottom: 3px; right: 3px; border-left: 0; border-top: 0; }

/* Klassisches zentriertes WoW-Zonenbanner oben im Kartenbild */
.wow-zone-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 24px;
  background: linear-gradient(90deg, rgba(18,12,6,0) 0%, rgba(22,15,8,0.86) 20%, rgba(22,15,8,0.86) 80%, rgba(18,12,6,0) 100%);
  border-top: 1px solid rgba(247, 220, 136, 0.55);
  border-bottom: 1px solid rgba(247, 220, 136, 0.55);
  text-align: center;
  pointer-events: none;
  z-index: 20;
}

.wow-zone-banner-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fde047;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(0, 0, 0, 0.9);
}

.wow-zone-banner-sub {
  font-size: 11px;
  color: #f3e8d2;
  text-shadow: 0 1px 2px #000;
}

#agc-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

/* SVG Kartografie-Stile */
.agc-continent-poly {
  stroke: #4c3318;
  stroke-width: 2.3;
  stroke-linejoin: round;
  filter: url(#coastalHalo);
  transition: fill 0.25s ease;
}

.agc-continent-inner-coast {
  fill: none;
  stroke: rgba(120, 83, 42, 0.42);
  stroke-width: 5.5;
  stroke-linejoin: round;
  pointer-events: none;
}

.agc-continent-label {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: #3d2610;
  stroke: rgba(247, 234, 202, 0.82);
  stroke-width: 3.4px;
  paint-order: stroke;
  text-anchor: middle;
  pointer-events: none;
}

.agc-continent-label.dark-world {
  fill: #fde68a;
  stroke: rgba(12, 8, 18, 0.9);
}

.agc-node-group {
  cursor: pointer;
}

.agc-node-label {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  fill: #241508;
  stroke: rgba(252, 243, 219, 0.94);
  paint-order: stroke;
  pointer-events: none;
}

.agc-node-label.dark-world {
  fill: #fef3c7;
  stroke: rgba(10, 10, 18, 0.94);
}

/* Klassischer WoW-Tooltip */
.wow-tooltip {
  position: absolute;
  pointer-events: none;
  min-width: 220px;
  max-width: 310px;
  padding: 9px 12px;
  background: var(--tooltip-bg);
  border: 1.5px solid var(--gold-edge);
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.92), inset 0 0 0 1px rgba(255, 236, 179, 0.14);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.42;
  z-index: 60;
}

.wow-tt-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 2px;
}

.wow-tt-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 5px;
}

/* Karten-Controls & Koordinaten-HUD */
.wow-map-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 25;
}

.wow-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1.5px solid var(--gold-edge);
  background: linear-gradient(180deg, #382818 0%, #1b130b 100%);
  color: var(--gold-bright);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.wow-ctrl-btn:hover {
  border-color: #fff;
  color: #fff;
}

.wow-coords-hud {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 11px;
  border-radius: 4px;
  border: 1px solid var(--gold-edge);
  background: rgba(18, 13, 8, 0.88);
  color: #fde68a;
  font-size: 11.5px;
  font-family: monospace;
  z-index: 25;
}

/* ========================================================
   RECHTES PERGAMENT-DOSSIER (QUESTBUCH-OPTIK)
   ======================================================== */
.wow-parchment-sidebar {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.wow-scroll-card {
  background: linear-gradient(165deg, var(--parchment-light) 0%, var(--parchment-mid) 62%, var(--parchment-dark) 100%);
  border: 2.5px solid #6e4e26;
  outline: 1px solid var(--gold-edge);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink-dark);
  box-shadow: inset 0 0 22px rgba(107, 72, 30, 0.35), 0 4px 14px rgba(0, 0, 0, 0.75);
}

.wow-scroll-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c4a15;
}

.wow-scroll-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  margin: 3px 0 6px;
  color: #2b1706;
}

.wow-faction-banner {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(66, 38, 12, 0.14);
  border: 1px solid rgba(92, 56, 20, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: #4a2507;
  margin-bottom: 10px;
}

/* Vorher/Nachher Bild-Vergleichsregler */
.wow-compare-box {
  margin: 6px 0 12px;
  padding: 9px;
  border-radius: 5px;
  background: rgba(38, 24, 11, 0.92);
  border: 1.5px solid var(--gold-edge);
  color: #fef3c7;
}

.wow-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wow-compare-year {
  background: #991b1b;
  border: 1px solid #fca5a5;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10.5px;
}

.wow-compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
}

.wow-compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wow-compare-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  border-right: 2px solid #fde047;
}

.wow-compare-before-wrap .wow-compare-img {
  width: 375px;
  max-width: none;
}

.wow-compare-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047, #b45309);
  border: 2px solid #fff;
  color: #1c1105;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.wow-compare-tag {
  position: absolute;
  bottom: 6px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  letter-spacing: 0.06em;
}
.tag-before { left: 6px; border: 1px solid #86efac; color: #bbf7d0; }
.tag-after { right: 6px; border: 1px solid #fca5a5; color: #fecaca; }

.wow-compare-slider {
  width: 100%;
  margin-top: 7px;
  accent-color: #eab308;
  cursor: ew-resize;
}

.wow-compare-caption {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.38;
  color: #e2e8f0;
}

/* Textuelle Vorher/Nachher-Umbruch-Karte */
.wow-state-mutation-card {
  margin: 6px 0 11px;
  padding: 9px 10px;
  border-radius: 5px;
  background: rgba(124, 45, 18, 0.12);
  border: 1px solid rgba(153, 27, 27, 0.45);
}

.wow-mut-header {
  font-size: 11.5px;
  font-weight: 800;
  color: #7f1d1d;
  margin-bottom: 5px;
}

.wow-mut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.38;
}

.wow-mut-col {
  padding: 6px 7px;
  border-radius: 4px;
  background: rgba(255, 250, 235, 0.6);
}
.wow-mut-col strong {
  display: block;
  margin-bottom: 2px;
  color: #3f2209;
}

.wow-scroll-desc {
  font-size: 13px;
  line-height: 1.52;
  color: #2e1d0d;
  margin: 0 0 10px;
}

.wow-quick-route-btns {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.wow-parchment-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #78532a;
  background: linear-gradient(180deg, #f9efd8 0%, #dfc694 100%);
  color: #2e1a08;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.wow-parchment-btn:hover {
  background: linear-gradient(180deg, #fffbeb 0%, #e9d3a3 100%);
}

.wow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #8c6535, transparent);
  margin: 10px 0;
}

.wow-subblock {
  margin-top: 10px;
}

.wow-subblock h3, .wow-planner-card h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  margin: 0 0 6px;
  color: #3d2107;
}

.wow-ep-card {
  padding: 7px 9px;
  border-radius: 4px;
  background: rgba(58, 34, 12, 0.11);
  border-left: 3px solid #991b1b;
  font-size: 12px;
  margin-bottom: 5px;
  color: #241305;
}

.wow-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agc-npc-tag {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(74, 46, 18, 0.15);
  border: 1px solid rgba(74, 46, 18, 0.35);
  font-size: 11px;
  font-weight: 600;
  color: #361e08;
}

.wow-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wow-lamp {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}
.lamp-green { background: #166534; color: #dcfce7; }
.lamp-amber { background: #92400e; color: #fef3c7; }

.wow-timeline-list {
  margin: 6px 0 0;
  padding-left: 17px;
  font-size: 11.8px;
  line-height: 1.44;
  color: #331f0c;
  max-height: 210px;
  overflow-y: auto;
}
.wow-timeline-list li {
  margin-bottom: 5px;
}

/* Marsch-Rechner */
.wow-planner-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.wow-planner-row select {
  width: 100%;
  padding: 5px 7px;
  border-radius: 4px;
  border: 1px solid #7c582e;
  background: #fbf3df;
  color: #261506;
  font-size: 12px;
}

.wow-route-result {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(41, 25, 10, 0.88);
  color: #fef3c7;
  font-size: 12px;
  line-height: 1.45;
}

/* Footer */
.wow-footer {
  padding: 5px 16px;
  font-size: 10.8px;
  color: #b8a688;
  background: #100b07;
  border-top: 1px solid #4a351e;
}

@media (max-width: 1100px) {
  body.wow-atlas-body {
    height: auto;
    overflow: auto;
  }
  .wow-workspace {
    grid-template-columns: 1fr;
  }
  .wow-map-frame {
    height: 62vh;
  }
}


/* ========================================================
   CLASSIC v3.0 ADDITIONS: FESTER KANON-BANNER & REISE-WIKI-TAB
   ======================================================== */
.wow-canon-fixed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wow-canon-summary {
  font-size: 12.2px;
  color: #f3e5c3;
}
.wow-canon-summary strong {
  color: var(--gold-bright);
}
.wow-travel-note-box {
  background: rgba(139, 92, 28, 0.14);
  border: 1px solid rgba(140, 104, 29, 0.45);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-dark);
  line-height: 1.48;
}
.wow-wiki-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  overflow-y: auto;
  padding: 28px 32px 42px 32px;
  background: linear-gradient(180deg, #f3e5c4 0%, #e4cf9f 100%);
  color: var(--ink-dark);
  user-select: text;
}
.wow-wiki-overlay h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: #580b0b;
  border-bottom: 2px solid #8c681d;
  padding-bottom: 6px;
  margin: 22px 0 10px 0;
  font-size: 19px;
}
.wow-wiki-overlay h2:first-child {
  margin-top: 0;
}
.wow-wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 16px;
  background: rgba(255, 250, 238, 0.65);
}
.wow-wiki-table th {
  background: #3b2612;
  color: #fef3c7;
  text-align: left;
  padding: 7px 10px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11.5px;
}
.wow-wiki-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(82, 56, 30, 0.22);
  vertical-align: top;
}
.wow-wiki-badge-prison {
  display: inline-block;
  background: #7f1d1d;
  color: #fef2f2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.wow-wiki-badge-island {
  display: inline-block;
  background: #1e3a8a;
  color: #eff6ff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
