/* ─── League Page SSR Styles ─── */
/* Designed to match the sportscal neo-brutalist design system */
/* Header/nav styles inherited from shared-design-system.css */

:root {
  --lp-max: 900px;
  --lp-max-wide: 1100px;
  --lp-green: #00C853;
  --lp-bg-cream: #faf9f6;
  --lp-border: 2px solid #000;
  --lp-border-thick: 3px solid #000;
  --lp-shadow: 3px 3px 0 #000;
  --lp-shadow-lg: 4px 4px 0 #000;
  --lp-muted: #6b7280;
  --lp-light-bg: #f8fafc;
}

/* ─── Breadcrumb ─── */
.lp-breadcrumb {
  background: var(--lp-light-bg);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}
.lp-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.lp-breadcrumb a {
  color: var(--lp-muted);
  text-decoration: none;
}
.lp-breadcrumb a:hover { text-decoration: underline; }
.lp-breadcrumb-current { color: #111; font-weight: 600; }

/* ─── Container ─── */
.lp-container { max-width: var(--lp-max); margin: 0 auto; padding: 0 2rem; }
.lp-container-narrow { max-width: 800px; }

/* ─── Hero ─── */
.lp-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: var(--lp-border-thick);
}
.lp-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lp-league-logo-wrap {
  width: 80px;
  height: 80px;
  border: var(--lp-border-thick);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.75rem;
  box-shadow: var(--lp-shadow);
  flex-shrink: 0;
}
.lp-league-logo { width: 100%; height: 100%; object-fit: contain; }
.lp-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}
.lp-season { font-weight: 500; color: var(--lp-muted); }
.lp-meta { font-size: 0.95rem; color: var(--lp-muted); margin-top: 0.35rem; }

/* ─── Intro ─── */
.lp-intro { padding: 1.5rem 0; }
.lp-intro p { color: #374151; font-size: 1.05rem; line-height: 1.65; margin: 0; }

/* ─── CTA Bar ─── */
.lp-cta-section { padding: 0 0 1.5rem; }
.lp-cta-bar {
  background: var(--lp-bg-cream);
  border: var(--lp-border-thick);
  box-shadow: var(--lp-shadow-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lp-cta-text { font-size: 1rem; font-weight: 600; margin: 0; flex: 1; min-width: 200px; }
.lp-cta-btn {
  background: var(--lp-green);
  color: #000;
  padding: 0.75rem 1.75rem;
  border: 2px solid #000;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--lp-shadow);
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lp-cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

/* ─── Section common ─── */
.lp-section { padding: 2rem 0; }
.lp-section + .lp-section { border-top: 1px solid #e5e7eb; }
.lp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* ─── Fixtures table ─── */
.lp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lp-fixtures-table { width: 100%; border-collapse: collapse; }
.lp-fixture-row { border-bottom: 1px solid #e5e7eb; }
.lp-fixture-row:last-child { border-bottom: none; }
.lp-fixture-row td { padding: 0.85rem 0.5rem; vertical-align: middle; }
.lp-fixture-date { white-space: nowrap; min-width: 80px; }
.lp-date-day { display: block; font-size: 0.75rem; color: var(--lp-muted); text-transform: uppercase; }
.lp-date-main { display: block; font-weight: 700; font-size: 0.9rem; }
.lp-fixture-matchup { font-weight: 600; font-size: 0.95rem; }
.lp-vs { color: var(--lp-muted); font-weight: 400; margin: 0 0.35rem; font-size: 0.85rem; }
.lp-fixture-time { white-space: nowrap; font-size: 0.875rem; color: #374151; text-align: right; }
.lp-fixture-channel { text-align: right; white-space: nowrap; }
.lp-channel {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.lp-team-link { color: #111; text-decoration: none; }
.lp-team-link:hover { text-decoration: underline; color: var(--lp-green); }

/* ─── Standings table ─── */
.lp-standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lp-standings-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--lp-muted);
  padding: 0.5rem;
  border-bottom: var(--lp-border);
  white-space: nowrap;
}
.lp-standings-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid #e5e7eb; }
.lp-standings-table tr:last-child td { border-bottom: none; }
.lp-team-col { min-width: 140px; }

/* Form guide dots */
.lp-form-col { white-space: nowrap; }
.lp-form-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 3px;
  margin-right: 2px;
  color: #fff;
}
.lp-form-w { background: #16a34a; }
.lp-form-d { background: #6b7280; }
.lp-form-l { background: #dc2626; }

.lp-expand-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--lp-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.lp-expand-link:hover { text-decoration: underline; }

/* ─── Team grid ─── */
.lp-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.lp-team-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: var(--lp-border);
  text-decoration: none;
  color: #111;
  transition: transform 0.12s, box-shadow 0.12s;
}
.lp-team-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lp-shadow);
}
img.lp-team-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}
span.lp-team-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  font-size: 0.7rem;
  font-weight: 800;
  color: #374151;
  flex-shrink: 0;
}
.lp-team-info { display: flex; flex-direction: column; min-width: 0; }
.lp-team-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-team-meta { font-size: 0.78rem; color: var(--lp-muted); }
.lp-teams-subtitle {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--lp-muted);
  font-size: 0.875rem;
}

/* ─── Broadcast grid ─── */
.lp-broadcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.lp-broadcast-card {
  background: var(--lp-light-bg);
  border: var(--lp-border);
  padding: 1.25rem;
}
.lp-broadcast-name { font-size: 1rem; display: block; margin-bottom: 0.35rem; }
.lp-broadcast-desc { font-size: 0.875rem; color: #4b5563; line-height: 1.55; margin: 0; }

/* ─── Key dates grid ─── */
.lp-dates-section { border-top: var(--lp-border-thick) !important; }
.lp-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.lp-date-card {
  background: var(--lp-light-bg);
  border: var(--lp-border);
  padding: 1rem 1.25rem;
}
.lp-date-label { display: block; font-size: 0.8rem; color: var(--lp-muted); margin-bottom: 0.25rem; }
.lp-date-value { font-size: 1.1rem; display: block; }

/* ─── Sync note ─── */
.lp-sync-note {
  text-align: center;
  color: var(--lp-muted);
  font-size: 0.875rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
}

/* ─── FAQ ─── */
.lp-faq-section { background: #fff; }
.lp-faq-item {
  border: var(--lp-border);
  margin-bottom: 0.75rem;
  background: #fff;
}
.lp-faq-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  font-family: inherit;
}
.lp-faq-icon { font-size: 1.4rem; transition: transform 0.2s; }
.lp-faq-item.open .lp-faq-icon { transform: rotate(45deg); }
.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.lp-faq-item.open .lp-faq-answer { max-height: 200px; }
.lp-faq-answer p { padding: 0 1.25rem 1.25rem; color: #4b5563; line-height: 1.7; margin: 0; }

/* ─── Bottom CTA ─── */
.lp-bottom-cta { padding: 2rem 0; }
.lp-bottom-cta-box {
  text-align: center;
  padding: 2rem;
  border: var(--lp-border-thick);
  box-shadow: var(--lp-shadow-lg);
  background: linear-gradient(135deg, hsl(142, 71%, 45%), hsl(142, 71%, 35%));
  color: #fff;
}
.lp-bottom-cta-box h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.35rem; }
.lp-bottom-cta-box p { color: rgba(255,255,255,0.9); margin: 0 0 1rem; font-size: 0.95rem; }
.lp-bottom-cta-box .lp-cta-btn { background: #fff; color: #000; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .lp-container { padding: 0 1rem; }
  .lp-hero { padding: 1.75rem 0 1.25rem; }
  .lp-hero-inner { gap: 1rem; }
  .lp-league-logo-wrap { width: 60px; height: 60px; padding: 0.5rem; }
  .lp-h1 { font-size: 1.65rem; }
  .lp-season { display: block; font-size: 0.9rem; margin-top: 0.15rem; }
  .lp-cta-bar { flex-direction: column; text-align: center; padding: 1.25rem; }
  .lp-cta-btn { width: 100%; text-align: center; display: block; }
  .lp-team-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-broadcast-grid { grid-template-columns: 1fr; }
  .lp-dates-grid { grid-template-columns: 1fr; }
  .lp-section-title { font-size: 1.25rem; }
  .lp-standings-table { font-size: 0.82rem; }
  .lp-standings-table th, .lp-standings-table td { padding: 0.5rem 0.35rem; }
  .lp-form-col { display: none; }
  .lp-fixture-row td { padding: 0.65rem 0.25rem; }
  .lp-fixture-matchup { font-size: 0.85rem; }
  .lp-bottom-cta-box { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .lp-container { padding: 0 0.75rem; }
  .lp-h1 { font-size: 1.4rem; }
  .lp-team-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .lp-team-card { padding: 0.65rem 0.75rem; gap: 0.5rem; }
  img.lp-team-badge, span.lp-team-badge { width: 32px; height: 32px; }
  span.lp-team-badge { font-size: 0.6rem; }
  .lp-team-name { font-size: 0.82rem; }
}
