/* faro — sistema de design
   Paleta vívida: azul + verde + negros + grises. Sin pastel, sin gradientes.
   Fuente: Geist + Geist Mono.
*/

:root {
  /* color — modo claro */
  --blue: #0E5FFF;
  --blue-hover: #0A4FE0;
  --blue-soft: #E7EFFF;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --red: #DC2626;
  --red-soft: #FEE2E2;

  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-3: #F5F5F5;
  --line: #E5E5E5;
  --line-strong: #D4D4D4;
  --text: #0A0A0A;
  --text-2: #404040;
  --text-3: #737373;
  --text-4: #A3A3A3;

  /* tipografia */
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* escala */
  --t-hero: 56px;
  --t-h1: 40px;
  --t-h2: 28px;
  --t-h3: 20px;
  --t-body: 15px;
  --t-small: 13px;
  --t-micro: 11px;

  /* espaco */
  --rad: 6px;
  --rad-sm: 4px;
  --shell: 1280px;
}

html[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: #1F1F1F;
  --line-strong: #2A2A2A;
  --text: #FAFAFA;
  --text-2: #D4D4D4;
  --text-3: #A3A3A3;
  --text-4: #525252;
  --blue-soft: #0F1F3D;
  --green-soft: #052E16;
  --red-soft: #3F1212;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }

.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero"; }
.num { font-family: var(--mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ============ shell ============ */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .shell { padding: 0 16px; } }

/* ============ compliance bar 18+ ============ */
.compliance {
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 6px 12px;
}
.compliance .pill {
  display: inline-block;
  border: 1px solid var(--bg);
  padding: 0 4px;
  margin-right: 8px;
  border-radius: 2px;
}
.compliance a { text-decoration: underline; }

/* ============ header ============ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-row {
  display: flex; align-items: center; gap: 32px;
  height: 60px;
}
.hdr-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hdr-logo .mark { width: 22px; height: 22px; color: var(--blue); }
.hdr-logo .wm {
  font-family: var(--sans); font-weight: 600;
  font-size: 19px; letter-spacing: -0.04em;
  color: var(--text);
}
.hdr-logo .wm-ter { font-weight: 400; color: var(--text-3); }
.hdr-nav { display: flex; gap: 22px; flex: 1; }
.hdr-nav a {
  font-size: 14px; color: var(--text-2);
  padding: 4px 0; position: relative;
}
.hdr-nav a:hover { color: var(--text); }
.hdr-nav a.active { color: var(--text); }
.hdr-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 2px; background: var(--blue);
}

/* leagues dropdown */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0; padding: 4px 0;
  font-size: 14px; color: var(--text-2); font-family: var(--sans);
}
.nav-drop-trigger:hover { color: var(--text); }
.nav-drop.open .nav-drop-trigger { color: var(--text); }
.nav-drop.open .nav-drop-trigger svg { transform: rotate(180deg); }
.nav-drop-trigger svg { transition: transform 0.15s; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 14px); left: -16px;
  width: 320px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--rad);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
  padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
html[data-theme="dark"] .nav-drop-panel { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6); }
.nav-drop.open .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3);
  padding: 8px 10px 6px;
}
.nav-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--rad-sm);
  font-size: 14px;
}
.nav-drop-item:hover { background: var(--bg-2); color: var(--text); }
.nav-drop-item .ndi-text { flex: 1; display: flex; flex-direction: column; }
.nav-drop-item .ndi-nm { font-weight: 500; }
.nav-drop-item .ndi-co { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.04em; }
.nav-drop-item .ndi-live {
  font-family: var(--mono); font-size: 10px; color: var(--green);
  display: flex; align-items: center; gap: 4px;
}
.nav-drop-item .ndi-live::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--green); }
.nav-drop-item .ndi-soon { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.nav-drop-foot {
  display: block; margin-top: 4px; padding: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.nav-drop-foot:hover { color: var(--blue); }

/* crest badges (shared) */
.crest {
  width: 18px; height: 18px; background: var(--text);
  color: var(--bg); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 500; flex-shrink: 0;
}
.crest-bra { background: #009b3a; color: #fff; }
.crest-nba { background: #1d428a; color: #fff; }
.crest-uef { background: #00337a; color: #fff; }
.crest-cdb { background: #fdd000; color: #000; }
.crest-nfl { background: #013369; color: #fff; }
.crest-sul { background: #fff; color: #000; border: 1px solid var(--line-strong); }

/* drawer extras */
.drawer-section {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3);
  padding: 18px 0 4px; margin-top: 8px;
}
.drawer-league {
  display: flex !important; align-items: center; gap: 10px;
  font-size: 16px !important; padding: 10px 0 !important;
}
.drawer-league .crest { width: 20px; height: 20px; }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--rad-sm); color: var(--text-2);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 14px; height: 14px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-row { gap: 12px; }
}

/* ============ footer ============ */
.ftr { border-top: 1px solid var(--line); margin-top: 80px; padding: 56px 0 32px; background: var(--bg-2); }
.ftr-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.ftr h4 {
  font-size: var(--t-micro); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr a { font-size: 13px; color: var(--text-2); }
.ftr-brand p { font-size: 13px; color: var(--text-3); max-width: 320px; line-height: 1.55; margin: 12px 0 0; }
.ftr-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: var(--t-micro); color: var(--text-3);
  flex-wrap: wrap;
}
.responsavel {
  border: 1px solid var(--line);
  padding: 16px; border-radius: var(--rad);
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  margin-top: 24px; background: var(--bg);
}
.responsavel strong { color: var(--text); font-weight: 500; }
@media (max-width: 800px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ============ utility ============ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.02em; line-height: 1.8;
}
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-ghost { background: var(--bg-3); color: var(--text-2); }
.pill-dot::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor; display: inline-block; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--rad-sm);
  font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--rad); }
.divider { height: 1px; background: var(--line); margin: 32px 0; border: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* ============ team badge ============ */
.team {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.team-badge {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); flex-shrink: 0;
}
.team-badge.lg { width: 60px; height: 60px; font-size: 16px; }
.team-badge.xl { width: 96px; height: 96px; font-size: 22px; border-width: 1.5px; }
/* team color hints — variar background sutil */
.tb-fla { background: #fff; color: #000; border-color: #000; }
.tb-pal { background: #003c1f; color: #fff; border-color: #003c1f; }
.tb-cor { background: #000; color: #fff; border-color: #000; }
.tb-flu { background: #7f1410; color: #fff; border-color: #7f1410; }
.tb-cap { background: #f00; color: #fff; border-color: #f00; }
.tb-int { background: #b41616; color: #fff; border-color: #b41616; }
.tb-vas { background: #000; color: #fff; border-color: #000; }
.tb-gre { background: #0d6b3a; color: #fff; border-color: #0d6b3a; }
.tb-bot { background: #000; color: #fff; border-color: #000; }
.tb-sao { background: #c8102e; color: #fff; border-color: #c8102e; }
.tb-bah { background: #003876; color: #fff; border-color: #003876; }
.tb-atm { background: #cf0a2c; color: #fff; border-color: #cf0a2c; }

/* ============ stacked probability bar ============ */
.probbar {
  display: flex; height: 28px; border-radius: var(--rad-sm);
  overflow: hidden; font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--line);
}
.probbar > div {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; min-width: 0; padding: 0 6px;
}
.probbar .p-home { background: var(--blue); }
.probbar .p-draw { background: #404040; }
.probbar .p-away { background: var(--text-3); color: #fff; }

/* ============ table ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th {
  font-family: var(--mono); font-weight: 400;
  font-size: var(--t-micro); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}
.tbl td.num { font-family: var(--mono); font-feature-settings: "tnum"; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-2); }
.tbl-compact th, .tbl-compact td { padding: 8px 10px; font-size: 13px; }

/* ============ section ============ */
.sec { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-title { font-size: var(--t-h2); letter-spacing: -0.025em; }
.sec-sub { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.sec-link { font-size: 13px; color: var(--text-2); font-family: var(--mono); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sec-link:hover { color: var(--blue); border-color: var(--blue); }

/* ============ stat tiles ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden;
  background: var(--bg);
}
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--mono); font-size: 28px;
  font-feature-settings: "tnum"; letter-spacing: -0.01em;
  color: var(--text); line-height: 1.1;
}
.stat-delta { font-family: var(--mono); font-size: 12px; margin-top: 6px; color: var(--text-3); }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ chart container ============ */
.chart { width: 100%; height: auto; display: block; }

/* ============ palpite card ============ */
.palpite {
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: 20px; background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
}
.palpite-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.palpite-comp { font-family: var(--mono); font-size: var(--t-micro); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.palpite-teams { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.palpite-vs { color: var(--text-4); font-family: var(--mono); font-size: 12px; }
.palpite-pick {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--rad-sm);
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.palpite-pick-label { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.palpite-pick-name { font-weight: 500; font-size: 15px; }
.palpite-odds { font-family: var(--mono); font-size: 20px; font-feature-settings: "tnum"; }
.palpite-meta { display: flex; gap: 16px; font-family: var(--mono); font-size: var(--t-micro); color: var(--text-3); }
.palpite-meta span strong { color: var(--text); font-weight: 500; }
.disclaimer { font-size: var(--t-micro); color: var(--text-4); font-family: var(--mono); line-height: 1.5; }

/* ============ mobile menu drawer ============ */
.drawer {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 100; padding: 24px; display: none;
  flex-direction: column; gap: 8px;
}
.drawer.open { display: flex; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer a { font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }

/* ============ misc helpers ============ */
.muted { color: var(--text-3); }
.strong { color: var(--text); font-weight: 500; }
.tight { letter-spacing: -0.02em; }
.up { color: var(--green); }
.down { color: var(--red); }
.fw500 { font-weight: 500; }

.tag {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.04em; color: var(--text-3);
  border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 3px;
  display: inline-block;
}

/* ============ image placeholder ============ */
.ph {
  position: relative; background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--mono); font-size: 10px;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 2px 6px; border-radius: 2px; letter-spacing: 0.04em;
  pointer-events: none;
}
