/* DotaFeed.com - shared styles */
:root {
  --bg: #0a0c11;
  --bg-2: #0e1118;
  --surface: #131722;
  --surface-2: #191e2b;
  --surface-3: #212737;
  --border: #252c3d;
  --border-2: #323a50;
  --text: #e8ebf2;
  --text-2: #b4bbcb;
  --dim: #7b8499;
  --faint: #4e566b;

  --gold: #f2b134;
  --gold-soft: rgba(242, 177, 52, 0.14);
  --ally: #2fd5b5;
  --ally-soft: rgba(47, 213, 181, 0.14);
  --enemy: #ff6b5e;
  --enemy-soft: rgba(255, 107, 94, 0.14);
  --good: #4ade80;
  --bad: #ff6b5e;

  --str: #e5484d;
  --agi: #46b35e;
  --int: #3e9be0;
  --all: #a47be3;

  --g-control: #5aa9ff;
  --g-damage: #ff7a6b;
  --g-protection: #3ddc97;
  --g-map: #f2b134;
  --g-tempo: #c08cff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-display: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(47, 213, 181, 0.07), transparent 60%),
    radial-gradient(1000px 500px at 95% -5%, rgba(255, 107, 94, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 24px;
  background: rgba(10, 12, 17, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.2px; text-decoration: none; white-space: nowrap;
}
.logo .f { color: var(--enemy); }
.logo .tld { color: var(--ally); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--dim);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--bg); background: var(--gold); }
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; color: var(--dim);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-drop-btn:hover, .nav-drop:focus-within .nav-drop-btn { color: var(--text); background: var(--surface-2); }
.nav-drop.active .nav-drop-btn { color: var(--bg); background: var(--gold); }
.nav-drop-btn svg { transition: transform .15s; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; z-index: 60; min-width: 250px;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: block; }
.nav .nav-menu a {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 0;
  background: var(--surface); border: 1px solid var(--border-2); border-top-width: 0;
  text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--text-2);
}
.nav .nav-menu a:first-child { border-top-width: 1px; border-radius: 10px 10px 0 0; }
.nav .nav-menu a:last-child { border-radius: 0 0 10px 10px; }
.nav .nav-menu a b { font-family: var(--font-display); font-size: 14px; color: var(--text); letter-spacing: .3px; }
.nav .nav-menu a span { font-size: 12px; color: var(--dim); }
.nav .nav-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav .nav-menu a.on { background: var(--gold-soft); }
.nav .nav-menu a.on b { color: var(--gold); }
.header-meta {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  color: var(--dim); font-size: 12px; white-space: nowrap;
}
.data-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface);
}
.data-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* ---------- layout ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 22px 24px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1;
  letter-spacing: 0.2px;
}
.page-head h1 em { font-style: normal; color: var(--gold); }
.page-head p { color: var(--text-2); max-width: 720px; margin-top: 6px; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim);
  margin-bottom: 12px;
}
.card-title .hint { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--faint); }

/* ---------- chips / buttons ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 500;
  transition: all .15s;
}
.chip:hover { border-color: var(--dim); color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all .15s;
}
.btn:hover { color: var(--text); border-color: var(--dim); }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface); min-width: 200px;
}
.search input { background: none; border: 0; outline: none; width: 100%; font-size: 13px; }
.search svg { color: var(--dim); flex: none; }

/* ---------- attribute dots ---------- */
.attr-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.attr-str { background: var(--str); } .attr-agi { background: var(--agi); }
.attr-int { background: var(--int); } .attr-all { background: var(--all); }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 100; pointer-events: none;
  background: rgba(19, 23, 34, 0.97); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text-2); max-width: 280px;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.show { opacity: 1; transform: none; }
.tip b { color: var(--text); }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1440px; margin: 0 auto; padding: 20px 24px 40px;
  color: var(--faint); font-size: 12px; border-top: 1px solid var(--border);
}

.loading { padding: 80px 0; text-align: center; color: var(--dim); }
.error { padding: 40px; text-align: center; color: var(--bad); }

@media (max-width: 760px) {
  .site-header { gap: 14px; padding: 0 16px; }
  .header-meta { display: none; }
  .nav a, .nav-drop-btn { padding: 7px 10px; font-size: 12.5px; }
  .nav-menu { left: auto; right: -40px; }
  .page { padding: 16px 16px 48px; }
  .page-head h1 { font-size: 24px; }
  .logo { font-size: 18px; }
}

/* ---------- footer links ---------- */
.footer-links { display: flex; gap: 16px; margin-top: 8px; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(19, 23, 34, 0.98); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  font-size: 13px; color: var(--text-2);
}
.consent b { color: var(--text); }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-gold:hover { color: var(--bg); filter: brightness(1.08); }
body.has-ad .consent { bottom: 112px; }

/* ---------- sticky ad bar ---------- */
.ad-bar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 5px 40px; min-height: 100px;
  background: rgba(10, 12, 17, 0.94); border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.ad-label { position: absolute; left: 12px; top: 6px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.ad-box { max-width: 100%; overflow: hidden; }
.ad-preview {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-2); border-radius: 6px; color: var(--faint); font-size: 12px;
}
.ad-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1;
  color: var(--dim); background: var(--surface-2); border: 1px solid var(--border);
}
.ad-close:hover { color: var(--text); }
body.has-ad { padding-bottom: 100px; }

/* ---------- privacy page ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.15; margin-bottom: 6px; }
.prose .updated { color: var(--dim); margin-bottom: 22px; }
.prose h2 { font-family: var(--font-display); font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 10px; }
.prose ul { padding-left: 20px; margin-bottom: 10px; }
.prose a { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 760px) {
  .consent { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .consent-actions { justify-content: flex-end; }
  .ad-bar { min-height: 60px; padding: 5px 36px; }
  .ad-label { top: 4px; left: 8px; }
  body.has-ad { padding-bottom: 60px; }
  body.has-ad .consent { bottom: 70px; }
}
