/* ── Premier League Weather Page ──────────────────────────────────
   Mobile-first: 240px default, 360px mobile-perfect, 768px tablet, 1280px desktop
   FFF brand: cream #ffefda, amber #ffca9c, teal #0b5259, dark #2e2e2e
   ──────────────────────────────────────────────────────────────── */

/* ── Page header ──────────────────────────────────────────────── */

.epl-page-header {
  background: #0b5259;
  color: white;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
}

.epl-page-header h1 {
  font-family: "Dosis", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.epl-page-header__sub {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
  opacity: 0.85;
  line-height: 1.4;
}

.epl-page-header__sub a {
  color: inherit;
  text-decoration: underline;
}
/* ── Section headings ─────────────────────────────────────────── */

.epl-section-heading {
  font-size: 1.15rem;
  /* color: #2e2e2e; */
  margin: 0 0 0.75rem;
  padding: 0 1rem;
  color: var(--label);
}

/* ── Best weather this weekend ────────────────────────────────── */

.epl-best-weekend {
  background: var(--subsub-banner);
  padding: 1.25rem 0;
}

.epl-best-weekend__cards {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.epl-best-card {
  flex: 0 0 auto;
  width: calc(100% - 1rem);
  min-width: 220px;
  background: white;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
}

.epl-best-card__weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.epl-best-card__weather .epl-weather-icon {
  width: 36px;
  height: 36px;
}

.epl-best-card__temp {
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0b5259;
}

.epl-best-card__match {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.epl-best-card__teams {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2e2e2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.epl-best-card__venue {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #666;
}

/* ── Club badges ──────────────────────────────────────────────── */

.epl-badge {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: none;
}

.epl-badge--sm {
  width: 16px;
  height: 16px;
}

/* ── Club filter ──────────────────────────────────────────────── */

.epl-filter {
  background: #ffefda;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid #e8d5bf;
  position: sticky;
  top: 0;
  z-index: 10;
}

.epl-filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem;
}

.epl-pill {
  font-family: "Dosis", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border: 1.5px solid #ccc;
  border-radius: 100px;
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.epl-pill:hover {
  border-color: #999;
}

.epl-pill--active {
  background: var(--pill-color, #0b5259);
  border-color: var(--pill-color, #0b5259);
  color: white;
  font-weight: 600;
}

/* Ensure light-colored pills have readable text */
.epl-pill--active[data-club="LEE"],
.epl-pill--active[data-club="MCI"],
.epl-pill--active[data-club="COV"],
.epl-pill--active[data-club="HUL"] {
  color: #222;
  text-shadow: none;
}

.epl-pill--all {
  --pill-color: #0b5259;
}

.epl-filter__actions {
  padding: 0.5rem 1rem 0;
}

.epl-filter-clear {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #0b5259;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── Date group ───────────────────────────────────────────────── */

.epl-fixtures {
  background: white;
  padding-bottom: 2rem;
}

.epl-date-group {
  padding: 0 1rem;
}

/* .epl-date-group[data-season="summer"] { */
/*   background: #fef4dda0; */
/* } */
/* .epl-date-group[data-season="autumn"] { */
/*   background: #f9ebe6b8; */
/* } */
.epl-date-group[data-season="winter"] {
  background: #eef4fb80;
}
/* .epl-date-group[data-season="spring"] { */
/*   background: #e8f4e9a0; */
/* } */

.epl-date-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0 0.35rem;
  border-bottom: 2px solid #0b5259;
  margin-bottom: 0.5rem;
}

.epl-date-header__label {
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0b5259;
  margin: 0;
}

.epl-date-header__gw {
  font-family: "Dosis", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0b5259;
  background: #ffca9c;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ── Gameweek prose (SEO/GEO crawlable summary) ──────────────── */

.epl-gw-prose {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #555;
  margin: 0.4rem 0 0.6rem;
  padding: 0;
}

/* ── Individual fixture ───────────────────────────────────────── */

.epl-fixture {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e8d5bf;
  align-items: center;
}

.epl-fixture:last-child {
  border-bottom: none;
}

/* Kickoff time: left column, spans both rows */
.epl-fixture__time {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: "Dosis", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b5259;
  text-align: center;
}

/* Teams: middle column, row 1 */
.epl-fixture__teams {
  grid-column: 2;
  grid-row: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e2e2e;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  min-width: 0;
}

.epl-fixture__home,
.epl-fixture__away {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.epl-fixture__vs {
  font-weight: 400;
  color: #888;
  flex-shrink: 0;
}

/* Venue: middle column, row 2 */
.epl-fixture__venue {
  grid-column: 2;
  grid-row: 2;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Weather: right column, spans both rows */
.epl-fixture__weather {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 70px;
  justify-content: flex-end;
}

.epl-fixture__weather-icon svg {
  width: 30px;
  height: 30px;
}

.epl-fixture__weather-data {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.epl-fixture__temp {
  font-family: "Dosis", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b5259;
}

.epl-fixture__rain {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  color: #666;
}

/* No forecast state */
.epl-fixture__no-forecast {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #aaa;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-style: italic;
}

.epl-no-forecast-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── SEO content / FAQ ────────────────────────────────────────── */

.epl-seo-content {
  background: #ffefda;
  padding: 1.5rem 1rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.epl-seo-content__heading {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: #2e2e2e;
  margin: 1.5rem 0 0.5rem;
}

.epl-seo-content__heading:first-child {
  margin-top: 0;
}

.epl-seo-content p {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.epl-seo-content a {
  color: #0b5259;
  text-decoration: underline;
}

.epl-faq {
  margin-top: 0.75rem;
}

.epl-faq__item {
  border-bottom: 1px solid #e8d5bf;
  padding: 0.6rem 0;
}

.epl-faq__item summary {
  cursor: pointer;
  list-style: none;
}

.epl-faq__item summary::-webkit-details-marker {
  display: none;
}

.epl-faq__item summary h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e2e2e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.epl-faq__item summary h3::before {
  content: "+";
  font-weight: 400;
  color: #0b5259;
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.epl-faq__item[open] summary h3::before {
  content: "\2212";
}

.epl-faq__item p {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
  margin: 0.5rem 0 0 1.4rem;
}

.epl-gw-prose {
  position: relative;
  z-index: 1;
  user-select: text;
}

.epl-fixtures,
.epl-fixtures * {
  user-select: text;
}

.epl-seo-content,
.epl-seo-content * {
  user-select: text;
}
/* ── 360px: mobile-perfect ─────────────────────────────────────── */

@media (min-width: 360px) {
  .epl-page-header h1 {
    font-size: 1.7rem;
  }

  .epl-page-header__sub {
    font-size: 0.9rem;
  }

  .epl-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }

  .epl-fixture {
    grid-template-columns: 48px 1fr auto;
  }

  .epl-fixture__teams {
    font-size: 0.9rem;
  }

  .epl-fixture__venue {
    font-size: 0.75rem;
  }

  .epl-best-card {
    width: calc(85% - 0.5rem);
  }
}

/* ── 768px: tablet ────────────────────────────────────────────── */

@media (min-width: 768px) {
  .epl-page-header {
    padding: 1rem 1rem 0.75rem;
  }

  .epl-page-header h1 {
    font-size: 2rem;
  }

  .epl-page-header__sub {
    font-size: 1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
  }

  .epl-section-heading {
    font-size: 1.3rem;
    padding: 0 2rem;
    max-width: 999px;
    margin: 0.75rem auto;
  }

  .epl-best-weekend {
    padding: 1.5rem 0;
  }

  .epl-best-weekend__cards {
    padding: 0 2rem;
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
  }

  .epl-best-card {
    width: auto;
    min-width: 260px;
    flex: 0 1 300px;
  }

  .epl-filter__pills {
    padding: 0 2rem;
    justify-content: center;
  }

  .epl-pill {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .epl-filter__actions {
    padding: 0.5rem 2rem 0;
    text-align: center;
  }

  .epl-date-group {
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .epl-date-header__label {
    font-size: 1.1rem;
  }

  .epl-fixture {
    grid-template-columns: 56px 1fr auto;
    padding: 0.75rem 0;
  }

  .epl-fixture__time {
    font-size: 0.9rem;
  }

  .epl-fixture__teams {
    font-size: 0.95rem;
  }

  .epl-fixture__venue {
    font-size: 0.8rem;
  }

  .epl-fixture__weather-icon svg {
    width: 36px;
    height: 36px;
  }

  .epl-fixture__temp {
    font-size: 1.05rem;
  }

  .epl-badge {
    width: 24px;
    height: 24px;
    display: none;
  }
}

/* ── 1280px: desktop ──────────────────────────────────────────── */

@media (min-width: 1280px) {
  .epl-page-header h1 {
    font-size: 2.25rem;
  }

  .epl-best-weekend__cards {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
  }

  .epl-filter__pills {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
  }

  .epl-filter__actions {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.5rem 0 0;
  }

  .epl-date-group {
    max-width: 960px;
  }

  .epl-fixture {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: 1fr;
    gap: 0 1rem;
  }

  /* On desktop, flatten to single row */
  .epl-fixture__time {
    grid-row: 1;
  }

  .epl-fixture__teams {
    grid-row: 1;
    font-size: 1rem;
  }

  .epl-fixture__venue {
    /* grid-column: 2; */
    /* grid-row: 1; */
    /* Show inline after teams on desktop */
    /* display: none; */
  }

  .epl-fixture__weather {
    grid-row: 1;
    min-width: 100px;
  }

  /* Show venue as part of teams on desktop */
  .epl-fixture__teams::after {
    content: attr(data-venue);
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.75rem;
  }
}
