/* vc-home.css — page-scoped styles for the league home pages.
   Originally extracted from public/vc/home.html inline <style> so /ipl and
   /ucl can share the same hero/team-widget/insights/tools layout. Loaded
   only by home.html and ucl/index.html — not by tool pages. */

.home-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.home-hero {
  padding: 28px;
  text-align: right;
}
.hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.hero-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vc-accent);
  margin-bottom: 10px;
}
.hero-copy .vc-page-title {
  color: var(--vc-light);
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero-copy .vc-page-subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 1.06rem;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-action {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 108px;
}
.hero-action strong {
  font-size: 1rem;
  color: var(--vc-light);
}
.hero-action span {
  font-size: 0.88rem;
  color: var(--vc-text-sub);
  line-height: 1.5;
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--vc-text-soft);
  font-size: 0.83rem;
  font-weight: 600;
}
.team-widget {
  display: grid;
  gap: 16px;
  text-align: right;
}
.team-widget-shell {
  background:
    radial-gradient(circle at top left, rgba(219,181,128,0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(135deg, rgba(39,52,73,0.98) 0%, rgba(15,23,42,0.98) 100%);
  border: 1px solid color-mix(in srgb, var(--vc-accent) 28%, var(--vc-border) 72%);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(2,6,23,0.28);
}
.team-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: right;
  position: relative;
  min-height: 34px;
}
.team-widget-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--vc-text);
  font-family: inherit;
}
.team-widget-subtitle {
  color: var(--vc-text-sub);
  font-size: 0.92rem;
  margin-top: 4px;
  line-height: 1.5;
  font-family: inherit;
}
.team-widget-link,
.team-widget-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.team-widget-link {
  color: var(--vc-accent);
  padding-top: 4px;
}
.team-widget-link:hover { color: var(--vc-accent-dim); }
.team-widget-disconnect {
  display: none;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1;
}
.team-widget-empty {
  color: var(--vc-text-sub);
  line-height: 1.7;
  font-size: 0.96rem;
}
.team-widget-empty-panel {
  background: color-mix(in srgb, var(--vc-surface2) 72%, transparent);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  padding: 18px;
  text-align: right;
}
.team-widget-empty-panel.centered {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.team-widget-empty-panel.centered .team-widget-actions {
  justify-content: center;
}
.team-widget-finder {
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}
.team-widget-finder .team-widget-title {
  text-align: center;
  font-size: 1.14rem;
  font-weight: 700;
  font-family: inherit;
}
.team-widget-finder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.team-widget-field {
  display: grid;
  gap: 6px;
  flex: 1 1 280px;
  width: 100%;
}
.team-widget-field label {
  font-size: 0.82rem;
  color: var(--vc-text-sub);
  text-align: center;
}
.team-widget-field input[type="text"] {
  width: 100%;
  background: var(--vc-surface2);
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  color: var(--vc-text);
  font-size: 0.92rem;
  padding: 10px 12px;
  font-family: inherit;
}
.team-widget-field input[type="text"]::placeholder {
  color: var(--vc-text-sub);
}
.team-widget-search-btn {
  min-width: 92px;
  margin: 0 auto;
}
.team-widget-finder-empty {
  display: none;
  color: var(--vc-text-sub);
  font-size: 0.84rem;
}
.team-widget-finder-empty.show {
  display: block;
}
.team-widget-finder-results {
  display: none;
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--vc-surface) 84%, transparent);
}
.team-widget-finder-results.show {
  display: block;
}
.team-widget-finder-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vc-border);
}
.team-widget-finder-result:last-child {
  border-bottom: 0;
}
.team-widget-finder-result-main {
  min-width: 0;
}
.team-widget-finder-result-title {
  color: var(--vc-light);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
}
.team-widget-finder-result-meta {
  color: var(--vc-text-sub);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 2px;
}
.team-widget-pick-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dim) 100%);
  color: #fff;
  font-family: inherit;
}
.team-widget-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.team-stat {
  background: color-mix(in srgb, var(--vc-surface2) 76%, transparent);
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.team-stat-label {
  font-size: 0.74rem;
  color: var(--vc-text-sub);
  margin-bottom: 5px;
}
.team-stat-value {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--vc-light);
}
.team-stat-subvalue {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--vc-text-sub);
}
.rank-move-inline {
  font-size: 0.82rem;
  font-weight: 700;
  margin-right: 6px;
}
.rank-move-inline.up { color: var(--vc-green); }
.rank-move-inline.down { color: var(--vc-red); }
.rank-move-inline.flat { color: var(--vc-text-sub); }
.team-widget-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.team-widget-cta {
  background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dim) 100%);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
}
.team-widget-cta.secondary {
  background: color-mix(in srgb, var(--vc-surface2) 76%, transparent);
  border: 1px solid var(--vc-border);
  color: var(--vc-text);
}
.team-widget-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vc-surface2) 82%, transparent);
  border: 1px solid var(--vc-border);
  color: var(--vc-text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
}
.team-widget-chip strong {
  color: var(--vc-text);
  font-weight: 800;
  font-family: inherit;
}
.team-widget-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 14px;
}
.home-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dash-widget {
  padding: 22px;
  text-align: right;
}
.dash-widget h3 {
  font-size: 1.02rem;
  color: var(--vc-light);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-widget h3 .wicon { font-size: 1.1rem; }
.dash-widget h3 a {
  margin-right: auto;
  font-size: 0.86rem;
  color: var(--vc-accent-dim);
  text-decoration: none;
}
.dash-widget h3 a:hover { color: var(--vc-accent); }
.wicon-gw {
  font-size: 0.78rem;
  background: var(--vc-badge-bg);
  color: var(--vc-text-sub);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.pick-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--vc-border);
  font-size: 0.95rem;
  gap: 10px;
}
.pick-row:last-child { border-bottom: none; }
.tstat-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--vc-border);
  font-size: 0.95rem;
  gap: 10px;
}
.tstat-row:last-child { border-bottom: none; }
.pick-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vc-accent-dim);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pick-rank.rank-runnerup {
  background: var(--vc-badge-bg);
  color: var(--vc-text-sub);
}
.medal {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.tstat-row .team-logo {
  width: 22px;
  height: 22px;
}
.pick-name,
.tstat-name {
  min-width: 0;
  flex: 1;
  font-weight: 500;
}
.pick-meta-inline,
.tstat-opp {
  font-size: 0.72rem;
  color: var(--vc-text-sub);
  margin-right: 6px;
  white-space: nowrap;
}
.pick-meta-inline .team-logo {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 2px;
}
.pick-xpts,
.tstat-val {
  font-weight: 700;
  color: var(--vc-accent);
  min-width: 42px;
  text-align: left;
}
.tstat-val {
  min-width: 52px;
}
.alert-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
}
.pick-xpts.susp-red {
  color: var(--vc-red);
}

/* Skeleton loading */
.skel {
  background: linear-gradient(90deg, var(--vc-surface2) 25%, var(--vc-border) 50%, var(--vc-surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 5px;
  height: 16px;
  margin-bottom: 10px;
}
.skel.wide { width: 100%; }
.skel.med { width: 70%; }
.skel.short { width: 40%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

html[data-vc-theme="light"] .hero-action,
html[data-vc-theme="light"] .hero-chip,
html[data-vc-theme="light"] .team-widget-empty-panel,
html[data-vc-theme="light"] .team-stat,
html[data-vc-theme="light"] .team-widget-cta.secondary,
html[data-vc-theme="light"] .team-widget-chip {
  background: rgba(255,255,255,0.88);
  border-color: rgba(148,163,184,0.2);
  box-shadow: 0 10px 24px rgba(148,163,184,0.08);
}

html[data-vc-theme="light"] .team-widget-shell {
  background:
    radial-gradient(circle at top left, rgba(192,138,58,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,251,0.98) 100%);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 20px 42px rgba(30,41,59,0.14);
}

html[data-vc-theme="light"] .team-widget-finder-results {
  border-color: #dbe4ee;
  background: #f8fafc;
}

html[data-vc-theme="light"] .team-widget-finder-result {
  border-bottom-color: #e2e8f0;
  background: #ffffff;
}

html[data-vc-theme="light"] .team-widget-finder-result:nth-child(even) {
  background: #f8fafc;
}

html[data-vc-theme="light"] .team-widget-finder-result-title,
html[data-vc-theme="light"] .team-widget-title,
html[data-vc-theme="light"] .team-widget-finder .team-widget-title,
html[data-vc-theme="light"] .team-stat-value,
html[data-vc-theme="light"] .team-widget-chip strong,
html[data-vc-theme="light"] .dash-widget h3 {
  color: #172554;
}

html[data-vc-theme="light"] .team-widget-subtitle,
html[data-vc-theme="light"] .team-widget-empty,
html[data-vc-theme="light"] .team-widget-finder-empty,
html[data-vc-theme="light"] .team-widget-field label,
html[data-vc-theme="light"] .team-widget-finder-result-meta,
html[data-vc-theme="light"] .team-stat-label,
html[data-vc-theme="light"] .team-stat-subvalue,
html[data-vc-theme="light"] .team-widget-chip,
html[data-vc-theme="light"] .rank-move-inline.flat {
  color: #64748b;
}

html[data-vc-theme="light"] .team-widget-link,
html[data-vc-theme="light"] .dash-widget h3 a {
  color: #1d4ed8;
}

html[data-vc-theme="light"] .team-widget-link:hover,
html[data-vc-theme="light"] .dash-widget h3 a:hover {
  color: #1e3a8a;
}

html[data-vc-theme="light"] .team-widget-field input[type="text"] {
  background: #ffffff;
  border-color: #dbe4ee;
  color: #172554;
}

html[data-vc-theme="light"] .team-widget-field input[type="text"]::placeholder {
  color: #94a3b8;
}

html[data-vc-theme="light"] .team-widget-cta.secondary {
  color: #172554;
}

html[data-vc-theme="light"] .dash-widget {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.98));
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 18px 36px rgba(30,41,59,0.12);
}

html[data-vc-theme="light"] #topPicks,
html[data-vc-theme="light"] #suspAlerts,
html[data-vc-theme="light"] #topCS,
html[data-vc-theme="light"] #topGoals,
html[data-vc-theme="light"] #uclTopScorers,
html[data-vc-theme="light"] #uclSuspAlerts,
html[data-vc-theme="light"] #uclTopCS,
html[data-vc-theme="light"] #uclTopGoals {
  display: grid;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

html[data-vc-theme="light"] .pick-row,
html[data-vc-theme="light"] .tstat-row {
  padding: 10px 12px;
  border-bottom-color: #e2e8f0;
  background: #ffffff;
  color: #172554;
}

html[data-vc-theme="light"] .pick-row:nth-child(even),
html[data-vc-theme="light"] .tstat-row:nth-child(even) {
  background: #f8fafc;
}

html[data-vc-theme="light"] .pick-name,
html[data-vc-theme="light"] .tstat-name {
  font-weight: 700;
  color: #172554;
}

html[data-vc-theme="light"] .pick-meta-inline,
html[data-vc-theme="light"] .tstat-opp {
  color: #64748b;
}

html[data-vc-theme="light"] .pick-xpts,
html[data-vc-theme="light"] .tstat-val {
  color: #1d4ed8;
}

html[data-vc-theme="light"] .wicon-gw,
html[data-vc-theme="light"] .pick-rank.rank-runnerup {
  background: #e8eef8;
  color: #475569;
}

.tools-section {
  display: grid;
  gap: 16px;
}
.tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tools-section > h3 {
  font-size: 1.14rem;
  color: var(--vc-light);
}
.tools-note {
  font-size: 0.9rem;
  color: var(--vc-text-sub);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tools-grid .vc-card {
  text-align: right;
  min-height: 170px;
}
.tools-grid .vc-card .icon {
  margin: 0 0 14px;
}
.footer-strip {
  text-align: center;
  padding-top: 8px;
  color: var(--vc-text-sub);
  font-size: 0.85rem;
}
.footer-strip p + p {
  margin-top: 4px;
}

@media (min-width: 769px) {
  .home-shell {
    max-width: 900px;
    gap: 0;
  }
  .home-hero {
    padding: 0 0 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .hero-header {
    display: block;
  }
  .hero-kicker,
  .hero-chip-row,
  .hero-actions {
    display: none;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .vc-page-title {
    font-size: 2.4rem;
    color: var(--vc-accent);
  }
  .hero-copy .vc-page-subtitle {
    max-width: none;
    font-size: 1.15rem;
  }
  .team-widget {
    margin-bottom: 16px;
  }
  .team-widget-head {
    justify-content: center;
    text-align: center;
  }
  .team-widget-link {
    position: absolute;
    left: 0;
    top: 0;
  }
  .team-widget-disconnect {
    position: absolute;
    right: 0;
    top: 0;
  }
  .team-widget-actions-row {
    justify-content: center;
  }
  .home-insights {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .tools-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--vc-border);
  }
  .tools-header {
    margin-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    display: none;
  }
  .hero-header,
  .home-insights,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .team-widget-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-shell {
    gap: 18px;
  }
  .home-hero {
    padding: 20px;
  }
  .hero-copy .vc-page-title {
    font-size: 2rem;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .team-widget-head {
    min-height: 0;
    flex-direction: column;
  }
  .team-widget-head .hero-kicker,
  .team-widget-head .team-widget-title {
    display: none;
  }
  .team-widget-link {
    order: 2;
    padding-top: 0;
  }
  .team-widget-disconnect {
    order: 3;
  }
  .team-widget-summary {
    grid-template-columns: 1fr 1fr;
  }
  .team-widget-finder-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .team-widget-search-btn,
  .team-widget-pick-btn {
    width: 100%;
  }
  .team-widget-empty-panel,
  .team-widget-empty-panel.centered {
    padding: 10px 10px 8px;
  }
  .team-widget-finder {
    gap: 2px;
  }
  .team-widget-finder .team-widget-title {
    margin-bottom: 0;
    line-height: 1.2;
  }
  .team-widget-field {
    gap: 2px;
  }
  .team-widget-field label {
    margin: 0;
    line-height: 1.35;
  }
  .team-widget-field input[type="text"] {
    padding: 8px 12px;
  }
  .team-widget-search-btn {
    min-width: 0;
    margin: 0;
    padding: 8px 14px;
  }
  .team-widget-finder-empty {
    margin-top: 2px;
  }
  .team-widget-shell {
    padding-bottom: 12px;
  }
  .team-widget-finder-result {
    grid-template-columns: 1fr;
  }
  .dash-widget {
    padding: 18px;
  }
  .tools-grid .vc-card {
    min-height: 0;
  }
}
</content>
