/* =========================================================
   Team badge — design system §4.3 fallback rule
   ========================================================= */

.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-900);
}

.badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-initials {
  color: var(--white);
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
}

.badge--sm { width: 36px; height: 36px; }
.badge--sm .badge-initials { font-size: var(--text-xs); }

/* =========================================================
   Fixture card — design system §4.3
   ========================================================= */

.fixture-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  transition: border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.fixture-card:hover {
  border-color: var(--red-500);
}

/* "Result available" left-edge accent — §4.3 */
.fixture-card--played {
  border-left: 4px solid var(--red-500);
}

.fixture-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.fixture-divider {
  width: 1px;
  height: 40px;
  background: var(--line-200);
  transform: skewX(-12deg); /* echoes the diagonal motif at component scale, §3 */
}

.fixture-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  flex-wrap: wrap;
}

.fixture-vs {
  color: var(--ink-500);
  font-size: var(--text-sm);
  font-weight: 400;
}

.fixture-meta {
  text-align: center;
  color: var(--ink-500);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.fixture-score {
  text-align: center;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--navy-900);
  margin-top: var(--space-2);
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .fixture-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .fixture-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Week heading — design system §4.4
   ========================================================= */

.week-block {
  margin-bottom: var(--space-12);
}

.week-heading {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--navy-900);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line-200);
  margin-bottom: var(--space-6);
}

/* =========================================================
   Filter / segmented control — design system §4.4
   ========================================================= */

.filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-8);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-pill);
  padding: 2px;
  background: var(--white);
}

.segmented button {
  border: none;
  background: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-500);
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented button[aria-pressed="true"] {
  background: var(--navy-900);
  color: var(--white);
}

/* =========================================================
   Standings table — design system §4.5
   ========================================================= */

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.standings-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  position: sticky;
  top: 0;
}

.standings-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-200);
  font-size: var(--text-sm);
}

.standings-table tbody tr:last-child td { border-bottom: none; }

.standings-table tbody tr.is-leader {
  border-left: 4px solid var(--red-500);
}

.standings-team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.form-strip {
  display: flex;
  gap: 4px;
}

.form-pip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.form-pip--w { background: var(--win-green); }
.form-pip--l { background: var(--loss-clay); }

.standings-empty-row td {
  text-align: center;
  color: var(--ink-500);
  padding: var(--space-8) var(--space-4);
}

/* =========================================================
   Empty states — design system §4.4 / §4.5
   ========================================================= */

.empty-state {
  text-align: center;
  padding: var(--space-24) var(--space-4);
}

.empty-state-motif {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--navy-900) 50%, var(--paper-50) 50%);
  border: 1px solid var(--line-200);
}

.empty-state h2 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--navy-900);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.empty-state p {
  color: var(--ink-500);
  font-size: var(--text-base);
  margin: 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-card);
  font-weight: 600;
  font-size: var(--text-base);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--navy-900);
}

.btn--primary:hover {
  background: var(--navy-700);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
}

.btn--ghost:hover {
  background: var(--navy-900);
  color: var(--white);
}
