/* Boks Ball World Championship Match – landing page */

@font-face {
  font-family: 'Saira Stencil One';
  src: url('../assets/fonts/SairaStencilOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --bg-deep: #050505;
  --text: #f2f2f0;
  --text-soft: #d6d6d3;
  --text-muted: #b8b8b5;
  --text-dim: #9a9a97;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --yellow: #ffff00;
  --orange: #ff6a13;
  --green: #7dff2e;
  --font-display: 'Saira Stencil One', Impact, sans-serif;
  --font-body: Oxanium, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

img, video { display: block; max-width: 100%; }

a { color: #fff; }
a:hover { color: #bdbdbd; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-yellow { background: var(--yellow); color: var(--bg); }
.btn-yellow:hover { background: #e6e600; color: var(--bg); }
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 14px; border-radius: 4px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand-sub { color: var(--text-dim); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link { text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep) url('../assets/BBWCM_BC_wide_3.png') right center / cover no-repeat;
}
.hero-scrim { position: absolute; inset: 0; }

.hero-inner {
  position: relative;
  margin-left: 0; /* sit to the left on wide screens so the players stay visible */
  padding-left: 200px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-flags { width: 131px; height: 41px; object-fit: contain; }
.hero-vs {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  white-space: nowrap;
}
.hero-vs .vs {
  font-size: 16px;
  color: var(--text-dim);
  vertical-align: middle;
  margin: 0 6px;
}
.hero-logo-wrap { margin: 0; width: 100%; max-width: 408px; }
.hero-logo { width: 100%; height: auto; }

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Video with orange → green 45° gradient border */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(45deg, var(--orange), var(--green)) border-box;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.video-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 35px);
  line-height: 1.2;
  color: var(--text);
}
.video-text p { margin: 0; }
.video-text .tz { white-space: nowrap; }

.sponsors { width: 100%; max-width: 650px; height: auto; }

/* Countdown */
.countdown { border-bottom: 1px solid var(--line); }
.countdown-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 56px;
}
.countdown-label {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 520px;
  max-width: 720px;
}
.cd-unit {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cd-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.socials { display: flex; gap: 12px; align-items: center; }
.social {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

/* Tablet & phone (matches the Mobile artboard, iPhone 17 Pro = 402 × 874) */
@media (max-width: 900px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .site-header { display: none; }

  .hero { background-image: url('../assets/BBWCM_BC.jpg'); background-position: center top; }
  .hero-scrim { background: rgba(5, 5, 5, 0.6); }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 40px;
  }
  /* Phone order: flags, VS, logo, video, date, button */
  .hero-left, .hero-right { display: contents; }
  .hero-flags { order: 1; justify-self: center; }
  .hero-vs { order: 2; font-size: 24px; white-space: normal; }
  .hero-vs .vs { font-size: 14px; margin: 0 4px; }
  .hero-logo-wrap { order: 3; max-width: 271px; justify-self: center; }
  .video-frame { order: 4; max-width: 370px; justify-self: center; }
  .hero-cta { order: 5; justify-self: center; }
  .sponsors { order: 6; max-width: 360px; justify-self: center; }

  .video-text { font-size: 18px; gap: 6px; }

  .countdown-inner { flex-direction: column; justify-content: center; gap: 20px; padding-top: 32px; padding-bottom: 40px; }
  .countdown-label { font-size: 13px; text-align: center; }
  .countdown-grid { width: 100%; flex: none; gap: 8px; }
  .cd-unit { padding: 14px 4px; }
  .cd-value { font-size: 34px; }
  .cd-name { font-size: 11px; letter-spacing: 0.14em; }
  .socials { gap: 24px; }
}
