/* Shared styles for the static, crawlable pages: the homepage (landing.html)
   and the per-tool section pages (dps-calculator/gear-optimizer/drop-simulator/
   bestiary). The app itself (index.html) has its own inline styles. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:#1a1a1a; --surface:#242424; --card:#2c2c2c; --border:#3a3a3a;
  --accent:#5ab4d6; --accent2:#a8daf0; --text:#e8e0d0; --muted:#9a9388;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); }
.wrap { max-width: 980px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Top bar */
header.top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(26,26,26,.92);
  backdrop-filter: blur(6px); z-index: 10;
}
header.top .logo { height: 30px; width: auto; display: block; }
.beta {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #1a1a1a; background: var(--accent); border-radius: 4px; padding: 2px 7px;
}
header.top .spacer { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 7px; padding: 9px 16px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #11242b; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn svg { display: block; }

/* Hero */
.hero { text-align: center; padding: 64px 20px 40px; }
.hero .wordmark-row { display: inline-flex; align-items: flex-start; gap: 10px; }
.hero .wordmark-row .beta { margin-top: 6px; }
.hero img.wordmark { width: min(560px, 82vw); height: auto; pointer-events: none; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(20px, 3.4vw, 30px); font-weight: 700; margin: 26px 0 10px;
  color: var(--accent2); letter-spacing: .3px;
}
.hero p.lede {
  max-width: 680px; margin: 0 auto 26px; font-size: clamp(15px, 2vw, 17px);
  color: var(--text);
}
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { padding: 12px 24px; font-size: 16px; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Sections */
section { padding: 60px 0; border-top: 1px solid var(--border); }
h2 { font-size: clamp(19px, 2.6vw, 24px); margin-bottom: 6px; color: var(--accent2); }
.sub { color: var(--muted); margin-bottom: 26px; }

/* Always 3-across, or a single stacked column on narrow screens — never a 2+1 split. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 18px 16px;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.feature .ico { font-size: 22px; line-height: 1; }

/* Clickable tool cards (the three tools) — whole card links to the tool. */
a.feature {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  cursor: pointer;
}
a.feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
}
a.feature:hover h3 { color: var(--accent2); }
a.feature:hover .feature-img { border-color: var(--accent); }
a.feature .more {
  margin-top: auto; padding-top: 10px;
  color: var(--accent2); font-size: 14px; font-weight: 600;
  transition: color .15s;
}
a.feature:hover .more { color: var(--text); }
.feature-img {
  display: block; width: 100%; height: 132px;
  object-fit: contain; object-position: center;
  border-radius: 7px; border: 1px solid var(--border);
  background: #1c1c1c; margin: -2px 0 4px;
  pointer-events: none;   /* stop the browser's image-hover (Edge Visual Search) camera icon */
}
.feature h3 { font-size: 16px; margin: 10px 0 6px; color: var(--text); }
.feature p { color: var(--muted); font-size: 14px; }

/* Maggot King Fight Simulator SPOTLIGHT — the prominent featured tool. Full-bleed
   accent-tinted band (bg on the <section>, content centred in an inner .wrap). */
.spotlight { background: rgba(90, 180, 214, .06); }
.spotlight .eyebrow {
  display: block; text-align: center; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 12px; font-weight: 700; color: var(--accent);
  margin-bottom: 10px;
}
.spotlight h2, .spotlight .sub { text-align: center; }
.spotlight .sub { margin-bottom: 20px; }
.spotlight-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 4px;
}
.spotlight-facts .fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 18px; text-align: center; min-width: 108px;
}
.spotlight-facts .fact b { display: block; color: var(--accent); font-size: 19px; line-height: 1.2; }
.spotlight-facts .fact span { color: var(--muted); font-size: 12px; }
.spotlight-shot {
  display: block; width: 100%; max-width: 940px; margin: 22px auto 0;
  border: 1px solid var(--border); border-radius: 10px;
  pointer-events: none;   /* suppress the browser image-hover camera icon */
}
.spotlight-caption { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.spotlight-copy { max-width: 780px; margin: 24px auto 0; color: var(--text); }
.spotlight-copy b { color: var(--accent2); }
.spotlight-cta { text-align: center; margin-top: 28px; }
.spotlight-cta .btn { padding: 13px 28px; font-size: 16px; }

/* Boss Fight Simulator showcase section — wider than .dropsim since the
   charts carry more detail (axis labels, phase bands) than a single icon. */
.fightsim { text-align: left; }
.fightsim p { max-width: 720px; margin: 0; color: var(--text); }
.fightsim .shot {
  display: block; width: 100%; max-width: 860px; margin: 22px auto 0;
  border: 1px solid var(--border); border-radius: 10px;
  pointer-events: none;   /* suppress the browser image-hover camera icon */
}

/* Drop-simulator showcase section */
.dropsim { text-align: left; }
.dropsim p { max-width: 680px; margin: 0; color: var(--text); }
.dropsim .shot {
  display: block; width: 100%; max-width: 560px; margin: 26px auto 0;
  border: 1px solid var(--border); border-radius: 10px;
  pointer-events: none;   /* suppress the browser image-hover camera icon */
}

/* Unreleased-item showcase (two captured calculator screenshots) */
.showcase { text-align: left; }
.showcase > p { max-width: 680px; color: var(--text); }
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 26px auto 0; max-width: 760px;
}
@media (max-width: 720px) { .showcase-grid { grid-template-columns: 1fr; } }
.showcase-card {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.showcase-card img {
  display: block; width: 100%; border-bottom: 1px solid var(--border);
  pointer-events: none;   /* suppress the browser image-hover camera icon */
}
.showcase-card figcaption { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.showcase-card figcaption b { color: var(--accent2); }
.showcase-card .dps { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* Fixed 3 columns (6 pills → 2 rows × 3); collapse to one column on narrow screens. */
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .pills { grid-template-columns: 1fr; } }
.pill {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 14px; font-size: 14px;
}
.pill .chk { color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.pill b { color: var(--text); }
.pill span { color: var(--muted); }

/* Bulleted feature list (section pages). The marker hangs in a left gutter via
   padding + an absolute ::before — NOT flex, so a bold lead-in and its following
   description stay on one flowing line instead of splitting into separate flex
   items (each inline run would otherwise become its own gap-separated column). */
.bullets { list-style: none; display: grid; gap: 12px; }
.bullets li {
  position: relative; padding-left: 22px;
  font-size: 15px; color: var(--text); line-height: 1.5;
}
.bullets li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.bullets li b { color: var(--accent2); }

.faq dt { font-weight: 600; color: var(--text); margin-top: 18px; }
.faq dd { color: var(--muted); margin: 4px 0 0; }

.midcta { text-align: center; }
.midcta .btn { padding: 13px 28px; font-size: 16px; }

/* Cross-links to the other tools (internal linking + sitelink hints) */
.toolnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.toolnav a {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 16px 14px; transition: border-color .15s, transform .05s;
}
.toolnav a:hover { border-color: var(--accent); }
.toolnav a:active { transform: translateY(1px); }
.toolnav .ico { font-size: 20px; }
.toolnav strong { display: block; color: var(--accent2); margin: 8px 0 4px; font-size: 15px; }
.toolnav span { color: var(--muted); font-size: 13px; }

/* ============================================================
   Best Setups pages (/bestDPS + /bestDPS/<boss>)
   ============================================================ */
.best-page { padding-top: 30px; padding-bottom: 60px; }
.best-page h1 {
  font-size: clamp(22px, 3.6vw, 32px); color: var(--accent2);
  margin: 10px 0 12px; letter-spacing: .2px;
}
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--accent2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lede-left { max-width: 720px; color: var(--text); margin-bottom: 24px; font-size: 15px; }
/* The direct one-sentence answer under a best-setup H1 (mirrors the FAQ schema). */
.answer {
  max-width: 720px; color: var(--text); font-size: 16px; line-height: 1.55;
  margin: 0 0 18px; padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03); border-radius: 0 6px 6px 0;
}

/* Per-style build cards */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .build-grid { grid-template-columns: 1fr; } }
.build-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px;
}
.build-card.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.build-head { display: flex; align-items: center; justify-content: space-between; }
.build-style { font-weight: 700; color: var(--accent2); font-size: 16px; }
.best-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #11242b; background: var(--accent); border-radius: 4px; padding: 2px 7px;
}
.build-weapon { display: flex; align-items: center; gap: 10px; }
.build-weapon img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.build-weapon b { color: var(--text); font-size: 15px; }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.statrow .stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 6px; text-align: center;
}
.statrow .stat .v { display: block; color: var(--accent); font-weight: 700; font-size: 15px; }
.statrow .stat .k { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.gear-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.gear-slot {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 7px; font-size: 12.5px; color: var(--text);
}
.gear-slot img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.gear-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.build-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-tag {
  font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px;
}
.open-btn { margin-top: auto; justify-content: center; }
.assumptions { max-width: 720px; margin-top: 22px; }
.assumptions a { color: var(--accent2); }
.related { margin-top: 8px; }

/* Hub grid of boss tiles */
.boss-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.boss-tile {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, transform .06s;
}
.boss-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.boss-tile img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.boss-tile-body { min-width: 0; }
.boss-tile-body strong { display: block; color: var(--accent2); font-size: 14.5px; }
.boss-tile-body span { color: var(--muted); font-size: 12.5px; }

footer {
  border-top: 1px solid var(--border); padding: 28px 20px 40px;
  text-align: center; color: var(--muted); font-size: 13px;
}
footer a { color: var(--accent2); }
footer b { color: var(--text); font-weight: 700; }
footer .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
