/* ── Shared Dungeon Page Styles ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c8952a;
  --gold-light:  #e8b84b;
  --gold-pale:   #f5d98a;
  --dark:        #080a0d;
  --dark-1:      #0d1017;
  --dark-2:      #12161e;
  --dark-3:      #1a1f2b;
  --dark-4:      #222836;
  --border:      rgba(200,149,42,0.22);
  --border-hi:   rgba(200,149,42,0.5);
  --text:        #d4c5a0;
  --text-dim:    #8a7a5a;
  --text-bright: #f0e4c0;

  /* WoW quality colors */
  --q-uncommon:  #1eff00;
  --q-rare:      #0070dd;
  --q-epic:      #a335ee;

  /* WoW tooltip palette */
  --tt-bg:       #090909;
  --tt-border:   #7a5510;
  --tt-border-2: #1a0e00;
  --tt-white:    #ffffff;
  --tt-green:    #1eff00;
  --tt-yellow:   #ffd100;
  --tt-orange:   #ff8000;
  --tt-flavor:   #c0a060;
  --tt-dim:      #b0b0b0;
}

html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,10,13,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 32px;
}
.nav-back {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--gold-light); }
.nav-back svg { flex-shrink: 0; }
.nav-divider { color: var(--border-hi); font-size: 18px; }
.nav-title {
  font-family: 'Cinzel', serif; font-size: 13px;
  font-weight: 600; color: var(--text-bright);
  letter-spacing: 0.08em;
  margin-right: auto;
}
.nav-discord {
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #0d0a04; text-decoration: none;
  background: var(--gold);
  border: 1px solid var(--gold-light);
  padding: 8px 16px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-discord:hover {
  background: var(--gold-light);
  border-color: var(--gold-pale);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 500px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 0 64px 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,13,0.97) 0%,
    rgba(8,10,13,0.6) 50%,
    rgba(8,10,13,0.2) 100%
  );
}
.hero-bg.placeholder::before {
  content: 'DROP A SCREENSHOT OF ' attr(data-dungeon) ' HERE AS background-image';
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(200,149,42,0.3);
  border: 2px dashed rgba(200,149,42,0.15);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 700; color: var(--text-bright);
  line-height: 1.1; margin-bottom: 8px;
}
.hero-location {
  font-family: 'Cinzel', serif; font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 24px;
}
.hero-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tag {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border-hi);
  color: var(--gold);
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
section { padding: 72px 0; }
section:nth-child(odd) { background: var(--dark-1); }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 3vw, 30px); font-weight: 700;
  color: var(--text-bright); margin-bottom: 32px;
}

/* ── Map placeholder ──────────────────────────────────────── */
.map-placeholder {
  width: 100%; aspect-ratio: 16/9; max-height: 480px;
  background: var(--dark-2);
  border: 2px dashed rgba(200,149,42,0.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim);
}
.map-placeholder svg { opacity: 0.3; }
.map-placeholder p {
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.5;
}
.map-frame {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid rgba(200,149,42,0.22);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.map-frame img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #050607;
}

/* ── Boss section ─────────────────────────────────────────── */
.boss-list { display: flex; flex-direction: column; gap: 2px; }

.boss-block {
  background: var(--dark-2);
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.boss-block:hover { border-left-color: var(--gold); }

.boss-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px; flex-wrap: wrap;
}
.boss-name {
  font-family: 'Cinzel', serif; font-size: 15px;
  font-weight: 600; color: var(--text-bright);
}
.boss-type {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}
.boss-tag-rare {
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid rgba(255,200,0,0.3);
  color: #ffc800;
}
.boss-label {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-light);
}

.boss-drops {
  padding: 20px 24px 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start;
}

/* ── WoW Tooltip ──────────────────────────────────────────── */
/*
 * Structure:
 * .loot-item
 *   .loot-icon (.icon-placeholder | img)
 *   .wow-tooltip
 *     .tt-name.uncommon / .rare / .epic
 *     .tt-bind
 *     .tt-type  →  two-col line
 *     .tt-armor-val
 *     .tt-stat (primary attrs, white) / .tt-stat.bonus (secondary, green) / .tt-stat.effect (gold)
 *     .tt-durability
 *     .tt-req
 *     .tt-sep
 *     .tt-flavor
 */

.loot-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Icon box - 40×40, sits flush against tooltip left edge */
.loot-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  position: relative; z-index: 1;
  border: 2px solid #7a5510;
  outline: 1px solid #1a0e00;
}
.loot-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.icon-placeholder {
  width: 100%; height: 100%;
  background: #1a1200;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 6px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(200,149,42,0.3);
  text-align: center; line-height: 1.3;
}

/* The tooltip panel */
.wow-tooltip {
  position: relative;
  background: var(--tt-bg);
  border: 1px solid var(--tt-border);
  box-shadow: 0 0 0 1px var(--tt-border-2), inset 0 0 0 1px rgba(255,255,255,0.03);
  padding: 7px 10px 8px;
  min-width: 180px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tt-white);
}

/* Quality-colored name */
.tt-name {
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 13px;
}
.tt-name.uncommon { color: var(--q-uncommon); }
.tt-name.rare      { color: var(--q-rare); }
.tt-name.epic      { color: var(--q-epic); }
.tt-name.common    { color: #ffffff; }

/* Bind / soulbound line */
.tt-bind {
  color: var(--tt-white);
  font-size: 13px;
}

/* Two-column type row: Chest ············ Cloth */
.tt-type {
  display: flex;
  justify-content: space-between;
  color: var(--tt-white);
  font-size: 13px;
}

/* Separator line */
.tt-sep {
  height: 1px;
  background: rgba(200,149,42,0.3);
  margin: 5px 0;
}

/* Armor value - white */
.tt-armor-val {
  color: var(--tt-white);
  font-size: 13px;
}

/* Primary attributes (Str / Sta / Agi / Int / Spi): white */
/* Secondary stats (hit, crit, spell damage, etc.): green (.bonus) */
.tt-stat {
  color: var(--tt-white);
  font-size: 13px;
}
.tt-stat.bonus { color: var(--tt-green); }
/* Proc / special ability line */
.tt-stat.effect { color: #ffd100; }

/* Durability */
.tt-durability {
  color: var(--tt-white);
  font-size: 13px;
}

/* Requirement lines */
.tt-req {
  color: var(--tt-yellow);
  font-size: 13px;
}

/* Flavor text */
.tt-flavor {
  color: var(--tt-flavor);
  font-style: italic;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Loot grids ───────────────────────────────────────────── */
/* Boss drops: wrap loosely */
.boss-drops { flex-wrap: wrap; align-items: flex-start; }

/* Full loot table: even grid */
.loot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Footer ───────────────────────────────────────────────── */
.dungeon-footer {
  background: var(--dark);
  border-top: 1px solid rgba(200,149,42,0.15);
  padding: 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-home,
.footer-discord {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.footer-home:hover { color: var(--gold-light); }
.footer-discord {
  color: #0d0a04;
  background: var(--gold);
  border: 1px solid var(--gold-light);
  padding: 10px 18px;
}
.footer-discord:hover {
  color: #0d0a04;
  background: var(--gold-light);
  border-color: var(--gold-pale);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero { padding: 0 24px 48px; }
  .container { padding: 0 20px; }
  .boss-header { flex-direction: column; gap: 6px; }
  .boss-drops { flex-direction: column; }
  .nav-inner { gap: 12px; padding: 0 20px; }
  .nav-divider,
  .nav-title { display: none; }
  .nav-discord { margin-left: auto; padding: 7px 12px; }
}
