/* ============================================================
   DailySportPick — theme v2
   Page-driven, styles plugin shortcode output
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --coral:        #EF4458;
  --coral-hover:  #E63950;
  --coral-soft:   #FEE7EA;
  --navy:         #142149;
  --navy-2:       #0F1B3D;
  --navy-3:       #1B2C5C;

  --bg:           #F5F5F7;
  --surface:      #FFFFFF;
  --surface-2:    #FAFAFC;
  --surface-3:    #F0F0F4;

  --ink:          #0F172A;
  --ink-2:        #334155;
  --ink-3:        #64748B;
  --ink-4:        #94A3B8;

  --line:         #E5E7EB;
  --line-2:       #D1D5DB;

  --win:          #16A34A;
  --win-soft:     #DCFCE7;
  --loss:         #DC2626;
  --loss-soft:    #FEE2E2;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow:    0 1px 3px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 2px 6px rgba(15,23,42,.06), 0 16px 40px rgba(15,23,42,.10);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 4vw, 28px);
  --maxw: 1240px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.logo__img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; flex: 1; align-items: center; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; position: relative;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active, .nav a.current-menu-item, .nav a.current_page_item { color: var(--coral); }
.nav a.is-active::after, .nav a.current-menu-item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.header-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .15s ease;
}
.header-cta:hover { background: var(--navy-3); }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px; color: var(--ink);
}
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { padding: 8px 14px; font-size: 12px; }
}

/* ============================================================
   Page wrapper — for content-driven homepage
   ============================================================ */
.page-wrap {
  padding: clamp(24px, 4vw, 48px) 0 64px;
}
.page-wrap > .container > h2.wp-block-heading {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--ink);
}
.page-wrap > .container > h2.wp-block-heading:first-child {
  margin-top: 0;
}

/* ============================================================
   PLUGIN OUTPUT — style the bt-* classes from betting-tips plugin
   ============================================================ */

/* Tips grid */
.bt-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}

/* Tip card — the main pick container */
.bt-tip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* Best Bet of the Day banner */
.bt-best-bet {
  border-color: rgba(239, 68, 88, 0.4);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(239, 68, 88, 0.2);
}
.bt-best-banner {
  background: linear-gradient(135deg, var(--coral) 0%, #E63950 100%);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px;
}

/* Tip header (league + status badge) */
.bt-tip-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 0;
  flex-wrap: wrap; gap: 8px;
}
.bt-league {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3);
}
.bt-badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.bt-pending-badge { background: var(--surface-3); color: var(--ink-3); }
.bt-win-badge { background: var(--win-soft); color: var(--win); }
.bt-loss-badge { background: var(--loss-soft); color: var(--loss); }
.bt-half-win-badge { background: #FEF3C7; color: #B45309; }
.bt-half-loss-badge { background: #FEE2E2; color: #991B1B; }
.bt-void-badge { background: var(--surface-3); color: var(--ink-3); }

.bt-kickoff {
  padding: 6px 24px 0;
  font-size: 13px;
  color: var(--ink-3);
}

.bt-tip-body { padding: 16px 24px 20px; }

/* Match teams */
.bt-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 14px 0 18px;
}
.bt-team {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  text-align: center;
}
.bt-team-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface-3);
  padding: 6px;
}
.bt-team-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.bt-vs {
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Pick box — prominent recommendation */
.bt-pick-box {
  background: var(--coral-soft);
  border: 1px solid #fbd5da;
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.bt-pick-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2px;
}
.bt-pick-value {
  font-size: 17px; font-weight: 700;
  color: var(--ink);
}
.bt-odds-badge {
  background: var(--coral);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Reasoning text */
.bt-reasoning {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--ink-4);
  border-radius: var(--r-sm);
}

/* Confidence bar */
.bt-confidence {
  margin: 14px 0;
  display: flex; align-items: center; gap: 12px;
}
.bt-confidence > * { flex-shrink: 0; }
.bt-confidence-bar, .bt-confidence-fill {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  flex: 1;
}
.bt-confidence-fill {
  background: linear-gradient(90deg, var(--win) 0%, #22C55E 100%);
  transition: width 0.6s ease;
}

/* Model breakdown details */
.bt-model-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.bt-model-details summary {
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--coral);
  padding: 6px 0;
  list-style: none;
}
.bt-model-details summary::-webkit-details-marker { display: none; }
.bt-model-details summary::before {
  content: '▶'; display: inline-block;
  margin-right: 8px;
  transition: transform .15s ease;
  font-size: 10px;
}
.bt-model-details[open] summary::before { transform: rotate(90deg); }

/* Model breakdown table */
.bt-model-details table,
table.bt-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
}
.bt-model-details th, .bt-model-details td,
.bt-stats-table th, .bt-stats-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.bt-model-details th, .bt-stats-table th {
  font-weight: 600;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bt-model-details tr:last-child td,
.bt-stats-table tr:last-child td {
  border-bottom: none;
}
.bt-model-details tr.bt-ensemble-row td,
.bt-model-details tr:last-child td {
  font-weight: 700;
  background: var(--surface-2);
}

/* "Most likely scores" chips */
.bt-likely-scores, .bt-score-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0;
}
.bt-score-chip {
  background: var(--navy);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bt-score-chip-secondary {
  background: var(--surface-3);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
}

/* Heatmap */
.bt-heatmap {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}
.bt-heatmap td, .bt-heatmap th {
  padding: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* Stats section */
.bt-stats-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bt-stats-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* H2H section */
.bt-h2h { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bt-h2h-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bt-h2h-list li {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.bt-h2h-list li:nth-child(odd) { background: var(--surface-2); }
.bt-h2h-date { color: var(--ink-3); font-size: 12px; }

/* Form dots */
.bt-form-dots {
  display: inline-flex; gap: 3px;
  margin-top: 4px;
}
.bt-form-dot {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
  color: #fff;
}
.bt-form-w { background: var(--win); }
.bt-form-d { background: var(--ink-4); }
.bt-form-l { background: var(--loss); }

/* ============================================================
   Yesterday's Results
   ============================================================ */
.bt-yesterday-wrap {
  margin: 24px 0;
}
.bt-yesterday-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.bt-yesterday-summary {
  display: flex; gap: 14px;
  font-size: 13px; font-weight: 600;
}
.bt-yday-stat { padding: 4px 10px; border-radius: 999px; }
.bt-yday-win { background: var(--win-soft); color: var(--win); }
.bt-yday-loss { background: var(--loss-soft); color: var(--loss); }
.bt-yesterday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ============================================================
   Stats / streak / archive — generic
   ============================================================ */
.bt-stats-grid, .dsp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.bt-stat-cell {
  text-align: center;
}
.bt-stat-cell strong, .bt-stat-cell .stat-value {
  display: block;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.bt-stat-cell span:first-child, .bt-stat-cell .stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   Newsletter signup (plugin output)
   ============================================================ */
.bt-newsletter, .dsp-newsletter {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bt-newsletter h3, .dsp-newsletter h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700; letter-spacing: -0.02em;
}
.bt-newsletter input[type="email"],
.dsp-newsletter input[type="email"] {
  background: rgba(255,255,255,0.95);
  border: 0;
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 15px;
  width: 100%; max-width: 320px;
  margin-right: 8px;
  font-family: inherit;
}
.bt-newsletter button, .dsp-newsletter button {
  background: var(--coral);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.bt-newsletter button:hover, .dsp-newsletter button:hover { background: var(--coral-hover); }

/* ============================================================
   Bookmakers grid
   ============================================================ */
.dsp-bookmakers, .bt-bookmakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.dsp-bookmaker-card, .bt-bookmaker-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dsp-bookmaker-card:hover, .bt-bookmaker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   Latest analysis grid
   ============================================================ */
.dsp-latest-analysis, .bt-latest-analysis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.dsp-analysis-card, .bt-analysis-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  color: inherit;
}
.dsp-analysis-card:hover, .bt-analysis-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================================
   DSP CTA buttons (social row in page content)
   ============================================================ */
.dsp-cta-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 16px 0;
}
.dsp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .15s ease;
}
.dsp-btn:hover { opacity: 0.9; }
.dsp-btn-telegram  { background: #0088CC; }
.dsp-btn-bluesky   { background: #1185FE; }
.dsp-btn-x         { background: #000; }
.dsp-btn-facebook  { background: #1877F2; }
.dsp-btn-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.dsp-btn-youtube   { background: #FF0000; }
.dsp-btn-linkedin  { background: #0A66C2; }

/* dsp_telegram_cta + dsp_email_cta */
.dsp-telegram-cta, .dsp-email-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer .eyebrow { color: rgba(255,255,255,0.5); margin-bottom: 12px; display: block; }
.site-footer__top {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
}
.site-footer__lede { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; }
.site-footer__age { display: inline-block; margin-top: 8px; padding: 6px 10px; background: rgba(255,255,255,0.08); border-radius: 6px; font-size: 12px; }
.logo--footer { color: white; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer__cols ul { list-style: none; padding: 0; margin: 0; }
.site-footer__cols li { margin: 6px 0; }
.site-footer__cols a { color: rgba(255,255,255,0.85); font-size: 14px; }
.site-footer__cols a:hover { color: white; }
.site-footer__bottom {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 8px;
}
.site-footer__bookmakers-disclaimer {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  font-size: 12px; color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Single posts / pages (analysis articles)
   ============================================================ */
.container--narrow { max-width: 760px; }
.section--single { padding-block: 48px; }
.post__head { margin-bottom: 24px; }
.post__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.post__meta {
  color: var(--ink-3);
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.post__thumb { margin: 24px 0 32px; border-radius: var(--r-lg); overflow: hidden; }
.post__thumb img { width: 100%; height: auto; display: block; }
.post__body { font-size: 16px; line-height: 1.7; }
.post__body p { margin: 0 0 1em; }
.post__body h2, .post__body h3 { margin: 1.6em 0 0.6em; letter-spacing: -0.01em; }
.post__body img { max-width: 100%; height: auto; border-radius: var(--r); margin: 1em 0; }
.post__body a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Hide leftover Astra theme + admin plugin output that hooks wp_footer
   ============================================================ */
body > .footer-widgets,
body > .ast-builder-grid-row-container,
body > .site-below-footer-wrap,
body > #colophon,
body > footer:not(.site-footer),
body > .ast-footer,
.dsp-extra-footer,
#colophon { display: none !important; }
