/* ══════════════════════════════════════
   HOME PAGE — SPECIFIC STYLES
══════════════════════════════════════ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(29,111,164,0.15) 0%, transparent 60%),
              linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
  z-index: 0;
}

/* Ring lights */
.ring-lights { position: absolute; inset: 0; pointer-events: none; }
.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 8s ease-in-out infinite;
}
.l1 { width: 300px; height: 300px; background: var(--red); top: 10%; left: 10%; animation-delay: 0s; }
.l2 { width: 250px; height: 250px; background: var(--blue); top: 20%; right: 10%; animation-delay: 2s; }
.l3 { width: 200px; height: 200px; background: var(--gold); bottom: 20%; left: 50%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.event-badge {
  display: inline-block;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.4);
  color: var(--red);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: blink-border 2s infinite;
}

@keyframes blink-border {
  0%, 100% { border-color: rgba(230,57,70,0.4); }
  50% { border-color: rgba(230,57,70,0.9); }
}

/* ── FIGHTERS LAYOUT ── */
.fighters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

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

.fighter-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-img {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  animation: fighter-bob 3s ease-in-out infinite;
}
.left-avatar .avatar-img { animation-delay: 0s; transform: scaleX(-1); }
.right-avatar .avatar-img { animation-delay: 0.5s; }

@keyframes fighter-bob {
  0%, 100% { transform: translateY(0) scaleX(var(--flip, 1)); }
  50% { transform: translateY(-8px) scaleX(var(--flip, 1)); }
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
  animation: glow-pulse 2s ease-in-out infinite;
}
.red-glow { background: var(--red); }
.blue-glow { background: var(--blue); }

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.fighter-info { text-align: center; }
.fighter-country { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.1em; font-family: var(--font-cond); }
.fighter-name {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 8px 0;
}
.fighter-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.odd-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-family: var(--font-cond);
  font-size: 1rem;
}
.odd-badge.red { background: rgba(230,57,70,0.15); border: 1px solid var(--red); color: var(--text); }
.odd-badge.blue { background: rgba(29,111,164,0.15); border: 1px solid var(--blue); color: var(--text); }
.odd-badge strong { color: var(--gold); font-size: 1.2rem; }

/* ── VS CENTER ── */
.vs-center { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.vs-circle {
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  box-shadow: 0 0 32px rgba(230,57,70,0.5);
}

.countdown-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.time-unit { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.time-unit span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}
.time-unit label { font-family: var(--font-cond); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.time-sep { font-family: var(--font-display); font-size: 1.6rem; color: var(--red); margin-bottom: 10px; }

.fight-date { font-size: 0.8rem; color: var(--text-muted); }

/* ── HERO CTA ── */
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-sub { color: var(--text-muted); font-size: 0.9rem; }

/* ── FIGHT POSTER STRIP ── */
.poster-strip {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 56px;
  z-index: 1;
}

.fight-poster-img {
  width: 220px;
  height: auto;
  border-radius: 16px;
  border: 3px solid var(--red);
  box-shadow: 0 0 48px rgba(230,57,70,0.5), 0 0 80px rgba(230,57,70,0.2);
  animation: poster-glow 3s ease-in-out infinite;
  object-fit: cover;
}

@keyframes poster-glow {
  0%, 100% { box-shadow: 0 0 32px rgba(230,57,70,0.4), 0 0 60px rgba(230,57,70,0.15); }
  50%       { box-shadow: 0 0 56px rgba(230,57,70,0.7), 0 0 100px rgba(230,57,70,0.3); }
}

.poster-overlay-text {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.poster-prize {
  background: rgba(255,214,10,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.poster-venue {
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.4);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-cond);
  font-size: 0.8rem;
}

/* ── ODDS TICKER ── */
.odds-ticker {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 44px;
}

.ticker-label {
  background: var(--red);
  color: #fff;
  padding: 0 20px;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track { flex: 1; overflow: hidden; }
.ticker-content {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: ticker-scroll 20s linear infinite;
  padding: 0 32px;
}
.ticker-content span:not(:nth-child(even)) { color: var(--text); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ODDS SECTION ── */
.odds-section { background: var(--dark2); }

.betslip-preview {
  background: var(--surface);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 400px;
  margin: 0 auto;
}
.betslip-preview h3 { font-family: var(--font-cond); margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.slip-row { display: flex; justify-content: space-between; margin-bottom: 20px; font-family: var(--font-cond); }
.slip-odd { color: var(--gold); font-size: 1.4rem; font-weight: 700; }

/* ── TICKETS SECTION ── */
.tickets-section { background: var(--dark); }

/* ── PAST SECTION ── */
.past-section { background: var(--dark2); }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 900px) {
  .fighter-name { font-size: 2rem; }
  .fight-poster-img { width: 180px; }
  .poster-overlay-text {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    bottom: -52px;
  }
}

/* ── RESPONSIVE — MOBILE (Android phones) ── */
@media (max-width: 600px) {

  /* Hero overall */
  .hero { padding-top: 56px; }
  .hero-content { padding: 16px 10px; }

  /* Event badge */
  .event-badge { font-size: 0.68rem; margin-bottom: 16px; padding: 4px 10px; }

  /* Fight poster — stays at top, smaller */
  .poster-strip { margin-bottom: 50px; }
  .fight-poster-img { width: 130px; border-radius: 10px; }
  .poster-overlay-text {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    bottom: -54px;
  }
  .poster-prize,
  .poster-venue {
    font-size: 0.6rem;
    padding: 3px 8px;
    white-space: nowrap;
  }

  /* ── FIGHTERS — keep horizontal row on mobile ── */
  .fighters {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* LEFT | VS | RIGHT */
    gap: 6px;
    align-items: center;
    margin-bottom: 20px;
  }

  /* Fighter cards */
  .fighter { gap: 6px; }
  .fighter-avatar { width: 48px; height: 48px; }
  .avatar-img { font-size: 1.6rem; }
  .avatar-glow { inset: -6px; }
  .fighter-name { font-size: 0.85rem; margin: 2px 0; line-height: 1.1; }
  .fighter-country { font-size: 0.6rem; }
  .fighter-stats { font-size: 0.65rem; gap: 4px; margin-bottom: 4px; }
  .odd-badge { padding: 3px 6px; font-size: 0.68rem; }
  .odd-badge strong { font-size: 0.82rem; }

  /* VS center — compact */
  .vs-center { gap: 6px; }
  .vs-circle { width: 36px; height: 36px; font-size: 0.8rem; }
  .countdown-label { font-size: 0.55rem; letter-spacing: 0.08em; }
  .countdown { padding: 5px 4px; gap: 1px; border-radius: 6px; }
  .time-unit { min-width: 22px; }
  .time-unit span { font-size: 0.9rem; }
  .time-unit label { font-size: 0.42rem; }
  .time-sep { font-size: 0.8rem; margin-bottom: 6px; }
  .fight-date { font-size: 0.58rem; text-align: center; }

  /* CTA */
  .btn-giant { font-size: 0.95rem; padding: 12px 20px; }
  .cta-sub { font-size: 0.75rem; }

  /* Ticker */
  .ticker-label { font-size: 0.68rem; padding: 0 10px; }
  .ticker-content { font-size: 0.75rem; gap: 16px; }

  /* Section titles */
  .section-title { font-size: 1.5rem; }
  .section { padding: 40px 0; }

  /* Markets */
  .markets-grid { grid-template-columns: 1fr; gap: 10px; }
  .bet-option { padding: 10px 6px; }
  .bet-fighter { font-size: 0.72rem; }
  .bet-odd { font-size: 1rem; }

  /* Tickets */
  .tickets-grid { grid-template-columns: 1fr; gap: 14px; }
  .ticket-card { padding: 18px 14px; }
  .ticket-card h3 { font-size: 1.3rem; }
  .ticket-price { font-size: 1.5rem; }

  /* Upcoming event card */
  .past-event {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .pe-right { display: none; }
  .pe-name { font-size: 0.85rem; }
  .pe-venue-tag { font-size: 0.7rem; }

  /* Fight countdown box */
  .fight-countdown-box { padding: 12px 8px; }
  .fight-countdown-box .time-unit { min-width: 44px; padding: 8px 6px; }
  .fight-countdown-box .time-unit span { font-size: 20px; }
  .fight-countdown-box .time-unit label { font-size: 9px; }

  /* Events summary */
  .events-summary { grid-template-columns: 1fr 1fr; }
  .esum-item { padding: 12px 8px; font-size: 0.8rem; }

  /* Bet mode toggle */
  .bet-mode-toggle { margin-bottom: 14px; }
  .mode-btn { font-size: 0.8rem !important; padding: 9px 10px !important; }
}
