/* ============================================
   WISDOM PURPLE — Girls Unite 2016G
   Warm, family-friendly, fun
   ============================================ */

:root {
  --purple:       #7B2FBE;
  --purple-light: #9B5ED6;
  --purple-soft:  #F3EAFA;
  --purple-bg:    #FAF6FF;
  --purple-mid:   #E8D5F5;
  --white:        #FFFFFF;
  --gold:         #F5A623;
  --gold-light:   #FFF3D6;
  --gold-dark:    #D4891A;
  --green:        #2DA44E;
  --green-light:  #DFF5E1;
  --blue:         #3B82F6;
  --blue-light:   #DBEAFE;
  --red:          #DC3545;
  --red-light:    #FDE8E8;
  --text:         #2D2040;
  --text-muted:   #6B5A7D;
  --text-light:   #9A8AAD;
  --bg:           var(--white);
  --card-bg:      var(--white);
  --card-shadow:  0 2px 12px rgba(123, 47, 190, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 6px 24px rgba(123, 47, 190, 0.14), 0 2px 6px rgba(0,0,0,0.06);
  --radius:       16px;
  --radius-sm:    12px;
  --radius-pill:  999px;
  --font:         'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--purple-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

/* ---- Layout ---- */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  display: none;
}

.section-schedule .section-title {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  color: var(--purple);
}

.section-results .section-title {
  font-size: clamp(1.55rem, 2.8vw, 1.9rem);
  color: #7A7A7A;
}

.section-divider {
  height: 12px;
  background: linear-gradient(90deg, rgba(123, 47, 190, 0.2), rgba(245, 166, 35, 0.25), rgba(123, 47, 190, 0.2));
  border-top: 1px solid rgba(123, 47, 190, 0.18);
  border-bottom: 1px solid rgba(123, 47, 190, 0.12);
  margin: 6px 0 20px;
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(135deg, #E8D5F5 0%, #D4B8EB 30%, #B88BE0 60%, #9B5ED6 100%);
  text-align: center;
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-logo {
  height: 64px;
  width: auto;
  margin: 0;
  filter: drop-shadow(0 2px 8px rgba(90, 26, 138, 0.3));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(90, 26, 138, 0.25);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
}

.season-record {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--purple-mid);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(123, 47, 190, 0.12);
}

.stats-bar {
  background: #F3EAFA;
  border-top: 1px solid rgba(123, 47, 190, 0.12);
  border-bottom: 1px solid rgba(123, 47, 190, 0.12);
  padding: 16px 24px;
}

.stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.stats-bar-inner--centered {
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.stat-item--center {
  border-left: 1px solid rgba(123, 47, 190, 0.15);
  border-right: 1px solid rgba(123, 47, 190, 0.15);
  padding: 0 24px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9B5ED6;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 900;
  color: #3D1A6E;
  letter-spacing: 0.05em;
}

.stat-item--center .stat-value {
  font-size: 1rem;
  color: #5A2D9C;
}

/* ---- Watch Section ---- */

.watch-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--purple-mid);
}

.watch-card--live {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  border: none;
  color: var(--white);
}

.watch-card__label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.watch-card--live .watch-card__label {
  color: rgba(255,255,255,0.8);
}

.watch-card__heading {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.watch-card--live .watch-card__heading {
  color: var(--white);
}

.watch-card__datetime {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}

.watch-card__opponent {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.watch-card--live .watch-card__datetime {
  color: var(--white);
}

.watch-card--live .watch-card__opponent {
  color: rgba(255,255,255,0.82);
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--purple);
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(123, 47, 190, 0.2), 0 0 0 0 rgba(123, 47, 190, 0);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: glow-watch 2.5s ease-in-out infinite;
}

@keyframes glow-watch {
  0%, 100% { box-shadow: 0 4px 16px rgba(123, 47, 190, 0.2); }
  50% { box-shadow: 0 4px 24px rgba(123, 47, 190, 0.35), 0 0 0 4px rgba(123, 47, 190, 0.1); }
}

.btn-watch:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(123, 47, 190, 0.35);
  animation: none;
}

.btn-watch--outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  box-shadow: none;
}

.btn-watch--outline:hover {
  background: var(--purple-soft);
  box-shadow: none;
}

.watch-coming-soon {
  background: var(--gold-light);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.watch-coming-soon__text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.watch-coming-soon__note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---- Past Streams ---- */

.past-streams-section {
  margin-top: 32px;
}

.past-streams-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: left;
}

.past-streams-toggle:hover {
  color: var(--purple);
}

.past-streams-toggle__arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.past-streams-toggle__arrow--open {
  transform: rotate(90deg);
}

.past-streams-list {
  display: none;
  margin-top: 12px;
  gap: 8px;
  flex-direction: column;
}

.past-streams-list--open {
  display: flex;
}

.past-stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--purple-mid);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s;
}

.past-stream-item:hover {
  box-shadow: var(--card-shadow);
}

.past-stream-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.past-stream-opponent {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.past-stream-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.past-stream-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--purple-soft);
  transition: background 0.2s;
}

.past-stream-link:hover {
  background: var(--purple-mid);
}

/* ---- Monthly Calendar Schedule ---- */

.month-group {
  margin-bottom: 36px;
}

.month-header {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #6a2ca8;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.game-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.game-card--upcoming {
  background: #F5F0FF;
  border-color: rgba(123, 47, 190, 0.15);
}

.game-card--today {
  background: var(--purple-soft);
  border-color: rgba(123, 47, 190, 0.3);
  box-shadow: 0 4px 20px rgba(123, 47, 190, 0.15);
}

.matchup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px 12px;
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.95), rgba(255, 248, 232, 0.95));
  border-bottom: 1px solid rgba(123, 47, 190, 0.08);
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: nowrap;
}

.matchup-date-time {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.matchup-date {
  white-space: nowrap;
  text-transform: uppercase;
}

.matchup-time {
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.matchup-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.matchup-location {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.matchup-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px 20px 18px;
}

.matchup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.matchup-team--opponent {
  text-align: center;
}

.matchup-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fffdfa;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 47, 190, 0.18);
  box-shadow: 0 6px 16px rgba(123, 47, 190, 0.12);
  overflow: hidden;
}

.matchup-logo-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.matchup-logo-fallback {
  font-size: 1.7rem;
}

.matchup-name {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.matchup-name--opponent {
  font-weight: 800;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.matchup-vs {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: 0.12em;
}

.matchup-score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text);
}

.matchup-score-value {
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.matchup-score-separator {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-light);
}

.matchup-score--win .matchup-score-value {
  border-bottom-color: var(--green);
}

.matchup-score--loss .matchup-score-value {
  border-bottom-color: var(--red);
}

.matchup-score--draw .matchup-score-value {
  border-bottom-color: var(--text-light);
}

.game-card--result {
  opacity: 1;
  background: #F8F8F8;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.game-card--result .matchup-top {
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.95), rgba(238, 238, 238, 0.95));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #7A7A7A;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  padding: 18px;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gold);
}

.matchup-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 18px;
}

.badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-home {
  background: var(--green-light);
  color: var(--green);
}

.badge-away {
  background: var(--blue-light);
  color: var(--blue);
}

.badge-result {
  letter-spacing: 0.08em;
}

.badge-result--win {
  background: var(--green-light);
  color: var(--green);
}

.badge-result--loss {
  background: var(--red-light);
  color: var(--red);
}

.badge-result--draw {
  background: color-mix(in srgb, var(--purple-soft) 70%, white 30%);
  color: var(--text-muted);
}

.badge-upcoming {
  background: #FFD54A;
  color: #3A2A00;
  box-shadow: inset 0 0 0 1px rgba(58, 42, 0, 0.08);
  white-space: nowrap;
}

.badge-today-label {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: var(--white);
}

.badge-final {
  background: #E2E2E2;
  color: #555555;
  letter-spacing: 0.12em;
}

.game-result {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.game-result--win {
  color: var(--green);
}

.game-result--loss {
  color: var(--text-muted);
}

.game-result--draw {
  color: var(--gold-dark);
}

.game-replay-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.game-replay-link:hover {
  text-decoration: underline;
}

.game-weather {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #F0EEF6;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(123, 47, 190, 0.08);
}

/* Inside the purple watch card — just plain text, no box */
.watch-card--live .game-weather,
.watch-coming-soon .game-weather {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  padding: 4px 0 8px !important;
}

.game-weather--visible {
  display: block;
}



/* ---- Footer ---- */

.footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--purple-soft);
  border-top: 3px solid var(--purple-mid);
}

.footer p:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--purple);
}

.footer-season {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- No data state ---- */

.no-streams {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 24px;
}

/* ---- Animations ---- */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.month-group .game-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.35s ease forwards;
}

.month-group .game-card:nth-child(2) { animation-delay: 0.06s; }
.month-group .game-card:nth-child(3) { animation-delay: 0.12s; }
.month-group .game-card:nth-child(4) { animation-delay: 0.18s; }
.month-group .game-card:nth-child(5) { animation-delay: 0.24s; }
.month-group .game-card:nth-child(6) { animation-delay: 0.30s; }

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero {
    padding: 18px 16px;
  }

  .hero-logo {
    height: 56px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .watch-card {
    padding: 24px 18px;
  }

  .watch-card__heading {
    font-size: 1.25rem;
  }

  .watch-card__datetime {
    font-size: 1.1rem;
  }

  .watch-card__opponent {
    font-size: 0.95rem;
  }

  .btn-watch {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .game-card {
    gap: 12px;
  }

  .matchup-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
    font-size: 0.72rem;
  }

  .matchup-time {
    justify-self: start;
    font-size: 0.78rem;
  }

  .matchup-meta {
    justify-self: start;
    gap: 6px;
  }

  .matchup-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }

  .matchup-vs {
    font-size: 1rem;
  }

  .matchup-score {
    font-size: 1.5rem;
  }

  .matchup-score-separator {
    font-size: 1rem;
  }

  .matchup-logo {
    width: 56px;
    height: 56px;
  }

  .matchup-name {
    font-size: 0.92rem;
  }

  .matchup-lower {
    padding: 0 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-pill {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .past-stream-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.opponent-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.opponent-link:hover {
  color: var(--purple);
  text-decoration-style: solid;
}
