/* /css/homepage.css */

/* Hero section */
[data-style-rollout="modern"] body.home-page .home-main {
  width: min(1200px, calc(100% - 2rem));
  max-width: 1200px;
  margin: 1.5rem auto 2.75rem;
  padding: 2rem;
}

.hero-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: background-color 0.3s;
}

.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 0;
  object-fit: contain;
  margin: 0 auto 1rem auto;
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-page .header-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.hero-title {
  font-family: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
  color: #333;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.3s;
}

.hero-description {
  font-size: 1rem;
  color: #555;
  max-width: 760px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.6;
  transition: color 0.3s;
}

/* Current season highlight */
.current-season {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem auto 0;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.current-season h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.current-season p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta-button {
  background-color: white;
  color: #007bff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #0056b3;
}

/* League navigation */
.league-nav {
  margin-bottom: 3rem;
}

.nav-header {
  text-align: center;
  margin-bottom: 2rem;
}

.nav-header h2 {
  font-family: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nav-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.nav-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #007bff;
}

/* Inline SVG nav icons (replaces emoji glyphs). stroke="currentColor"
   inherits the accent color set on .nav-card-icon across light/dark/modern. */
.nav-card-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.nav-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.nav-card-description {
  color: #666;
  font-size: 0.95rem;
  transition: color 0.3s;
}

/* Season history */
.season-history {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: background-color 0.3s;
}

.section-header {
  background-color: #333;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.section-header h3 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
}

.season-card {
  padding: 2rem;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.season-card:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.season-card.current {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.season-card.current:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  color: white;
}

.season-card.current .season-title,
.season-card.current .season-status {
  color: white;
}

.season-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.season-status {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.season-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.season-stat {
  text-align: center;
}

.season-stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff;
  transition: color 0.3s;
}

.season-card.current .season-stat-value {
  color: white;
}

.season-stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
  transition: color 0.3s;
}

.season-card.current .season-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.current-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #28a745;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.champion-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.champion-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}


/* Mobile responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .info-sections {
    grid-template-columns: 1fr;
  }

  .seasons-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
    gap: 0.5rem;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .current-season {
    margin: 1.25rem 0 0;
    padding: 1.25rem;
  }
}

/* ====================================================================== */
/* MODERN STYLE OVERRIDES (only apply when data-style-rollout="modern") */
/* ====================================================================== */

[data-style-rollout="modern"] .hero-section,
[data-style-rollout="modern"] .season-history {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

[data-style-rollout="modern"] .hero-logo {
  border: 0;
  box-shadow: none;
}

[data-style-rollout="modern"] .hero-title,
[data-style-rollout="modern"] .nav-card-title,
[data-style-rollout="modern"] .season-title {
  color: #0f172a;
}

[data-style-rollout="modern"] .hero-subtitle,
[data-style-rollout="modern"] .hero-description,
[data-style-rollout="modern"] .nav-card-description,
[data-style-rollout="modern"] .season-status,
[data-style-rollout="modern"] .season-stat-label {
  color: #1f2937;
}

[data-style-rollout="modern"] .current-season {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

[data-style-rollout="modern"] .cta-button {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #2563eb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

[data-style-rollout="modern"] .cta-button:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

[data-style-rollout="modern"] .nav-card,
[data-style-rollout="modern"] .season-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

[data-style-rollout="modern"] .nav-card {
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
}

[data-style-rollout="modern"] .nav-card:hover,
[data-style-rollout="modern"] .season-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

[data-style-rollout="modern"] .nav-card:hover {
  transform: translateY(-6px);
  border-color: #d1d5db;
}

/* Option-C section strip (replaces the dark navy slab) to match the rest of
   the site's section headers. */
[data-style-rollout="modern"] .section-header {
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  background: #f1f5f9;
  box-shadow: none;
  text-align: left;
}

[data-style-rollout="modern"] .section-header h3 {
  color: #1e293b;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

[data-style-rollout="modern"] .season-card.current {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.3);
}

[data-style-rollout="modern"] .season-stat-value,
[data-style-rollout="modern"] .nav-card-icon {
  color: #2563eb;
}

[data-style-rollout="modern"] .nav-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

[data-style-rollout="modern"] .nav-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

[data-style-rollout="modern"] .nav-card-description {
  font-size: 0.95rem;
}

[data-style-rollout="modern"].dark-mode .hero-section,
[data-style-rollout="modern"].dark-mode .season-history,
[data-style-rollout="modern"].dark-mode .nav-card,
[data-style-rollout="modern"].dark-mode .season-card {
  background: linear-gradient(145deg, #1a1f2e, #1e2433);
  border: 1px solid #2d3748;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-style-rollout="modern"].dark-mode .nav-card {
  border-color: #1f2937;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

[data-style-rollout="modern"].dark-mode .nav-card:hover {
  border-color: #334155;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}

[data-style-rollout="modern"].dark-mode .hero-logo {
  border: 0;
  box-shadow: none;
}

[data-style-rollout="modern"].dark-mode .hero-title,
[data-style-rollout="modern"].dark-mode .nav-card-title,
[data-style-rollout="modern"].dark-mode .season-title {
  color: #e5e7eb;
}

[data-style-rollout="modern"].dark-mode .hero-subtitle,
[data-style-rollout="modern"].dark-mode .hero-description,
[data-style-rollout="modern"].dark-mode .nav-card-description,
[data-style-rollout="modern"].dark-mode .season-status,
[data-style-rollout="modern"].dark-mode .season-stat-label {
  color: #cbd5e1;
}

[data-style-rollout="modern"].dark-mode .current-season {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

[data-style-rollout="modern"].dark-mode .cta-button {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #e5e7eb;
  border: 1px solid #2d3748;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

[data-style-rollout="modern"].dark-mode .cta-button:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

[data-style-rollout="modern"].dark-mode .section-header {
  background: #131a29;
  border-bottom: 1px solid #2d3748;
  border-left-color: #60a5fa;
  box-shadow: none;
}

[data-style-rollout="modern"].dark-mode .section-header h3 {
  color: #e5e7eb;
}

[data-style-rollout="modern"].dark-mode .season-card.current {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}

[data-style-rollout="modern"].dark-mode .season-stat-value,
[data-style-rollout="modern"].dark-mode .nav-card-icon {
  color: #9ec5fe;
}

[data-style-rollout="modern"].dark-mode .nav-card-description {
  color: #ccc;
}

/* ====================================================================== */
/* HOME-PAGE HEADER — light, theme-aware chrome                            */
/* The shared global-styles.css header is still dark navy in both themes.  */
/* Scope the light treatment to body.home-page so the landing page matches */
/* the rest of the site without touching login/activate/portal headers.    */
/* ====================================================================== */
[data-style-rollout="modern"] body.home-page header {
  background: linear-gradient(135deg, #ffffff, #eef2f7);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

[data-style-rollout="modern"] body.home-page header h1 {
  color: #0f172a !important;
}

[data-style-rollout="modern"] body.home-page #theme-toggle-btn {
  color: #0f172a;
}

[data-style-rollout="modern"].dark-mode body.home-page header {
  background: linear-gradient(135deg, #0b1324, #0f172a);
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

[data-style-rollout="modern"].dark-mode body.home-page header h1 {
  color: #e5e7eb !important;
}

[data-style-rollout="modern"].dark-mode body.home-page #theme-toggle-btn {
  color: #e5e7eb;
}

@media (max-width: 600px) {
  /* Drop the wordmark on phones — just the floating crest in the header. */
  [data-style-rollout="modern"] body.public-page.home-page header h1 {
    transform: none !important;
  }

  body.home-page header h1 .header-text {
    display: none;
  }
}

/* Compact the league-history cards on phones (they were large for the little
   info they hold). Keep the two stats side-by-side rather than stacking, which
   is what made the cards so tall. */
@media (max-width: 768px) {
  .season-card {
    padding: 1rem 1.25rem;
  }

  .season-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .season-status {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .season-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.6rem;
  }

  .season-stat-value {
    font-size: 1rem;
  }

  .champion-logo {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  [data-style-rollout="modern"] body.home-page .home-main {
    width: calc(100% - 1rem);
    padding: 1rem;
  }

  .hero-section {
    padding: 1.75rem 1rem;
  }

  .nav-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}
