/* Overrides for the server-rendered WordPress build. */

/* League cards are real links to /sports-calendar/{league}. */
a.league-card {
  text-decoration: none;
}

a.league-card.is-active {
  outline: 4px solid rgba(215, 41, 36, 0.4);
}

.league-card .league-card-flag {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Empty / error states. */
.ss-sc-state {
  padding: 32px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* The "back to all leagues" link on a filtered page. */
.ss-sc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.ss-sc-back:hover { color: var(--ink); }

/* Subtle league-select hint shown only on the base page. */
.ss-sc-hint { color: var(--muted); }

/* ── Header: left-aligned brand, logo never clipped ── */
.ss-sc-page .site-header {
  justify-content: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.ss-sc-page .brand img {
  width: auto;
  height: 72px;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

/* ── Consistent gap under "Choose your league" ── */
.section-title + .league-grid {
  margin-top: 22px;
}

.section-title + .games-card {
  margin-top: 16px;
}

/* ── Tablet & up: compact game row ── */
@media (min-width: 861px) {
  .ss-sc-page .game-row {
    grid-template-columns: 60px 1fr 40px 1fr 1px 130px 80px;
    padding: 18px 22px;
    gap: 14px;
  }
  .ss-sc-page .game-time { padding-left: 16px; }
  .ss-sc-page .team-badge { width: 44px; height: 44px; font-size: 15px; }

  /* Hide league pill on league-specific pages */
  body.has-league .game-row {
    grid-template-columns: 1fr 40px 1fr 1px 130px 80px;
  }
  body.has-league .league-pill { display: none; }
}

/* ── Inline brand (real Inter font, no clipping, no gap) ── */
.ss-sc-page .brand {
  gap: 8px;
}
.ss-sc-page .brand-mark {
  display: inline-flex;
  align-items: center;
}
.ss-sc-page .brand-mark svg {
  height: 34px;
  width: auto;
  display: block;
}
.ss-sc-page .brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink, #404040);
  line-height: 1;
}
.ss-sc-page .brand-accent {
  color: var(--brand-red, #d72924);
}

/* ── Centered column — wider to fit all game row content in a single line ── */
.ss-sc-page .site-header,
.ss-sc-page main {
  max-width: 960px;
}

@media (min-width: 861px) {
  .ss-sc-page .page-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ss-sc-page .site-header {
    margin-bottom: 32px;
  }

  .ss-sc-page .hero {
    max-width: 560px;
    margin-bottom: 30px;
  }

  .ss-sc-page h1 {
    font-size: 54px;
  }

  .ss-sc-page .league-section {
    margin-bottom: 32px;
  }

  .ss-sc-page .league-grid {
    gap: 16px;
  }

  .ss-sc-page .league-card {
    min-height: 90px;
    padding: 18px 16px;
  }

  /* Only the league NAME scales up — never the "Selected" flag pill. */
  .ss-sc-page .league-card > span:not(.league-card-flag) {
    font-size: 42px;
  }
}

/* ── Selected card stays the SAME size as the others ── */
.league-card .league-card-flag {
  margin-top: 6px;
}
.league-card .league-card-flag.is-placeholder {
  display: none;
}

@media (max-width: 860px) {
  .ss-sc-page .site-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .ss-sc-page .brand img {
    height: 58px;
  }

  .ss-sc-page .brand-mark svg {
    height: 31px;
  }

  .ss-sc-page .brand-name {
    font-size: 24px;
  }

  .section-title + .league-grid {
    margin-top: 18px;
  }

  .ss-sc-page .league-section {
    margin-bottom: 34px;
  }

  .ss-sc-page .games-card {
    border-radius: 20px;
  }
}
