/*
 * FPLai pSEO season Hub — Matchday Editorial surface.
 *
 * This is deliberately separate from pseo-base.css: the base file is shared by
 * every generated page, while these classes belong only to the season Hub.
 * Keep all colour, radius, elevation and type decisions on the v3 token axis.
 */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-tight-var-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-var-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700-latin.woff2') format('woff2');
}

.pseo-hub {
  --pseo-hub-content-gap: clamp(1.25rem, 2vw, 2rem);
  --pseo-hub-hero-ink: var(--v3-card);
  --pseo-hub-hero-soft: var(--v3-card);
  color: var(--v3-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

.pseo-hub * {
  min-width: 0;
}

.pseo-hub a:focus-visible,
.pseo-hub button:focus-visible,
.pseo-hub input:focus-visible,
.pseo-hub select:focus-visible {
  outline: 3px solid var(--v3-pink);
  outline-offset: 3px;
}

.pseo-hub-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: stretch;
  margin-bottom: var(--pseo-hub-content-gap);
  padding: clamp(1.35rem, 4vw, 3.5rem);
  border: 1px solid var(--v3-border-strong);
  border-radius: var(--v3-radius-sheet);
  background: var(--v3-purple);
  box-shadow: var(--v3-shadow-card);
  color: var(--pseo-hub-hero-ink);
}

.pseo-hub-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.pseo-hub-eyebrow,
.pseo-hub-section-kicker,
.pseo-hub-card-state {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pseo-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--v3-border-strong);
  border-radius: var(--v3-radius-pill);
  color: var(--pseo-hub-hero-ink);
}

.pseo-hub-hero-title {
  margin: 0;
  color: var(--pseo-hub-hero-ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.pseo-hub-hero-promise {
  max-width: 42rem;
  margin: 0;
  color: var(--pseo-hub-hero-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.pseo-hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pseo-hub .cta-button,
.pseo-hub-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--v3-radius-pill);
  background: var(--pseo-hub-hero-ink);
  color: var(--v3-purple);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.pseo-hub .cta-button:hover,
.pseo-hub-primary-cta:hover {
  background: var(--v3-blush);
  color: var(--v3-purple) !important;
  transform: translateY(-1px);
}

.pseo-hub-secondary-cta,
.pseo-hub-final-link {
  color: var(--pseo-hub-hero-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--v3-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.pseo-hub-secondary-cta:hover,
.pseo-hub-final-link:hover {
  color: var(--pseo-hub-hero-ink);
  text-decoration-color: var(--v3-pink-text);
}

.pseo-hub-section {
  margin-bottom: var(--pseo-hub-content-gap);
  padding: clamp(1.1rem, 2.8vw, 2rem);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-card);
  background: var(--v3-sheet);
}

.pseo-hub-section--plain {
  padding: 0;
  border: 0;
  background: transparent;
}

.pseo-hub-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pseo-hub-section-title {
  margin: 0;
  color: var(--v3-ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.pseo-hub-section-kicker {
  color: var(--v3-pink-text);
}

.pseo-hub-section-intro,
.pseo-hub-method-copy {
  color: var(--v3-ink-soft);
  line-height: 1.7;
}

.pseo-hub-section-intro {
  max-width: 52rem;
  margin: -0.35rem 0 1rem;
}

.pseo-hub-decision-grid,
.pseo-hub-card-grid,
.pseo-hub-planning-grid,
.pseo-hub-reference-grid {
  display: grid;
  gap: 0.9rem;
}

.pseo-hub-decision-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pseo-hub-card-grid,
.pseo-hub-planning-grid,
.pseo-hub-reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pseo-hub-decision-card,
.pseo-hub-feature-card,
.pseo-hub-planning-card,
.pseo-hub-reference-link {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-card);
  background: var(--v3-card);
  color: var(--v3-ink);
  text-decoration: none;
}

.pseo-hub-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pseo-hub-feature-card > :not(.pseo-hub-player-hit-area) {
  position: relative;
  z-index: 1;
}

.pseo-hub-player-hit-area {
  position: absolute;
  z-index: 2;
  top: 0.35rem;
  right: 0.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: clamp(5.5rem, 32%, 8.5rem);
  height: clamp(7rem, 70%, 10rem);
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.pseo-hub-player-hit-area.is-missing {
  display: none;
}

.pseo-hub-player-name {
  color: inherit;
  text-decoration: none;
}

.pseo-hub-player-visual {
  position: static;
  z-index: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
  pointer-events: auto;
}

.pseo-hub-player-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 0.7rem 0.8rem color-mix(in srgb, var(--v3-ink) 18%, transparent));
  pointer-events: auto;
}

.pseo-hub-player-fallback {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--v3-ink-soft);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.pseo-hub-decision-card:nth-child(4n + 1),
.pseo-hub-feature-card:nth-child(3n + 1) { background: var(--v3-card); }
.pseo-hub-decision-card:nth-child(4n + 2),
.pseo-hub-feature-card:nth-child(3n + 2) { background: var(--v3-lavender); }
.pseo-hub-decision-card:nth-child(4n + 3),
.pseo-hub-feature-card:nth-child(3n + 3) { background: var(--v3-mint); }
.pseo-hub-decision-card:nth-child(4n + 4) { background: var(--v3-blush); }

.pseo-hub-decision-card[href],
.pseo-hub-feature-card[href],
.pseo-hub-planning-card[href],
.pseo-hub-reference-link[href] {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pseo-hub-decision-card[href]:hover,
.pseo-hub-feature-card[href]:hover,
.pseo-hub-planning-card[href]:hover,
.pseo-hub-reference-link[href]:hover {
  border-color: var(--v3-border-strong);
  box-shadow: var(--v3-shadow-card);
  color: var(--v3-ink);
  transform: translateY(-2px);
}

.pseo-hub-card-state {
  color: var(--v3-ink-soft);
}

.pseo-hub-card-title {
  margin: 0;
  color: var(--v3-ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
}

.pseo-hub-card-takeaway {
  flex: 1;
  margin: 0;
  color: var(--v3-ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.pseo-hub-card-meta {
  color: var(--v3-ink-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1.4;
}

.pseo-hub-card-link-label {
  color: var(--v3-pink-text);
  font-size: 0.8rem;
  font-weight: 750;
}

.pseo-hub-search {
  position: relative;
}

.pseo-hub-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pseo-hub-search-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--v3-border-input);
  border-radius: var(--v3-radius-pill);
  background: var(--v3-card);
  color: var(--v3-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
}

.pseo-hub-search-input:focus {
  border-color: var(--v3-pink-text);
  background: var(--v3-card-raised);
}

.pseo-hub-search-input::placeholder {
  color: var(--v3-ink-soft);
}

.pseo-hub-search-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  max-height: 24rem;
  overflow-y: auto;
  border: 1px solid var(--v3-border-strong);
  border-radius: 1rem;
  background: var(--v3-card);
  box-shadow: var(--v3-shadow-card);
}

.pseo-hub-search-results[hidden] {
  display: none;
}

.pseo-hub-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--v3-border);
  color: var(--v3-ink);
  text-decoration: none;
}

.pseo-hub-search-result:last-child {
  border-bottom: 0;
}

.pseo-hub-search-result:hover,
.pseo-hub-search-result.is-selected {
  background: var(--v3-card-raised);
  color: var(--v3-ink);
}

.pseo-hub-search-result:focus-visible {
  position: relative;
  z-index: 1;
}

.pseo-hub-search-result-image,
.pseo-hub-search-result-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  object-fit: contain;
}

.pseo-hub-search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v3-border-strong);
  border-radius: 0.65rem;
  color: var(--v3-pink-text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
}

.pseo-hub-search-result-icon::before {
  content: '→';
}

.pseo-hub-search-result-name {
  flex: 1;
  color: var(--v3-ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.pseo-hub-search-result-team {
  color: var(--v3-ink-soft);
  font-size: 0.8rem;
  font-weight: 450;
}

.pseo-hub-search-result-type {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-pill);
  color: var(--v3-ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pseo-hub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
}

.pseo-hub-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  color: var(--v3-ink);
  font-size: 0.88rem;
}

.pseo-hub-table th,
.pseo-hub-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--v3-border);
  text-align: left;
  vertical-align: middle;
}

.pseo-hub-table th {
  background: var(--v3-card);
  color: var(--v3-ink-soft);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pseo-hub-table tr:last-child td {
  border-bottom: 0;
}

.pseo-hub-table a {
  color: var(--v3-ink);
  font-weight: 700;
}

.pseo-hub-table a:hover {
  color: var(--v3-pink-text);
}

.pseo-hub-table-player,
.pseo-hub-table-team {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.pseo-hub-table-player img {
  width: 2.5rem;
  height: 3rem;
  object-fit: contain;
  object-position: bottom center;
}

.pseo-hub-table-team img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.pseo-hub-table-player-visual,
.pseo-hub-table-team-visual {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.pseo-hub-table-player-visual.is-missing,
.pseo-hub-table-team-visual.is-missing {
  visibility: hidden;
}

.pseo-hub-table-player-visual {
  width: 2.5rem;
  height: 3rem;
}

.pseo-hub-table-team-visual {
  width: 1.5rem;
  height: 1.5rem;
}

.pseo-hub-table-player-visual img,
.pseo-hub-table-team-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pseo-hub-table-fallback {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--v3-ink-muted);
  font-size: 0.9rem;
}

.pseo-hub-table .pseo-hub-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.pseo-hub-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.pseo-hub-wildcard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pseo-hub-wildcard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-pill);
  background: var(--v3-card);
  color: var(--v3-ink);
  text-decoration: none;
}

.pseo-hub-wildcard-link:hover {
  border-color: var(--v3-border-strong);
  color: var(--v3-ink);
  box-shadow: var(--v3-shadow-card);
}

.pseo-hub-team-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: var(--v3-card);
  color: var(--v3-ink);
  text-decoration: none;
}

.pseo-hub-team-card:hover {
  border-color: var(--v3-border-strong);
  color: var(--v3-ink);
  box-shadow: var(--v3-shadow-card);
}

.pseo-hub-team-card img {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  object-fit: contain;
}

.pseo-hub-team-name {
  display: block;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.pseo-hub-team-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--v3-ink-soft);
  font-size: 0.72rem;
}

.pseo-hub-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--v3-border-strong);
  border-radius: 1rem;
  color: var(--v3-ink-soft);
  line-height: 1.6;
}

.pseo-hub-faq {
  display: grid;
  gap: 0.6rem;
}

.pseo-hub-faq details {
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: var(--v3-card);
}

.pseo-hub-faq summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  color: var(--v3-ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

.pseo-hub-faq-answer {
  padding: 0 1rem 1rem;
  color: var(--v3-ink-soft);
  line-height: 1.65;
}

.pseo-hub-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--pseo-hub-content-gap);
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--v3-radius-card);
  background: var(--v3-purple);
  color: var(--v3-ink);
}

.pseo-hub-final-cta h2 {
  margin: 0;
  color: var(--pseo-hub-hero-ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.pseo-hub-final-cta p {
  margin: 0.4rem 0 0;
  color: var(--pseo-hub-hero-soft);
  line-height: 1.6;
}

.pseo-hub-final-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pseo-hub-hero {
    grid-template-columns: 1fr;
  }

  .pseo-hub-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pseo-hub-card-grid,
  .pseo-hub-planning-grid,
  .pseo-hub-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pseo-hub-hero {
    padding: 1.15rem;
    border-radius: var(--v3-radius-card);
  }

  .pseo-hub-hero-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .pseo-hub-decision-grid,
  .pseo-hub-card-grid,
  .pseo-hub-planning-grid,
  .pseo-hub-reference-grid {
    grid-template-columns: 1fr;
  }

  .pseo-hub-section {
    padding: 1rem;
  }

  .pseo-hub-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pseo-hub .cta-button,
  .pseo-hub-primary-cta,
  .pseo-hub-decision-card[href],
  .pseo-hub-feature-card[href],
  .pseo-hub-planning-card[href],
  .pseo-hub-reference-link[href] {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .pseo-hub {
    --pseo-hub-hero-ink: var(--v3-ink);
    --pseo-hub-hero-soft: var(--v3-ink-soft);
  }

  .pseo-hub .cta-button,
  .pseo-hub-primary-cta {
    background: var(--pseo-hub-hero-ink);
    color: var(--v3-canvas);
  }

  .pseo-hub-hero,
  .pseo-hub-final-cta {
    color: var(--v3-ink);
  }

  .pseo-hub .cta-button:hover,
  .pseo-hub-primary-cta:hover {
    background: var(--v3-card-raised);
    color: var(--v3-ink) !important;
  }

  .pseo-hub-secondary-cta,
  .pseo-hub-final-link {
    text-decoration-color: var(--v3-pink-text);
  }
}
