/* ============================================================
   MML — Home Page Styles
   ============================================================ */

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  overflow: hidden;
  z-index: var(--z-base);
}

/* ---- Animated Glow Background ---- */
.home-hero .hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74, 111, 165, 0.15) 0%,
    rgba(74, 111, 165, 0.05) 40%,
    transparent 70%
  );
  animation: hero-pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ---- Hero Content ---- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ---- Emblem (floating) ---- */
.hero-emblem {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: emblem-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(74, 111, 165, 0.35));
}

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

/* ---- Wordmark ---- */
.hero-wordmark {
  height: 50px;
  width: auto;
  opacity: 0.9;
}

/* ---- Tagline ---- */
.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-pearl-dim);
  text-transform: uppercase;
}

/* ---- Season Badge ---- */
.hero-season-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(196, 169, 106, 0.4);
  border-radius: var(--radius-full);
  background: rgba(196, 169, 106, 0.08);
}

.hero-season-badge span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

/* ---- CTA ---- */
.hero-cta {
  margin-top: var(--space-md);
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

/* ---- Hero Divider ---- */
.hero-divider {
  position: absolute;
  bottom: var(--space-xl);
  left: 0;
  right: 0;
  padding: 0 var(--space-lg);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-emblem {
    width: 130px;
    height: 130px;
  }

  .hero-wordmark {
    height: 36px;
  }

  .hero-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }
}


/* ============================================================
   2. NEXT MATCH SECTION
   ============================================================ */
.next-match-section {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
}

/* ---- Large Preview Card ---- */
.next-match-preview {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(13, 21, 32, 0.95) 0%,
    rgba(26, 39, 68, 0.5) 100%
  );
  border: 1px solid rgba(74, 111, 165, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.next-match-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(74, 111, 165, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ---- Meta Row ---- */
.next-match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.next-match-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-pearl-bright);
  letter-spacing: 0.05em;
}

.next-match-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.next-match-venue {
  font-size: 0.8rem;
  color: var(--color-pearl-dim);
}

/* ---- Teams Row ---- */
.next-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.next-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.next-match-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-deep);
  box-shadow: 0 0 20px rgba(74, 111, 165, 0.2);
  transition: box-shadow var(--transition-medium);
}

.next-match-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-match-team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}

.next-match-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pearl-dim);
}

/* ---- VS ---- */
.next-match-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.next-match-vs span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-pearl-dim);
  letter-spacing: 0.1em;
}

/* ---- Coming Soon Badge ---- */
.next-match-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.4rem;
  background: rgba(196, 169, 106, 0.1);
  border: 1px solid rgba(196, 169, 106, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 16px rgba(196, 169, 106, 0.2); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .next-match-teams {
    gap: var(--space-xl);
  }

  .next-match-logo {
    width: 75px;
    height: 75px;
  }

  .next-match-team-name {
    font-size: 1rem;
  }

  .next-match-vs span {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .next-match-preview {
    padding: var(--space-lg) var(--space-md);
  }

  .next-match-teams {
    gap: var(--space-md);
  }

  .next-match-logo {
    width: 60px;
    height: 60px;
  }
}


/* ============================================================
   3. LATEST RESULTS SECTION
   ============================================================ */
.latest-results-section {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(74, 111, 165, 0.04) 0%,
      transparent 60%
    );
}

/* ---- Result Card ---- */
.result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.result-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-pearl-dim);
}

/* ---- Matchup ---- */
.result-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.result-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.result-team-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.result-team-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-pearl);
}

.result-team.winner .result-team-name {
  color: var(--color-pearl-bright);
}

/* ---- Score ---- */
.result-score {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.score-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-pearl-dim);
  letter-spacing: 0.05em;
  min-width: 1.5ch;
  text-align: center;
}

.score-num.highlight {
  color: var(--color-pearl-bright);
}

.score-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-pearl-dim);
  opacity: 0.5;
}

/* ---- Period Scores ---- */
.result-periods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(74, 111, 165, 0.1);
}

.result-periods .period {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-pearl-dim);
  letter-spacing: 0.04em;
}


/* ============================================================
   4. TEAMS SHOWCASE SECTION
   ============================================================ */
.teams-showcase-section {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
}

/* ---- Team Card ---- */
.team-showcase-card {
  --team-color: rgba(74, 111, 165, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(
    135deg,
    rgba(13, 21, 32, 0.85) 0%,
    rgba(26, 39, 68, 0.35) 100%
  );
  border: 1px solid rgba(74, 111, 165, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.team-showcase-card:hover {
  border-color: var(--team-color);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 24px color-mix(in srgb, var(--team-color) 30%, transparent);
  transform: translateY(-4px);
}

.team-showcase-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-medium);
}

.team-showcase-card:hover .team-showcase-logo {
  transform: scale(1.08);
}

.team-showcase-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-showcase-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-pearl-bright);
  text-transform: uppercase;
}

.team-showcase-stats {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-pearl-dim);
}

/* ---- Accent Bar ---- */
.team-showcase-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.team-showcase-card:hover .team-showcase-accent {
  opacity: 1;
}


/* ============================================================
   5. ABOUT TEASER SECTION
   ============================================================ */
.about-teaser-section {
  position: relative;
  padding: var(--space-4xl) 0;
  z-index: var(--z-base);
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(74, 111, 165, 0.04) 0%,
      transparent 60%
    );
}

.about-teaser-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(
    135deg,
    rgba(13, 21, 32, 0.9) 0%,
    rgba(26, 39, 68, 0.4) 100%
  );
  border: 1px solid rgba(74, 111, 165, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-teaser-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74, 111, 165, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.about-teaser-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.about-teaser-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-pearl-bright);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.about-teaser-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.about-teaser-text {
  font-size: 0.95rem;
  color: var(--color-pearl-dim);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}


/* ============================================================
   6. COUNTDOWN TIMER
   ============================================================ */
.countdown {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}
.countdown-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.countdown-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--color-pearl-bright);
  line-height: 1;
  letter-spacing: 0.05em;
}
.countdown-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pearl-dim);
  margin-top: 4px;
}
.countdown-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--color-gold);
  opacity: 0.6;
  padding-bottom: 16px;
}
@media (max-width: 480px) {
  .countdown-value { font-size: 2rem; }
  .countdown-unit { min-width: 45px; }
  .countdown-sep { font-size: 1.4rem; }
}
@media (max-width: 360px) {
  .countdown-value { font-size: 1.6rem; }
  .countdown-unit { min-width: 36px; }
  .countdown-sep { font-size: 1.2rem; }
}

