/* Gilded WoW site: home, addon pages and the Chronicle viewer. Navy and gold, like the addons. */
:root {
  --bg: #060a16;
  --bg-2: #0a1124;
  --panel: rgba(13, 21, 42, 0.86);
  --panel-solid: #0d152a;
  --panel-hi: rgba(28, 42, 78, 0.7);
  --line: rgba(219, 168, 74, 0.26);
  --line-strong: rgba(219, 168, 74, 0.55);
  --gold: #dba84a;
  --gold-bright: #ffd98a;
  --title: #ebc77a;
  --text: #dbcbad;
  --muted: #a39b88;
  --cyan: #56d4ff;
  --red: #e0645a;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #3b94ff; --q4: #b45cff; --q5: #ff8000; --q6: #e6cc80; --q7: #00ccff;
  --radius: 10px;
  --title-font: "Cinzel", Georgia, "Times New Roman", serif;
  --text-font: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(40, 70, 140, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  color: var(--text);
  font: 16px/1.5 var(--text-font);
}
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--title-font); color: var(--title); font-weight: 700; letter-spacing: 0.02em; margin: 0; }

/* Hero banner */
.hero { position: relative; overflow: hidden; height: min(40vw, 520px); transition: height 0.4s ease; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
body.loaded .hero { height: clamp(120px, 16vw, 220px); }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100vw - 1200px) / 2));
  background: rgba(6, 10, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--title-font); color: var(--title); font-size: 20px; letter-spacing: 0.04em; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 16px; cursor: pointer;
  color: var(--text); font-weight: 500;
}
.tab:hover { border-color: var(--line); }
.tab.on { background: linear-gradient(180deg, rgba(219, 168, 74, 0.28), rgba(219, 168, 74, 0.12)); border-color: var(--line-strong); color: var(--gold-bright); }
.bar select, .btn {
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 12px; cursor: pointer;
}
.btn:hover, .bar select:hover { border-color: var(--gold); }
.btn.gold {
  background: linear-gradient(180deg, #e9bd62, #b9852f); color: #1a1206; border-color: #ffd98a; font-weight: 700;
}
.btn.gold:hover { filter: brightness(1.08); }
body:not(.loaded) .needs-data { display: none; }

main { max-width: 1200px; margin: 0 auto; padding: 28px 16px 80px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }

/* Panels */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 150, 0.06);
}

/* Landing: drop zone */
.drop {
  max-width: 820px; margin: 0 auto; position: relative; z-index: 2; padding: 34px 34px 28px; text-align: center;
}
.drop h1 { font-size: 30px; margin-bottom: 6px; }
.drop p.lead { color: var(--muted); margin: 0 0 22px; }
.drop .zone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 34px 20px; margin-bottom: 18px;
  transition: background 0.2s, border-color 0.2s;
}
body.dragging .drop .zone { background: rgba(219, 168, 74, 0.08); border-color: var(--gold-bright); }
.drop .zone strong { display: block; font-size: 19px; color: var(--title); margin-bottom: 14px; }
.drop .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.paths { text-align: left; display: grid; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.paths code {
  display: block; margin-top: 3px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.35);
  color: var(--text); font: 13px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere;
}
.notice { margin-top: 16px; font-size: 13px; color: var(--muted); }
.error { color: var(--red); margin-top: 12px; }
.loaded-files { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Character header */
.hero-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 26px; position: relative; z-index: 2; }
.crest {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #22345f, #0a1123); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(219, 168, 74, 0.15), 0 0 24px rgba(86, 212, 255, 0.15);
  font: 700 30px var(--title-font); color: var(--gold-bright);
}
.hero-card h1 { font-size: 30px; }
.hero-card .sub { color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; grid-column: 1 / -1; }
.stat { padding: 10px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(219, 168, 74, 0.14); }
.stat b { display: block; font: 700 22px var(--title-font); color: var(--gold-bright); }
.stat span { font-size: 13px; color: var(--muted); }

/* Filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 26px 0 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: rgba(0, 0, 0, 0.2); cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.off { opacity: 0.45; text-decoration: line-through; }
.chip:hover { border-color: var(--gold); }
.search {
  margin-left: auto; min-width: 220px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35);
}
.search:focus { outline: none; border-color: var(--gold); }

/* Story */
.day { margin-top: 34px; }
.day-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.day-head h2 { font-size: 22px; }
.day-head .facts { color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.card .body { padding: 12px 16px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.card .kind { grid-column: 2; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.card .title { grid-column: 2; font-size: 18px; color: var(--text); line-height: 1.3; }
.card .meta { grid-column: 2; font-size: 13px; color: var(--muted); }
.card .glyph { grid-row: 1 / span 3; }
.rows { display: grid; gap: 2px; }
.row {
  display: grid; grid-template-columns: 52px 26px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px;
}
.row:nth-child(odd) { background: rgba(60, 80, 140, 0.12); }
.row:hover { background: rgba(219, 168, 74, 0.12); }
.row .time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.row .where { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.glyph {
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(219, 168, 74, 0.35); color: var(--gold-bright);
}
.card .glyph { width: 36px; height: 36px; }
.glyph svg { width: 70%; height: 70%; fill: currentColor; }
.hl { color: var(--title); }
.muted { color: var(--muted); }
.coin { font-size: 0.85em; margin-left: 1px; }
.coin.g { color: #ffd34d; } .coin.s { color: #c8c8c8; } .coin.c { color: #d08850; }
.q0 { color: var(--q0) !important; } .q1 { color: var(--q1) !important; } .q2 { color: var(--q2) !important; } .q3 { color: var(--q3) !important; }
.q4 { color: var(--q4) !important; } .q5 { color: var(--q5) !important; } .q6 { color: var(--q6) !important; } .q7 { color: var(--q7) !important; }
.more { display: block; margin: 30px auto 0; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.shot { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: #000; aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.shot:hover img { transform: scale(1.04); }
.shot .cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 8px; font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}
.shot .cap b { color: var(--gold-bright); display: block; font-size: 14px; }
.section-title { margin: 34px 0 6px; font-size: 20px; }
.hint { color: var(--muted); font-size: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(2, 4, 10, 0.94); display: grid; grid-template-rows: 1fr auto; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; align-self: center; justify-self: center; padding: 20px; }
.lightbox .info { padding: 14px 24px 22px; text-align: center; border-top: 1px solid var(--line); background: rgba(6, 10, 22, 0.9); }
.lightbox .info b { font: 700 20px var(--title-font); color: var(--title); display: block; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; padding: 6px 16px; }
.lightbox .prev { left: 14px; } .lightbox .next { right: 14px; }
.lightbox .close { position: absolute; top: 14px; right: 14px; }

/* Map */
.mapview { display: grid; grid-template-columns: 280px 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.zones { padding: 8px; max-height: 720px; overflow: auto; }
.zones button {
  display: flex; justify-content: space-between; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left;
}
.zones button:hover { background: rgba(219, 168, 74, 0.1); }
.zones button.on { background: rgba(219, 168, 74, 0.2); color: var(--gold-bright); }
.zones button span { color: var(--muted); }
.mapcard { padding: 16px; }
.plot {
  position: relative; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(219, 168, 74, 0.08) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(90deg, rgba(219, 168, 74, 0.08) 1px, transparent 1px) 0 0 / 10% 10%,
    radial-gradient(circle at 50% 50%, #1b2a4f, #0a1123 75%);
}
/* Zone art is 3:2 like the plot, so it stretches to fit exactly and the coordinates line up. */
.plot .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.plot.art { background: #1a1408; }
.plot.art .dot { border-color: rgba(20, 14, 4, 0.9); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 6px rgba(0, 0, 0, 0.7); }
.dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 10px currentColor; background: currentColor; cursor: pointer; transition: transform 0.15s;
}
.dot:hover { transform: scale(1.6); z-index: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 320px; padding: 8px 12px; border-radius: 8px;
  background: rgba(6, 10, 22, 0.96); border: 1px solid var(--line-strong); font-size: 14px;
}
.tip[hidden] { display: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 18px; }
.stats .panel { padding: 18px 20px; }
.stats h3 { font-size: 17px; margin-bottom: 12px; }
.bars { display: grid; gap: 8px; }
.barrow { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; font-size: 14px; }
.barrow .track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b9852f, #ffd98a); }
.barrow .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--text-font); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(219, 168, 74, 0.1); padding-bottom: 5px; }
.list li span:last-child { color: var(--muted); white-space: nowrap; }
.wide { grid-column: 1 / -1; }
table.runs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.runs th { text-align: left; color: var(--gold); font-weight: 500; border-bottom: 1px solid var(--line); padding: 6px 8px; }
table.runs td { padding: 6px 8px; border-bottom: 1px solid rgba(219, 168, 74, 0.08); }

/* Links between the site's pages: Gilded UI and Gilded Chronicle */
.site-links { display: flex; gap: 4px; flex-wrap: wrap; }
.site-links a { padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; color: var(--text); font-weight: 500; }
.site-links a:hover { border-color: var(--line); text-decoration: none; }
.site-links a.on { border-color: var(--line-strong); color: var(--gold-bright); background: rgba(219, 168, 74, 0.12); }
.site-links a.yt { display: inline-flex; align-items: center; gap: 7px; }
.site-links a.yt svg { width: 20px; height: 20px; fill: #ff3d3d; }
footer a { color: var(--gold-bright); }

/* Home: the two addons side by side */
.home-intro { text-align: center; max-width: 720px; margin: 0 auto 26px; position: relative; z-index: 2; }
.home-intro h1 { font-size: 34px; }
.home-intro .lead { color: var(--muted); font-size: 18px; margin: 8px 0 0; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.addon-card { overflow: hidden; display: flex; flex-direction: column; }
.addon-card .pic { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); background: #070c1c; }
.addon-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.addon-card .pic:hover img { transform: scale(1.03); }
.addon-card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.addon-card .body > p { margin: 0; font-size: 17px; }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head img { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.card-head .eyebrow { margin: 0; }
.card-head h2 { font-size: 26px; }
.card-head h2 a { color: inherit; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.points li { padding-left: 18px; position: relative; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.addon-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.addon-card .actions .btn { text-decoration: none; }

/* Addon pages: Gilded UI and Gilded Chronicle */
.addon-hero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 30px 34px; }
.addon-logo { width: 160px; height: 160px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.addon-hero h1 { font-size: 40px; }
.addon-hero .lead { color: var(--text); font-size: 18px; margin: 8px 0 18px; max-width: 62ch; }
.addon-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.addon-hero .actions .btn { display: inline-block; text-decoration: none; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--title); font-weight: 500; margin-right: 4px; }
.showcase { margin: 22px 0 0; padding: 18px; text-align: center; }
.showcase img { width: 100%; height: auto; display: block; }
.showcase figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.feature { padding: 18px 20px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15px; }
.feature code, .install code {
  padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.35); color: var(--gold-bright); font: 13px ui-monospace, Consolas, monospace; overflow-wrap: anywhere;
}
.badges { display: flex; gap: 8px; margin-top: 12px; }
.install { margin-top: 30px; padding: 22px 26px; }
.install h2 { font-size: 22px; margin-bottom: 10px; }
.install ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }

@media (max-width: 760px) {
  .hero { height: 46vw; }
  .addons { grid-template-columns: 1fr; }
  .home-intro h1 { font-size: 28px; }
  .addon-card .body { padding: 18px 18px 20px; }
  .addon-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 18px; }
  .addon-hero .actions, .facts { justify-content: center; }
  .addon-logo { width: 120px; height: 120px; }
  .addon-hero h1 { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
  .bar { gap: 10px; }
  .brand b { font-size: 17px; }
  .search { margin-left: 0; width: 100%; }
  .row { grid-template-columns: 44px 24px 1fr; }
  .row .where { display: none; }
  .mapview { grid-template-columns: 1fr; }
  .zones { max-height: 260px; }
  .hero-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .barrow { grid-template-columns: 90px 1fr 70px; }
  .cards { grid-template-columns: 1fr; }
}
