﻿@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Manrope:wght@400;500;600&display=swap');
@import url('../styles.css');

:root {
  --saison-ink: #eef6f1;
  --saison-muted: rgba(238, 246, 241, 0.68);
  --saison-panel: rgba(10, 14, 14, 0.72);
  --saison-panel-strong: rgba(12, 18, 18, 0.92);
  --saison-line: rgba(255, 255, 255, 0.12);
  --saison-glow: rgba(72, 199, 137, 0.28);
}

body.saison-page {
  background:
    radial-gradient(1200px 640px at 12% -8%, rgba(72, 199, 137, 0.52), transparent 62%),
    radial-gradient(900px 520px at 92% 8%, rgba(17, 106, 75, 0.45), transparent 64%),
    radial-gradient(700px 420px at 50% 110%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #050807 0%, #0a1512 50%, #050807 100%);
  color: var(--saison-ink);
  min-height: 100%;
  position: relative;
}

body.saison-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(900px 480px at 20% -10%, rgba(255, 255, 255, 0.08), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

body.saison-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(65% 65% at 50% 20%, transparent 0%, rgba(0, 0, 0, 0.55) 70%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.saison-main {
  position: relative;
  z-index: 1;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.saison-main .h1,
.saison-title,
.league-title {
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  letter-spacing: 0.03em;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.saison-hero__inner {
  display: grid;
  gap: clamp(18px, 4vw, 32px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  padding: clamp(22px, 4vw, 38px);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(30, 163, 100, 0.16), rgba(255, 255, 255, 0.05) 55%),
    linear-gradient(180deg, rgba(12, 18, 18, 0.92), rgba(8, 12, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  animation: saison-rise 0.8s ease both;
}

.saison-hero__inner::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0.6;
}

.saison-hero__content {
  display: grid;
  gap: 14px;
  max-width: 56ch;
}

.saison-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.saison-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  text-transform: uppercase;
}

.saison-subtitle {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--saison-muted);
}

.saison-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saison-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.saison-hero__panel {
  background: rgba(6, 8, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.saison-hero__panel h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saison-hero__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--saison-muted);
}

.saison-hero__panel li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.saison-hero__panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--svs-green-300);
  box-shadow: 0 0 12px rgba(72, 199, 137, 0.55);
}

.saison-hero__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.saison-block {
  padding-top: 0;
}

.league-upcoming {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.next-game {
  background: var(--saison-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 18px;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.next-game:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 199, 137, 0.5);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.competition-row {
  display: flex;
  justify-content: center;
}

.competition-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.match-header .club {
  display: flex;
  justify-content: center;
}

.match-header .club-name {
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--svs-white);
}

.match-header .vs {
  font: 800 20px/1 var(--font-display);
  color: var(--svs-neutral-100);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.vs-info-box {
  padding: 12px;
  border-radius: 16px;
  background: rgba(5, 8, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vs-info {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

#nextVenue {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.small-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.small-game {
  background: rgba(8, 12, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  text-align: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.small-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(72, 199, 137, 0.4);
}

.small-competition {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.small-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.small-teams .vs {
  font: 800 14px/1 var(--font-display);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--svs-neutral-100);
}

.small-home,
.small-opponent {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--svs-white);
}

.small-info {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.recent-games {
  display: grid;
  gap: 14px;
}

.result-card,
.result-compact {
  background: var(--saison-panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: grid;
  gap: 12px;
}

.result-card--featured {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(72, 199, 137, 0.12), rgba(255, 255, 255, 0.03) 60%),
    var(--saison-panel-strong);
  border-color: rgba(255, 255, 255, 0.16);
}

.result-card:hover,
.result-compact:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 199, 137, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.result-head .pair {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.result-head .team {
  min-width: 0;
  text-align: center;
  color: var(--svs-white);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  word-break: break-word;
}

.score {
  font: 800 1.6rem/1 var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--svs-white);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.score .divider {
  opacity: 0.7;
}

.result-date {
  justify-self: end;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.result-goals {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.scorer-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.recent-older {
  display: grid;
  gap: 10px;
}

.result-compact .pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.result-compact .team {
  text-align: center;
}

.result-compact .team.home {
  text-align: right;
}

.result-compact .team.away {
  text-align: left;
}

.result-card .team.home {
  text-align: right;
}

.result-card .team.away {
  text-align: left;
}

.league-title {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.table-card {
  background: rgba(6, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.table-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.league-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  min-width: 720px;
}

.league-table thead tr {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.league-table th {
  padding: 12px;
  text-align: left;
  color: var(--svs-green-200);
  font-weight: 700;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: 1rem;
}

.league-table td {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  color: var(--saison-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.league-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.05);
}

.league-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.league-table tr.is-svs td {
  background: rgba(30, 163, 100, 0.28) !important;
  color: var(--svs-white) !important;
  font-weight: 700;
}

@keyframes saison-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .saison-hero__inner {
    grid-template-columns: 1fr;
  }
  .saison-hero__panel {
    order: 2;
  }
}

@media (max-width: 720px) {
  .match-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .match-header .vs {
    justify-self: center;
  }
  .result-head {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .result-date {
    justify-self: center;
    order: 3;
    margin-top: 6px;
  }
  .result-head .team {
    min-width: auto;
    text-align: center !important;
  }
  .result-head .pair {
    flex-direction: column;
    gap: 8px;
  }
  .result-compact .pair {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .result-compact .team {
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .saison-hero__inner {
    padding: 20px;
  }
  .small-list {
    grid-template-columns: 1fr;
  }
  .small-teams {
    flex-direction: column;
  }
  .score {
    font-size: 1.25rem;
  }
  .league-table {
    min-width: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .saison-hero__inner,
  .next-game,
  .result-card,
  .result-compact {
    animation: none !important;
    transition: none !important;
  }
}
