/* Home page — betbunker-homepage 0:3 / betbunker-mobile-home 0:3585.
 * Section-by-section, numbers from fig-spec. Shared display styles live here
 * because the inner pages reuse them (loaded via pages/home.css only on home;
 * the pieces the other pages need were promoted to components.css). */

/* ── shared display headings ──────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text-dark);
}
.display--72 { font-size: 72px; line-height: 108.39px; }   /* Figma 100% = Anton natural leading */
.display--80 { font-size: 80px; line-height: 80px; }
.display--90 { font-size: 90px; line-height: 90px; display: flex; flex-direction: column; gap: var(--space-8); }
.section--dark .display,
.sec--dark .display { color: var(--color-text); }   /* white on the dark band (0:384) */
.display--light { color: var(--color-border-light); }
.display--brand { color: var(--color-brand); }

.link-arrow {
  font-weight: 800; font-size: var(--fs-small); line-height: 19px;
  color: var(--color-brand); text-decoration: none;
  position: relative; white-space: nowrap;
}
.link-arrow::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 24px; }
.link-arrow:hover { text-decoration: underline; }

/* ── hero — 0:28 ──────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad-brand);
  padding-block: var(--space-64);
}
/* the mockup's 520×520 wash behind the photo — 8% red, clipped by the hero (0:29) */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  right: -120px; top: 120px; width: 520px; height: 520px;
  background: var(--color-brand); opacity: .08;
}
.hero__inner { display: flex; align-items: center; gap: var(--space-24); position: relative; }
.hero__left { flex: 0 1 672px; display: flex; flex-direction: column; gap: var(--space-24); }
.hero__headline { display: flex; flex-direction: column; gap: var(--space-12); }
.hero__line {
  font-family: var(--font-display);
  font-size: 80px; line-height: 72px;
  text-transform: uppercase; color: var(--color-text);
}
.hero__line--xl { font-size: 120px; line-height: 108px; }
.hero__line--brand { color: var(--color-brand); }
.hero__lead { font-size: var(--fs-body); line-height: 24px; color: var(--color-muted); max-width: 672px; }
.hero__cta { align-self: flex-start; min-height: 48px; padding: 0 18px; font-size: var(--fs-body-sm); }

.hero__media { position: relative; flex: 0 1 544px; }
.hero__media img { width: 100%; height: 520px; object-fit: cover; }
/* Per-page hero geometry from fig-spec: sports 0:363 pads 64/36, racing 0:2891
   pads 50 with a 560-tall image. */
.hero--sports { padding-bottom: 36px; }
.hero--racing { padding-block: 50px; }
.hero--racing .hero__media img { height: 560px; }
/* 360×360 accent wash, 120 past the image corner and clipped by it (0:41) */
.hero__media { position: relative; overflow: hidden; }
.hero__frame {
  position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px; background: var(--color-brand); opacity: .08;
}

/* ── upcoming markets — 0:42 ──────────────────────────────────────────── */
.markets__header { display: flex; flex-direction: column; gap: var(--space-12); margin-bottom: 40px; }
.markets__body { display: flex; align-items: flex-start; gap: var(--space-24); }

.market-table { flex: 0 1 768px; min-width: 0; background: var(--color-text); }
.market-table__filters { display: flex; gap: var(--space-8); padding: var(--space-16); }
.filter {
  flex: 1 1 240px; min-height: 32px; padding: 0 var(--space-12);
  border: 0; border-radius: 0; cursor: pointer;
  background: var(--color-text); color: var(--color-text-dark);
  box-shadow: inset 0 0 0 1px var(--color-text-dark);
  font-weight: 800; font-size: var(--fs-xs); line-height: 18px;
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.filter:hover { background: var(--color-light); }
.filter.is-active { background: var(--color-brand); color: var(--color-text); box-shadow: none; }

.market-table__rows { display: flex; flex-direction: column; }
.event {
  display: flex; align-items: center; gap: var(--space-16);
  min-height: 81px;                      /* 80 row + the 1px divider the mockup draws above it */
  padding: var(--space-8) var(--space-16);   /* 8px so a two-line fixture still fits 80 */
  border-top: 1px solid var(--color-border-light);
  background: var(--color-text); color: var(--color-text-dark);
  transition: background-color var(--dur-fast) var(--ease);
}
.event:hover { background: var(--color-light); }
.event__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.event__league { font-size: var(--fs-2xs); line-height: 16px; color: var(--color-muted-dark); }
.event__name { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body); line-height: 22px; color: var(--color-text-dark); }
.event__market { flex: 0 0 140px; font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted-dark); }
.event__odds { flex: 0 0 220px; display: flex; gap: var(--space-8); }
.odds {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 40px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--color-text); color: var(--color-text-dark);
  box-shadow: inset 0 0 0 1px var(--color-border-light);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.odds:hover { box-shadow: inset 0 0 0 1px var(--color-brand); }
.odds.is-selected { background: var(--color-brand); color: var(--color-text); box-shadow: none; }
.odds__name { font-weight: 800; font-size: var(--fs-2xs); line-height: 16px; }
.odds__price { font-weight: 800; font-size: var(--fs-small); line-height: 19px; }
.market-table__empty { padding: var(--space-24) var(--space-16); color: var(--color-muted-dark); font-size: var(--fs-small); }

/* ── bet slip — 0:123 ─────────────────────────────────────────────────── */
.bet-slip {
  flex: 0 0 var(--slip-w, 488px); min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-20);
  background: var(--color-bg); color: var(--color-border-light);
}
.bet-slip__top { display: flex; flex-direction: column; gap: var(--space-6); }
.bet-slip__top > [data-slip-selection] { display: flex; flex-direction: column; gap: var(--space-6); }
.bet-slip__title {
  display: flex; align-items: center; gap: var(--space-10);
  font-weight: 800; font-size: var(--fs-body); line-height: 22px; color: var(--color-border-light);
}
.bet-slip__count {
  padding: var(--space-4) var(--space-10);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-weight: 800; font-size: var(--fs-2xs); line-height: 16px; color: var(--color-brand);
}
.bet-slip__event { font-weight: 800; font-size: var(--fs-small); line-height: 19px; color: var(--color-border-light); }
.bet-slip__market { font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted); }
.bet-slip__price { font-weight: 800; font-size: var(--fs-body); line-height: 22px; color: var(--color-border-light); }
.bet-slip__empty { font-size: var(--fs-xs); line-height: 20px; color: var(--color-muted); }
.bet-slip__rule { height: 1px; border: 0; margin: 0; background: var(--color-border); }

.bet-slip__stake { display: flex; flex-direction: column; gap: var(--space-12); }
.bet-slip__label { font-weight: 700; font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted); }
.bet-slip__input {
  display: flex; align-items: center; gap: var(--space-12);
  min-height: 44px; padding: 0 var(--space-12);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-size: var(--fs-xs); color: var(--color-muted);
}
.bet-slip__input input {
  flex: 1; min-width: 0; border: 0; background: none; box-shadow: none;
  text-align: right; font-weight: 800; font-size: var(--fs-body); line-height: 22px;
  color: var(--color-border-light);
}
.bet-slip__input:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.bet-slip__quick { display: flex; gap: var(--space-8); }
.bet-slip__quick button {
  flex: 1; min-height: 36px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--color-bg); color: var(--color-border-light);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-weight: 800; font-size: var(--fs-xs); line-height: 18px;
  transition: box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.bet-slip__quick button:hover { box-shadow: inset 0 0 0 1px var(--color-brand); color: var(--color-brand); }

.bet-slip__totals { display: flex; flex-direction: column; gap: var(--space-12); }
.bet-slip__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-16); }
.bet-slip__rowlabel { font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted); }
.bet-slip__row--return .bet-slip__rowlabel { font-weight: 800; color: var(--color-border-light); }
.bet-slip__rowvalue { font-weight: 800; font-size: var(--fs-small); line-height: 19px; color: var(--color-border-light); }
.bet-slip__rowvalue--brand { font-size: var(--fs-h5); line-height: 25px; color: var(--color-brand); }
.bet-slip__place { align-self: flex-start; min-height: 44px; padding: 0 18px; font-size: var(--fs-body-sm); }
.bet-slip__note { font-size: var(--fs-2xs); line-height: 18px; color: var(--color-muted); }

/* ── next to jump — 0:156 ─────────────────────────────────────────────── */
.racing__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-24); }
.racing__header > div { padding-top: 3px; }   /* the mockup offsets the title block by 3px */
.racing__header .eyebrow { margin-bottom: var(--space-8); }
.racing__body { display: flex; align-items: flex-start; gap: var(--space-24); margin-top: 48px; }
.racing__media { position: relative; flex: 0 1 544px; }
.racing__media img { width: 100%; height: 560px; object-fit: cover; }
.racing__media { overflow: hidden; }
.racing__frame {
  position: absolute; right: -120px; bottom: -120px;
  width: 300px; height: 300px; background: var(--color-brand); opacity: .08;
}
.schedule { flex: 0 1 672px; min-width: 0; background: var(--color-bg); }
.schedule__row {
  display: flex; align-items: center; gap: var(--space-12);
  padding: 14px var(--space-16);
  border-top: 1px solid var(--color-border);
  transition: background-color var(--dur-fast) var(--ease);
}
.schedule__row:first-child { border-top: 0; }
.schedule__row:hover { background: var(--color-surface); }
.schedule__no {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  background: var(--color-brand); color: var(--color-text);
  font-family: var(--font-display); font-size: var(--fs-h5); line-height: 27px;
}
.schedule__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.schedule__code { font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted); }
.schedule__track { font-weight: 800; font-size: var(--fs-body); line-height: 22px; color: var(--color-border-light); }
.schedule__time { font-weight: 800; font-size: var(--fs-small); line-height: 19px; color: var(--color-brand); }
.schedule__link {
  position: relative;
  font-weight: 800; font-size: var(--fs-xs); line-height: 18px;
  color: var(--color-brand); text-decoration: none; white-space: nowrap;
}
.schedule__link::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 24px; }
.schedule__link:hover { text-decoration: underline; }

/* ── find your competition — 0:201 ────────────────────────────────────── */
.competitions__header .eyebrow { margin-bottom: var(--space-8); }
.competitions__body { display: flex; align-items: flex-start; gap: var(--space-24); margin-top: 40px; }
.competitions__index { flex: 0 1 672px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); }
.competitions__lead { font-size: var(--fs-small); line-height: 19px; color: var(--color-muted-dark); }
.comp-list { display: flex; flex-direction: column; }
.comp-list__item { border-top: 1px solid var(--color-border-light); }
.comp-list__item:first-child { border-top: 0; }
.comp-list__item a {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-16) var(--space-10);
  background: var(--color-text); color: var(--color-text-dark); text-decoration: none;
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.comp-list__item:first-child a { box-shadow: inset 4px 0 0 0 var(--color-brand); }
.comp-list__item a:hover { box-shadow: inset 4px 0 0 0 var(--color-brand); background: var(--color-light); }
.comp-list__num { font-family: var(--font-display); font-size: 20px; line-height: 30px; color: var(--color-brand); }
.comp-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.comp-list__name { font-size: var(--fs-h5); line-height: 25px; color: var(--color-text-dark); }
.comp-list__sub { font-size: var(--fs-xs); line-height: 18px; color: var(--color-muted-dark); }
.comp-list__go { font-size: var(--fs-xs); line-height: 18px; color: var(--color-brand); white-space: nowrap; }

.competitions__media { position: relative; flex: 0 1 544px; }
.competitions__media img { width: 100%; height: 560px; object-fit: cover; }
.competitions__media { overflow: hidden; }
.competitions__frame {
  position: absolute; right: -120px; bottom: -120px;
  width: 300px; height: 300px; background: var(--color-brand); opacity: .08;
}

/* ── mobile — betbunker-mobile-home 0:3585 ────────────────────────────── */
@media (max-width: 1199px) {
  .display--72 { font-size: 40px; }
  .display--80 { font-size: 40px; }
  .display--90 { font-size: 40px; }

  /* The mockup softens the hero gradient on mobile (racing-mobile 0:4233:
     rgba(239,68,68,.2) instead of solid) — without it the brand-coloured third
     headline line lands on the red end and disappears. The designer's own fix,
     applied to every mobile hero. */
  .hero { padding-block: 40px; background: var(--grad-brand-soft); }
  .hero__inner { flex-direction: column; gap: var(--space-24); }
  .hero__left { flex: 1 1 auto; gap: var(--space-16); }
  .hero__headline { gap: var(--space-2); }
  .hero__line { font-size: 54px; line-height: 51px; }
  .hero__line--xl { font-size: 60px; line-height: 57px; }
  .hero__lead { font-size: var(--fs-small); line-height: 21px; }
  .hero__cta { align-self: stretch; min-height: 47px; }
  .hero__media { flex: 1 1 auto; width: 100%; }
  .hero__media img { height: 240px; }
  .hero__frame { display: none; }
  .hero::before { display: none; }   /* the mobile frame has no accent slab */

  .competitions { padding-block: var(--space-64); }   /* 64 in the mobile frame */
  .markets__header { margin-bottom: var(--space-24); }
  /* M2: the mockup breaks the table + slip row into stacked cards on mobile */
  .markets__body { flex-direction: column; gap: var(--space-24); }
  .market-table { flex: 1 1 auto; width: 100%; background: none; }
  .market-table__filters { padding: 0 0 var(--space-12); }
  .filter { flex: 1 1 0; font-size: var(--fs-2xs); }
  .market-table__rows { gap: var(--space-12); }
  .event {
    flex-direction: column; align-items: stretch; gap: var(--space-12);
    border-top: 0;
  }
  .event__meta, .event__market, .event__odds { flex: 1 1 auto; }
  .event__odds > * { flex: 1; }

  .bet-slip { flex: 1 1 auto; width: 100%; }
  .bet-slip__place { align-self: stretch; }

  .racing__header { flex-direction: column; gap: var(--space-12); }
  .racing__body { flex-direction: column; gap: var(--space-24); margin-top: var(--space-24); }
  .racing__media, .schedule, .competitions__index, .competitions__media { flex: 1 1 auto; width: 100%; }
  .racing__media img, .competitions__media img { height: 240px; }
  .racing__frame, .competitions__frame { display: none; }
  .schedule__row { flex-wrap: wrap; }
  .schedule__time { margin-left: auto; }

  .competitions__body { flex-direction: column; gap: var(--space-24); margin-top: var(--space-24); }
  .comp-list__go { font-size: var(--fs-2xs); }
}

/* 404 — ours, not in the mockup: no hero photo, so no accent slab, and the
   headline gets its full leading back since nothing sits beside it. */
.error-page::before, .error-page .hero__frame { display: none; }
.error-page .hero__line { line-height: 1.05; }
.error-page .hero__headline { margin-bottom: var(--space-8); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-8); }
.error-page__actions .btn { min-height: 48px; padding: 0 18px; font-size: var(--fs-body-sm); }
