/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --navy: #1a2744;
  --green: #3ecf6e;
  --green-dark: #2ba854;
  --blue: #0d47a1;
  --blue-light: #e8f1fc;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --red: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w: 1280px;
}

html { font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── PROMO BANNER ── */
.promo-banner {
  background: #1a3a6b;
  padding: 10px 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.promo-banner-left { display: flex; align-items: center; gap: 12px; }
.promo-check { width: 28px; height: 28px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-check svg { width: 16px; height: 16px; }
.promo-text { font-size: 14px; font-weight: 600; color: #fff; }
.promo-sub { font-size: 12px; color: rgba(255,255,255,.7); max-width: 480px; }
.promo-cta { background: var(--white); color: var(--navy); padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; transition: opacity .15s; }
.promo-cta:hover { opacity: .85; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem; height: 58px;
  display: flex; align-items: center; gap: 2rem;
}
.site-logo {
  font-size: 22px; font-weight: 900; color: var(--black);
  letter-spacing: -.04em; display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.logo-badge { width: 22px; height: 22px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.logo-badge svg { width: 12px; height: 12px; }

/* ── MAIN NAV ── */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px; height: 58px;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: none; border: none; cursor: pointer;
  transition: color .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link .pro-badge { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 3px; margin-left: 4px; letter-spacing: .03em; }
.nav-ctas { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-app { background: var(--green); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: background .15s; }
.btn-app:hover { background: var(--green-dark); }
.btn-pro { background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; transition: background .15s; }
.btn-pro:hover { background: #1558b0; }
.btn-signin { font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 12px; transition: color .15s; }
.btn-signin:hover { color: var(--blue); }
.header-search { width: 36px; height: 36px; border-radius: 50%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute; top: 58px; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 220px; overflow: hidden; z-index: 300;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--bg); }
.nav-dropdown a svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* ── SUB NAV (scrollable tabs) ── */
.sub-nav-wrap { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sub-nav-wrap::-webkit-scrollbar { display: none; }
.sub-nav { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 0; white-space: nowrap; }
.sub-nav a {
  display: inline-flex; align-items: center;
  padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .15s;
}
.sub-nav a:hover { color: var(--text); }
.sub-nav a.active { color: var(--text); border-bottom-color: var(--green); font-weight: 600; }

/* ── LAYOUT ── */
.site-content { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* ── ARTICLE CARDS ── */
.article-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow .15s;
}
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.article-card + .article-card { margin-top: 16px; }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card-body { padding: 1rem 1.25rem 1.25rem; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sport-tag { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.article-author { font-size: 12px; color: var(--muted); }
.article-card h2 { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text); }
.article-card h2 a:hover { color: var(--blue); }
.article-excerpt { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sidebar-box-title { font-size: 13px; font-weight: 700; color: var(--text); padding: 14px 16px 0; text-transform: uppercase; letter-spacing: .06em; }
.bookie-list { padding: 10px 0; }
.bookie-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.bookie-item:last-child { border-bottom: none; }
.bookie-item:hover { background: var(--bg); }
.bookie-logo { width: 32px; height: 32px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.bookie-name { font-size: 13px; font-weight: 600; color: var(--text); }
.bookie-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green-dark); background: #dcfce7; padding: 2px 8px; border-radius: 99px; }

/* ── ODDS TABLE ── */
.odds-table-wrap { overflow-x: auto; }
.odds-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.odds-table th { background: var(--bg); padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.odds-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.odds-table tr:last-child td { border-bottom: none; }
.odds-table tr:hover td { background: var(--bg); }
.team-cell { display: flex; align-items: center; gap: 10px; }
.team-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.team-name { font-weight: 600; font-size: 14px; }
.team-record { font-size: 11px; color: var(--muted); }
.odd-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--bg); border: 1px solid var(--border); color: var(--text); transition: background .1s; cursor: pointer; }
.odd-pill:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.odd-pill.fav { color: var(--red); }
.live-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--red); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── PAGE HEADER ── */
.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.page-hero p { font-size: 15px; color: var(--muted); max-width: 600px; }
.page-hero .breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.page-hero .breadcrumb a { color: var(--blue); }

/* ── WIDGET (sidebar) ── */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.widget-title { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 1.5rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.03em; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.35); max-width: 700px; line-height: 1.6; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.4); }

/* ── ENTRY CONTENT (pages) ── */
.entry-content { font-size: 15px; line-height: 1.75; color: var(--text); }
.entry-content h2 { font-size: 22px; font-weight: 700; margin: 2rem 0 .75rem; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 1.5rem 0 .5rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content strong { font-weight: 700; }
.entry-content a { color: var(--blue); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-ctas .btn-app { display: none; }
}
@media (max-width: 640px) {
  .header-inner { gap: 1rem; }
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ── CUSTOM LOGO ── */
.site-logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-wrap .custom-logo-link { display: flex; align-items: center; }
.site-logo-wrap .custom-logo { height: 50px; width: auto; display: block; filter: invert(1); }
.site-logo-text-link { text-decoration: none; }
.site-logo-text { font-size: 18px; font-weight: 700; color: var(--black); letter-spacing: -.02em; }

/* ── NESTED SPORTS DROPDOWN ── */
.nav-dropdown-sports { min-width: 220px; padding: 4px 0; }

/* Each sport row */
.nav-sub-item { position: relative; }
.nav-sub-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; font-size: 14px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background .1s;
  text-decoration: none; cursor: pointer; gap: 8px;
}
.nav-sub-trigger:hover { background: var(--bg); color: var(--blue); }
.sub-arrow { font-size: 13px; color: var(--muted); flex-shrink: 0; }

/* Flyout sub-dropdown — appears to the RIGHT */
.nav-sub-dropdown {
  display: none;
  position: absolute;
  top: -4px;
  left: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 210px;
  z-index: 500;
  padding: 4px 0;
}
.nav-sub-item:hover > .nav-sub-dropdown { display: block; }
.nav-sub-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background .1s; white-space: nowrap;
}
.nav-sub-dropdown a:last-child { border-bottom: none; }
.nav-sub-dropdown a:hover { background: var(--bg); color: var(--blue); }

/* UFC direct link (no sub-dropdown) */
.nav-direct {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none; transition: background .1s;
}
.nav-direct:hover { background: var(--bg); color: var(--blue); }
