/**
 * Mzimba South Luwerezi Constituency — Sports & League Stylesheet
 * Match Center, Fixture Cards, League Tables, Live Pulse Indicators & Player Statistics.
 * Refined Public Service Aesthetic.
 */

/* ==========================================================================
   1. LIVE MATCH INDICATORS & PULSE BANNERS
   ========================================================================== */
.live-status-strip {
  background-color: var(--brand-navy-900);
  color: var(--color-white);
  padding: var(--space-2) 0;
  font-size: var(--font-size-xs);
  border-bottom: 2px solid var(--brand-gold-500);
}

.live-strip-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.live-strip-text {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.live-strip-link {
  color: var(--brand-gold-400);
  text-decoration: underline;
  font-weight: var(--font-weight-bold);
}

/* Pulsing Live Dot */
.live-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
  animation: live-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: var(--radius-full);
  display: inline-block;
  animation: live-pulse-light 1.6s infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  }
}

@keyframes live-pulse-light {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Live Match Banner on Sports Hub */
.live-match-banner {
  background: linear-gradient(135deg, var(--brand-navy-900) 0%, var(--brand-navy-800) 100%);
  color: var(--color-white);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--brand-gold-500);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card-hover);
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
}

.live-match-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.live-match-score {
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  background-color: var(--color-white);
  color: var(--brand-navy-900);
  border-radius: var(--radius-xs);
  padding: 2px 12px;
  box-shadow: var(--shadow-xs);
}

.live-match-clock {
  font-size: var(--font-size-xs);
  font-family: var(--font-mono);
  color: var(--brand-gold-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   2. FIXTURE & MATCH CARDS
   ========================================================================== */
.fixtures-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  border-bottom: 2px solid var(--brand-navy-800);
  padding-bottom: var(--space-3);
}

/* Match Card Structure */
.match-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.match-card:hover {
  border-color: var(--brand-navy-700);
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 768px) {
  .match-card {
    grid-template-columns: 150px 1fr 140px;
    align-items: center;
  }
}

.match-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
}

.match-card-date {
  font-weight: var(--font-weight-bold);
  color: var(--brand-navy-900);
}

.match-card-venue {
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
}

/* Match Opponents Row */
.match-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}

.team-participant {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--brand-navy-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.team-participant.team-home {
  justify-content: flex-end;
  text-align: right;
}

.team-participant.team-away {
  justify-content: flex-start;
  text-align: left;
}

.match-score-pill {
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  background-color: var(--brand-navy-50);
  color: var(--brand-navy-900);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 4px 14px;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.05em;
}

.match-vs-pill {
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  background-color: var(--color-gray-100);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.match-card-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

/* Live Active Match Card */
.match-card.is-live {
  border: 2px solid var(--brand-navy-800);
  background-color: var(--brand-navy-50);
  position: relative;
}

.match-card.is-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ef4444;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.match-card.is-live .match-score-pill {
  background-color: var(--brand-navy-900);
  color: var(--color-white);
  border-color: var(--brand-navy-900);
}

/* ==========================================================================
   3. LEAGUE STANDINGS TABLE
   ========================================================================== */
.standings-full-table {
  font-size: var(--font-size-xs);
}

.standings-full-table th,
.standings-full-table td {
  padding: var(--space-3) var(--space-3);
  text-align: center;
}

.standings-full-table .th-pos,
.standings-full-table td:first-child {
  width: 44px;
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
}

.standings-full-table .th-team,
.standings-full-table td.td-team {
  text-align: left;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--brand-navy-900);
  min-width: 180px;
}

.standings-full-table .th-pts,
.standings-full-table td.td-pts {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--brand-navy-900);
  background-color: var(--brand-navy-50);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* Form Circles (W, D, L) */
.form-badge-strip {
  display: inline-flex;
  gap: 3px;
}

.form-pill {
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
}

.form-pill.w {
  background-color: var(--brand-green-700);
  color: var(--color-white);
}

.form-pill.d {
  background-color: var(--color-gray-300);
  color: var(--color-gray-800);
}

.form-pill.l {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
  .standings-full-table th,
  .standings-full-table td {
    padding: var(--space-2) var(--space-1);
    font-size: var(--font-size-2xs);
  }
}

/* ==========================================================================
   4. LIVE MATCH ROOM / EVENT TIMELINE
   ========================================================================== */
.live-center-scoreboard {
  border: 1px solid var(--border-medium);
  border-top: 4px solid var(--brand-gold-500);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--bg-surface) 100%);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.scoreboard-period-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  background-color: var(--brand-navy-900);
  color: var(--brand-gold-400);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.scoreboard-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.scoreboard-team-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-navy-900);
}

.scoreboard-score-display {
  font-family: var(--font-mono);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--brand-navy-900);
  padding: 0 var(--space-4);
  line-height: 1;
}

.scoreboard-match-info {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
}

/* Match Events Timeline (Goals, Cards, Substitutions) */
.match-events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.match-event-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: var(--font-size-xs);
  box-shadow: var(--shadow-xs);
}

.event-minute {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  background-color: var(--brand-navy-50);
  color: var(--brand-navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  min-width: 42px;
  text-align: center;
}

.event-type-icon {
  font-size: 1rem;
}

.event-description {
  flex: 1;
  color: var(--text-primary);
}

/* ==========================================================================
   5. TEAMS & PLAYER ROSTERS
   ========================================================================== */
.team-card-profile {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.team-card-profile:hover {
  border-color: var(--brand-navy-700);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.team-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--brand-navy-900);
  margin-bottom: 2px;
}

.team-card-ground {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.team-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
  margin: var(--space-4) 0;
  text-align: center;
}

.team-stat-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  color: var(--brand-navy-900);
}

.team-stat-item span {
  font-size: var(--font-size-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   6. PLAYER STATISTICS & LEADERBOARDS
   ========================================================================== */
.golden-boot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.golden-boot-row:hover {
  background-color: var(--brand-navy-50);
}

.golden-boot-rank {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--brand-gold-600);
  width: 32px;
}

.golden-boot-name {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--brand-navy-900);
  flex: 1;
}

.golden-boot-team {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  width: 140px;
}

.golden-boot-goals {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--brand-navy-900);
  width: 50px;
  text-align: right;
}