/**
 * LSL50 Dual UX — Public league site + shared polish
 * Navy/gold broadcast. No admin chrome on public surfaces.
 */

/* ── Type ── */
body.min-h-full {
  font-family: var(--lsl-font-sans);
}

.lsl-brand-wordmark strong,
.lsl-page-title,
.lsl-hero-home h1,
.lsl-section-hero h1,
.lsl-gc-score,
.lsl-leader-stat,
.lsl-feature-name,
.lsl-brand-kicker {
  font-family: var(--lsl-font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lsl-section-title {
  font-family: var(--lsl-font-display);
  letter-spacing: 0.16em;
}

/* ── Public header / nav ── */
.lsl-public-header-inner {
  position: relative;
}

.lsl-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.lsl-nav-toggle span {
  display: block;
  height: 2px;
  background: #fafafa;
  border-radius: 2px;
}

.lsl-public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.lsl-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.lsl-nav-group--more {
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lsl-nav-more-label {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  width: 100%;
  margin: 8px 0 4px;
}

.lsl-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lsl-text-muted);
  transition: color var(--lsl-duration-fast) var(--lsl-ease-out),
    background var(--lsl-duration-fast) var(--lsl-ease-out);
}

.lsl-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lsl-nav-link.is-active {
  color: var(--lsl-brand-gold);
  background: rgba(215, 167, 47, 0.1);
  box-shadow: inset 0 0 0 1px rgba(215, 167, 47, 0.35);
}

.lsl-staff-link {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lsl-staff-link:hover {
  color: var(--lsl-brand-gold-dark);
}

@media (max-width: 900px) {
  .lsl-nav-toggle {
    display: inline-flex;
  }

  .lsl-public-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: rgba(6, 27, 59, 0.98);
    border-bottom: 3px solid var(--lsl-brand-gold-dark);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .lsl-public-nav.is-open {
    display: flex;
  }

  .lsl-nav-group,
  .lsl-nav-group--more {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
  }

  .lsl-nav-more-label {
    display: block;
  }

  .lsl-nav-link {
    width: 100%;
  }
}

/* ── Home hero / Game Center stage ── */
.lsl-home-hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  margin: -28px -16px 8px;
  padding: 28px 16px 20px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(215, 167, 47, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(10, 37, 72, 0.9), transparent 50%),
    linear-gradient(160deg, #061b3b 0%, #0a2548 45%, #0f0f11 100%);
  border-bottom: 3px solid var(--lsl-brand-gold-dark);
  animation: lsl-fade-up 0.55s var(--lsl-ease-out) both;
}

@media (min-width: 640px) {
  .lsl-home-hero-stage {
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
    padding: 32px 28px 24px;
  }
}

.lsl-home-hero-stage .lsl-brand-wordmark-hero {
  margin-bottom: 10px;
}

.lsl-home-hero-stage .lsl-brand-wordmark-hero strong {
  display: block;
  font-family: var(--lsl-font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
}

.lsl-home-hero-stage .lsl-brand-wordmark-hero span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

.lsl-hero-home {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 0 4px !important;
}

.lsl-hero-home h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
  max-width: 18ch;
  line-height: 1.05;
}

.lsl-hero-home p {
  max-width: 42ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.lsl-home-hero-stage .lsl-gc {
  margin-top: 8px;
  animation: lsl-fade-up 0.65s 0.08s var(--lsl-ease-out) both;
}

.lsl-gc.is-live .lsl-gc-score,
.lsl-gc[data-mode="live"] .lsl-gc-score {
  animation: lsl-live-pulse 2.4s var(--lsl-ease-in-out) infinite;
}

@keyframes lsl-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lsl-live-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(249, 115, 22, 0.45); }
}

.lsl-reveal {
  animation: lsl-fade-up 0.5s var(--lsl-ease-out) both;
}

.lsl-reveal-delay-1 { animation-delay: 0.06s; }
.lsl-reveal-delay-2 { animation-delay: 0.12s; }
.lsl-reveal-delay-3 { animation-delay: 0.18s; }

/* ── Leaders strip presence ── */
.lsl-leaders-home {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
}

.lsl-leaders-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.lsl-leader-card {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(26, 26, 30, 0.95), rgba(15, 15, 17, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--lsl-brand-gold-dark);
  overflow: hidden;
}

.lsl-leader-card::before {
  content: attr(data-number);
  position: absolute;
  right: 8px;
  top: 4px;
  font-family: var(--lsl-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(215, 167, 47, 0.12);
  pointer-events: none;
}

.lsl-leader-media {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.lsl-leader-photo,
.lsl-leader-photo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #0a2548;
  border: 2px solid rgba(215, 167, 47, 0.45);
  flex-shrink: 0;
}

.lsl-leader-photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--lsl-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lsl-brand-gold);
}

.lsl-leader-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lsl-brand-gold);
}

.lsl-leader-name {
  font-family: var(--lsl-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}

.lsl-leader-team {
  font-size: 12px;
  color: var(--lsl-text-muted);
  margin-top: 2px;
}

.lsl-leader-stat {
  margin-top: 10px;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
}

.lsl-leader-stat abbr {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lsl-text-muted);
  text-decoration: none;
  margin-right: 6px;
}

/* ── Section heroes (public inner pages) ── */
.lsl-section-hero {
  margin-bottom: 28px;
  padding: 28px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: lsl-fade-up 0.45s var(--lsl-ease-out) both;
}

.lsl-section-hero .lsl-brand-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--lsl-brand-gold);
  font-size: 11px;
}

.lsl-section-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
}

.lsl-section-hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--lsl-text-muted);
  font-size: 0.95rem;
}

.lsl-empty-state-icon {
  display: none;
}

/* ── Leader photos (auto from players.photo_url) ── */
.lsl-leader-avatar {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #0a2548;
  border: 2px solid rgba(215, 167, 47, 0.5);
  flex-shrink: 0;
}

.lsl-leader-avatar--sm {
  width: 40px;
  height: 40px;
}

.lsl-leader-avatar--md {
  width: 56px;
  height: 56px;
}

.lsl-leader-avatar--lg {
  width: 96px;
  height: 96px;
  border-width: 3px;
}

.lsl-leader-avatar--fallback {
  display: grid;
  place-items: center;
  font-family: var(--lsl-font-display);
  font-weight: 700;
  color: var(--lsl-brand-gold);
  text-transform: uppercase;
}

.lsl-leader-avatar--sm.lsl-leader-avatar--fallback { font-size: 0.85rem; }
.lsl-leader-avatar--md.lsl-leader-avatar--fallback { font-size: 1.1rem; }
.lsl-leader-avatar--lg.lsl-leader-avatar--fallback { font-size: 1.75rem; }

.lsl-leader-avatar--team,
.lsl-leader-photo--team {
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.lsl-feature-hero--photo {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(10, 37, 72, 0.85), rgba(26, 26, 30, 0.95));
  border-top: 3px solid var(--lsl-brand-gold-dark);
}

.lsl-leaders-strip .lsl-leader-photo,
.lsl-leaders-strip .lsl-leader-photo-fallback {
  width: 64px;
  height: 64px;
}

/* Season switcher — Primavera | Summer | Histórico */
.lsl-season-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
}

.lsl-season-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lsl-season-tab:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.lsl-season-tab.is-active {
  color: #0a1628;
  background: var(--lsl-brand-gold, #d4af37);
  border-color: var(--lsl-brand-gold, #d4af37);
}

.lsl-season-tab--historico.is-active {
  background: #e8e8ea;
  border-color: #e8e8ea;
  color: #0a1628;
}
