/* Shared styles for content pages (guide, guides/*, raidbots-alternative, best-trinkets/*).
   Extracted verbatim from guide.html — index.html keeps its own inline styles. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, sans-serif;
  color: #e0e0e0;
  background:
    radial-gradient(ellipse 900px 520px at 50% -10%, rgba(148,130,201,0.06), transparent 60%),
    #0a0a0a;
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 2rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
a { color: #9482C9; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.6rem; }
.back-link { font-size: 0.85rem; color: #888; text-decoration: none; transition: color 0.15s; }
.back-link:hover { color: #b8a8e0; }
.topbar .brand { font-size: 0.8rem; color: #555; display: flex; align-items: center; gap: 0.45rem; }
.topbar .brand img { width: 20px; height: 20px; border-radius: 4px; }

/* Hero */
.hero { margin-bottom: 2.2rem; }
.hero .kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: #9482C9; font-weight: 600; margin-bottom: 0.9rem; }
.hero h1 { font-size: 2.15rem; line-height: 1.12; margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: #bcbcbc; line-height: 1.7; }

/* Prose */
.prose { color: #b3b3b3; line-height: 1.78; margin: 0.95rem 0; }
.prose strong { color: #e6e6e6; font-weight: 600; }
.prose a { color: #9482C9; text-decoration: none; border-bottom: 1px solid rgba(148,130,201,0.32); }
.prose a:hover { color: #b8a8e0; border-bottom-color: rgba(184,168,224,0.5); }

/* Divider (matches index) */
.divider {
  display: flex; align-items: center; gap: 0.9rem;
  margin: 2.6rem 0 1.2rem;
  color: #9482C9;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(148,130,201,0.22) 20%, rgba(148,130,201,0.22) 80%, transparent);
}

/* Why-sim cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 1.6rem 0 0.5rem; }
.why-card {
  border: 1px solid #222; border-radius: 10px;
  background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
  padding: 1.2rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 20px -12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}
.why-card .ico { font-size: 1.45rem; line-height: 1; }
.why-card h3 { font-size: 0.98rem; color: #c8b8e8; margin: 0.7rem 0 0.4rem; }
.why-card p { font-size: 0.83rem; color: #8a8a8a; line-height: 1.55; }

/* Callout */
.callout {
  border: 1px solid #2a2440; border-left: 3px solid #9482C9;
  background: rgba(148,130,201,0.06); border-radius: 6px;
  padding: 0.95rem 1.1rem; margin: 1.4rem 0;
  font-size: 0.9rem; color: #c0b6d8; line-height: 1.65;
}
.callout strong { color: #ddd2f2; }

/* Buttons / CTAs */
.cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.5rem; font-size: 1rem; font-weight: 600;
  color: #0a0a0a; text-decoration: none;
  background: linear-gradient(180deg, #a091d4 0%, #9482C9 100%);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 12px -4px rgba(148,130,201,0.35), 0 1px 2px rgba(0,0,0,0.3);
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s ease;
}
.cta:hover { background: linear-gradient(180deg, #b8a8e0 0%, #a091d4 100%); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 16px -4px rgba(148,130,201,0.45), 0 1px 2px rgba(0,0,0,0.3); }
.cta-row { margin: 1.8rem 0; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; font-size: 0.92rem; font-weight: 500;
  color: #e0e0e0; text-decoration: none;
  background: #1a1a1a; border: 1px solid #333; border-radius: 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: #9482C9; background: #1e1830; color: #fff; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin: 1.3rem 0; padding: 0; }
.steps li {
  position: relative; padding-left: 2.5rem; margin-bottom: 0.95rem;
  color: #b3b3b3; line-height: 1.6; font-size: 0.95rem;
}
.steps li strong { color: #e6e6e6; font-weight: 600; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -0.05rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #1e1830; border: 1px solid #9482C9; color: #c8b8e8;
  font-size: 0.85rem; font-weight: 600; font-family: 'Geist Mono', ui-monospace, monospace;
  display: flex; align-items: center; justify-content: center;
}

/* Data bullet list */
.data-list { list-style: none; margin: 1rem 0; padding: 0; }
.data-list li { position: relative; padding-left: 1.3rem; margin-bottom: 0.5rem; color: #b3b3b3; font-size: 0.93rem; line-height: 1.55; }
.data-list li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: #9482C9; }
.data-list strong { color: #e0e0e0; font-weight: 600; }

/* Figure */
.figure {
  margin: 1.6rem 0; border: 1px solid #222; border-radius: 10px; overflow: hidden;
  background: #0d0d0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 26px -16px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.4);
}
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 0.75rem; color: #777; padding: 0.65rem 0.95rem; border-top: 1px solid #1c1c1c; background: #101010; }

/* Tool mockups */
.mock {
  position: relative; margin: 1.5rem 0;
  border: 1px solid #222; border-radius: 10px;
  background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
  padding: 1.3rem 1.1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 20px -12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}
.mock-label {
  position: absolute; top: -0.62rem; left: 1rem;
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600;
  color: #9482C9; background: #0c0c0c; padding: 0.15rem 0.55rem; border-radius: 3px; border: 1px solid #221d33;
}
.mock h4 { font-size: 0.9rem; color: #9482C9; font-weight: 600; margin-bottom: 0.55rem; }
.mock-textarea {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: #9a9a9a;
  background: #1a1a1a; border: 1px solid #333; border-radius: 6px;
  padding: 0.6rem 0.7rem; line-height: 1.6; white-space: pre; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.mock-hint { font-size: 0.72rem; color: #666; margin-top: 0.5rem; }

/* Mode cards (matches index) */
.mode-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mode-card {
  padding: 1.3rem 1rem; border: 1.5px solid #222; border-radius: 10px;
  background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
  display: flex; align-items: center; gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 16px -10px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
}
.mode-card.active { border-color: #9482C9; background: linear-gradient(180deg, #231d38 0%, #1a1528 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px -10px rgba(148,130,201,0.25), 0 0 0 1px rgba(148,130,201,0.15); }
.mode-card-icon { width: 60px; height: 60px; border-radius: 6px; background: #222; flex-shrink: 0; overflow: hidden; }
.mode-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.mode-card-title { font-size: 0.98rem; font-weight: bold; color: #e0e0e0; }
.mode-card.active .mode-card-title { color: #b8a8e0; }
.mode-card-desc { font-size: 0.74rem; color: #666; margin-top: 0.2rem; line-height: 1.35; }

/* Results mockup (matches index summary) */
.mock-results { background: linear-gradient(180deg, #121212 0%, #0f0f0f 100%); border-radius: 8px; border: 1px solid #1c1c1c; overflow: hidden; }
.res-header {
  display: flex; align-items: center; padding: 8px 12px; gap: 12px;
  border-bottom: 1px solid rgba(148,130,201,0.18);
  font-size: 10.5px; color: #777; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600;
}
.res-row {
  display: flex; align-items: center; padding: 10px 12px; gap: 12px;
  min-height: 48px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.res-row:last-child { border-bottom: none; }
.res-row.baseline { background: rgba(148,130,201,0.06); }
.res-rank { color: #666; font-size: 13px; font-weight: 600; width: 24px; text-align: right; flex-shrink: 0; font-family: 'Geist Mono', ui-monospace, monospace; }
.res-info { flex: 1; min-width: 0; }
.res-name { font-weight: 600; color: #c8b8e8; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-meta { font-size: 11px; color: #888; margin-top: 2px; }
.res-dps { font-weight: 600; color: #9482C9; font-size: 15px; width: 84px; text-align: right; flex-shrink: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.res-diff { font-size: 13px; width: 86px; text-align: right; flex-shrink: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.res-diff.positive { color: #00ff88; }
.res-diff.neutral { color: #888; }
.res-header .res-rank, .res-header .res-dps, .res-header .res-diff { color: #777; }

/* Comparison / data tables */
.cmp-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.9rem; }
.cmp-table th, .cmp-table td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.cmp-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: #9482C9; font-weight: 600; border-bottom: 1px solid rgba(148,130,201,0.25); }
.cmp-table td:first-child { color: #e0e0e0; font-weight: 500; white-space: nowrap; }
.cmp-table td { color: #a8a8a8; line-height: 1.5; }
.cmp-table .good { color: #00ff88; font-weight: 600; }
.cmp-table .bad { color: #d6786f; }
.cmp-table-wrap { overflow-x: auto; }

/* Breadcrumb */
.crumbs { font-size: 0.78rem; color: #666; margin-bottom: 1.4rem; }
.crumbs a { color: #888; text-decoration: none; }
.crumbs a:hover { color: #b8a8e0; }
.crumbs span { color: #555; margin: 0 0.35rem; }

/* DPS bar rows (programmatic ranking pages) */
.bar-cell { position: relative; min-width: 160px; }
.bar-fill { height: 14px; border-radius: 3px; background: linear-gradient(90deg, #6d5ba8, #9482C9); box-shadow: 0 1px 4px rgba(148,130,201,0.3); }

/* Guide index cards */
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.6rem 0; }
.guide-card {
  display: block; text-decoration: none;
  border: 1px solid #222; border-radius: 10px;
  background: linear-gradient(180deg, #131313 0%, #0f0f0f 100%);
  padding: 1.2rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 20px -12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
  transition: border-color 0.15s, transform 0.1s;
}
.guide-card:hover { border-color: #9482C9; transform: translateY(-1px); }
/* higher specificity than `.content h3` below, which would otherwise add a 1.6rem top margin inside cards */
.guide-list .guide-card h3 { font-size: 0.98rem; color: #c8b8e8; margin: 0 0 0.4rem; }
.guide-card p { font-size: 0.83rem; color: #8a8a8a; line-height: 1.55; }

/* Section headings inside content (h2) — .divider headings keep their own small-caps style */
.content h2:not(.divider) { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; color: #e6e6e6; }
.content h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: #c8b8e8; }

/* Fixed buttons (matches index) */
.bug-btn { position: fixed; bottom: 1rem; right: 1rem; padding: 0.4rem 0.8rem; font-size: 0.8rem; background: #333; color: #999; border: 1px solid #444; border-radius: 4px; text-decoration: none; z-index: 9999; }
.bug-btn:hover { background: #444; color: #ccc; }
.donate-btn { position: fixed; bottom: 3.4rem; right: 1rem; padding: 0.45rem 0.9rem; font-size: 0.85rem; font-weight: 700; background: #d6322f; color: #fff; border: 1px solid #d6322f; border-radius: 4px; text-decoration: none; z-index: 9999; text-shadow: 0 1px 2px rgba(0,0,0,0.35); animation: donate-glow 2s ease-in-out infinite; transition: background 0.15s, transform 0.15s; }
.donate-btn:hover { background: #c02825; transform: translateY(-2px) scale(1.04); animation-play-state: paused; box-shadow: 0 6px 22px rgba(214,50,47,0.85); }
@keyframes donate-glow {
  0%, 100% { box-shadow: 0 2px 10px rgba(214,50,47,0.5); }
  50% { box-shadow: 0 4px 22px rgba(214,50,47,0.95); }
}

footer { max-width: 820px; margin: 3rem auto 1.5rem; padding: 0 2rem; text-align: center; font-size: 0.7rem; color: #555; }
footer a { color: #777; }
.footer-nav { margin-top: 0.5rem; }
.footer-nav a { margin: 0 0.5rem; }

@media (max-width: 640px) {
  .wrap { padding: 1.5rem 1.1rem; }
  .hero h1 { font-size: 1.7rem; }
  .why-grid { grid-template-columns: 1fr; }
  .mode-selector { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .topbar .brand span { display: none; }
}
