/* =============================================================
   ParlayDesk — the shared Game Center navigation (2026-11-10, BETA).
   Markup: /gc-header.js (server + browser). Used by the app's Game
   Center views and Schedule and by the public NHL Game Center, team,
   player, game and schedule pages.

   Visual consistency pass (2026-11-10): no card frame, gradient or icon
   pills any more. The section tabs are the app's own pill tabs (Stats /
   Research .stats-toggle-btn: 36px, 12px semibold, muted until current,
   current = ParlayDesk blue tint), with the search on the right, over a
   hairline — Community's section row. The page heading under it
   (.gcx-head) is the app's page heading (Stats / Research .parlay-header:
   34px bold centred title, 13px muted subtitle).
   ============================================================= */

.gcx {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 22px; padding: 0 0 14px; box-sizing: border-box; min-width: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: inherit;
  /* Phones' text autosizing would enlarge the tab labels past their
     sized tabs; the row is laid out for these exact sizes. */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.gcx-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tabs: Overview · Teams · Players · Schedule · Research */
.gcx-tabs { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.gcx-home, .gcx-link {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box; height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.04);
  color: var(--muted, #94a3b8); font-size: 12px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.gcx-home.is-active, .gcx-link.is-active {
  background: rgba(59,130,246,.22); border-color: rgba(59,130,246,.45); color: #fff;
}
.gcx-home:focus-visible, .gcx-link:focus-visible { outline: 2px solid var(--accent2, #60a5fa); outline-offset: 2px; }
.gcx-note {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px;
  border-radius: 999px; background: rgba(148,163,184,.14); color: #cbd5e1;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
/* The public pages' auth swap (public-pages.css) is not loaded in the
   app; the app is always signed in, so the note never shows there. */
html:not(.pd-auth-in) .gcx [data-when="in"],
html.pd-auth-in .gcx [data-when="out"] { display: none !important; }

/* Search: Community's "Find bettors" field. */
.gcx-search { position: relative; flex: 0 1 300px; min-width: 0; margin: 0 0 0 auto; }
.gcx-search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7a889e; pointer-events: none; }
.gcx-input {
  box-sizing: border-box; width: 100%; height: 38px; margin: 0; padding: 0 12px 0 36px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.035);
  color: var(--text, #e5e7eb); font: inherit; font-size: 16px; /* ≥16px: no iOS zoom on focus */
}
.gcx-input::placeholder { color: #7a889e; }
.gcx-input:focus { outline: none; border-color: rgba(96,165,250,.6); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.gcx-input::-webkit-search-cancel-button { filter: invert(.7); }

/* An app view's own search in the slot (opts.searchSlot; Overview, Teams,
   Players, Schedule — 2026-11-11): the app's .schedule-teams-input field
   (styles.css: colours, border, focus) at the header's size. One rule for
   every Game Center view, so the four searches look the same. */
.gcx-search--slot .schedule-teams-search { position: relative; max-width: none; margin: 0; }
.gcx-search--slot .schedule-teams-search-icon { left: 12px; }
.gcx-search--slot .schedule-teams-input { height: 38px; padding-left: 36px; border-radius: 10px; font-size: 16px; }

@media (hover: hover) {
  .gcx-home:hover, .gcx-link:hover { background: rgba(255,255,255,.08); color: var(--text, #e5e7eb); }
  .gcx-home.is-active:hover, .gcx-link.is-active:hover { background: rgba(59,130,246,.28); color: #fff; }
}

/* Page heading (landing, Teams, Players, Schedule). */
.gcx-head { margin: 4px 0 22px; text-align: center; }
.gcx-title { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1.15; color: var(--text, #e5e7eb); }
.gcx-title:focus { outline: none; }
.gcx-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted, #94a3b8); }
.gcx-sub .gcx-dot { margin: 0 6px; opacity: .6; }
.gcx-sub .gcx-live { color: #4ade80; font-weight: 600; }

/* Tablets: tabs, then the search on its own full-width row. */
@media (max-width: 900px) {
  .gcx-search { flex: 1 1 100%; margin-left: 0; }
}
/* Phones: the tabs as one even row (Stats' phone tabs), every label
   visible, nothing scrolls sideways. */
@media (max-width: 640px) {
  .gcx { gap: 10px; margin-bottom: 16px; padding-bottom: 12px; }
  .gcx-tabs { flex: 1 1 100%; flex-wrap: nowrap; gap: 4px; }
  /* Each tab as wide as its label, the spare width shared out evenly. */
  .gcx-home, .gcx-link { flex: 1 1 auto; min-width: 0; padding: 0 4px; height: 38px; font-size: 12px; }
  .gcx-link-t, .gcx-home-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .gcx-note { display: none !important; }
  .gcx-input, .gcx-search--slot .schedule-teams-input { height: 42px; }
  .gcx-head { margin-bottom: 16px; }
  .gcx-title { font-size: 26px; }
}
/* Narrow phones (≤ 374px): the four tabs (Overview · Teams · Players ·
   Schedule, since Research left Game Center's tabs on 2026-11-11) still
   share the one row of the ≤ 640px rule above; the old two-row grid for
   five tabs is gone. */
@media (max-width: 374px) {
  .gcx-tabs { gap: 3px; }
  .gcx-home, .gcx-link { padding: 0 2px; }
}
@media (pointer: coarse) {
  .gcx-home, .gcx-link { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .gcx-home, .gcx-link { transition: none; }
}
@media (forced-colors: active) {
  .gcx-home.is-active, .gcx-link.is-active { outline: 2px solid Highlight; }
}
