﻿/* ============================================================
   PUND123.BET — Sports / Live / Racing page styles
   ============================================================ */

/* ---- Page hero ----------------------------------------- */
.sports-hero {
  position: relative;
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0 clamp(var(--sp-8), 4vw, var(--sp-12));
  overflow: hidden;
  background: var(--c-bg-alt);
}
.sports-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-gold) 0%, transparent 60%);
}
.sports-hero__deco {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(6rem, 18vw, 20rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-border);
  user-select: none;
  pointer-events: none;
}

/* ---- Sport sections (accordion-like) ------------------- */
.sport-section-block {
  margin-bottom: var(--sp-8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sport-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  width: 100%;
  text-align: left;
}
.sport-section-header:hover { background: var(--c-surface-2); }

.sport-section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--t-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sport-section-title .material-symbols-outlined {
  width: 20px;
  height: 20px;
  color: var(--c-gold);
}
.sport-section-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.sport-section-chevron {
  width: 18px; height: 18px;
  color: var(--c-muted);
  transition: transform var(--t-fast) var(--ease);
}
.sport-section-block.open .sport-section-chevron {
  transform: rotate(180deg);
}
.sport-section-body {
  background: var(--c-bg-alt);
}
.sport-section-body[hidden] { display: none; }

/* ---- Event list header ---------------------------------- */
.event-list-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}
.event-list-head__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  font-weight: 600;
}
.event-list-head__markets {
  display: flex;
  gap: var(--sp-2);
}
.market-label {
  width: 60px;
  text-align: center;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
}

/* ---- Live page ----------------------------------------- */
.live-hero {
  padding: clamp(var(--sp-12), 5vw, var(--sp-20)) 0 var(--sp-8);
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
}
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-live-dim);
  border: 1px solid var(--c-live);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-live);
  margin-bottom: var(--sp-5);
}
.live-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-fast);
}
.live-card:hover { border-color: var(--c-live); }
.live-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}
.live-card__sport {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
}
.live-card__time {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--c-live);
  font-weight: 700;
}
.live-card__body {
  padding: var(--sp-5);
}
.live-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.live-team {
  font-family: var(--font-head);
  font-size: clamp(var(--t-lg), 2.5vw, var(--t-2xl));
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}
.live-team--away { text-align: right; }
.live-score-wrap {
  text-align: center;
}
.live-score {
  font-family: var(--font-mono);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.live-score-period {
  font-size: var(--t-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-1);
}
.live-markets {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.live-markets .odds-btn { flex: 1; min-width: 70px; }

/* ---- Racing page --------------------------------------- */
.race-venue-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.race-venue-tabs::-webkit-scrollbar { display: none; }
.race-venue-tab {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: var(--t-base);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-muted);
  cursor: pointer;
  min-height: 44px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.race-venue-tab:hover { color: var(--c-text); }
.race-venue-tab.active {
  color: var(--c-gold);
  border-color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* NTJ strip */
.ntj-strip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
.ntj-label {
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  flex-shrink: 0;
}
.ntj-race {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-sm);
}
.ntj-venue {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--t-base);
}
.ntj-countdown {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--c-live);
  font-weight: 700;
}
.ntj-sep { color: var(--c-border-2); }

/* Full race table */
.race-full-table {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.race-full-header {
  display: grid;
  grid-template-columns: 32px 1fr 100px 80px 80px 80px;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
}
.race-runner-row {
  display: grid;
  grid-template-columns: 32px 1fr 100px 80px 80px 80px;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.race-runner-row:last-child { border-bottom: none; }
.race-runner-row:hover { background: var(--c-surface-2); }
.runner-barrier {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--c-muted);
  text-align: center;
}
.runner-info .runner-name { margin-bottom: 2px; }
.runner-silk {
  font-size: var(--t-xs);
  color: var(--c-muted);
}
.runner-weight {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--c-text-2);
  text-align: center;
}
