/* ==============================================
   Stat Leaders — Tabbed template (Puck Press)
   Theme-side overrides for the [pp-stat-leaders-*]
   "tabbed" widget on the Statistics page.

   The plugin already injects the Havoc color palette via
   its own --pp-tabbed-* CSS variables (red accents, smoke
   surfaces, dark text), so this file does NOT touch color —
   it aligns the widget's typography, surfaces, and spacing
   with the rest of the site (Oswald UI type, bordered white
   cards @ 6px radius, roster-style tab bar).

   Scoped to the container's double class so these rules out-
   rank the plugin's own (0,2,0) selectors without !important.
   ============================================== */

/* ── Container — sit on the page, not a white panel ── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container {
  background: transparent;
  font-family: 'Oswald', sans-serif;
}

/* Breathing room between the stacked skaters / goalies widgets */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container
  ~ .pp-stat-leaders-tabbed-container.tabbed_leaders_container {
  margin-top: 28px;
}

/* ── Tab bar — mirror the roster filter tabs ───────── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-tabs {
  border-bottom: 1px solid var(--border);
  gap: 2px;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-tab {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom-width: 2px;
}

/* ── Cards row ─────────────────────────────────────── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-panels {
  padding-top: 18px;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-cards {
  gap: 10px;
}

/* ── Card — match the shared .ch-card surface ──────── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-card:hover {
  border-color: rgba(168, 43, 39, 0.45);
  box-shadow: 0 4px 14px rgba(47, 51, 49, 0.08);
}

/* Category leader (first card) gets a persistent red rail */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container
  .pp-tabbed-card:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

/* ── Headshot — warm ring instead of the stock grey ── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-headshot {
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

/* ── Card text ─────────────────────────────────────── */
/* Jersey / position label (color stays brand-red via plugin var) */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-player-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-player-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-player-team {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The big number — match the roster's heavy Oswald stat values */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Header (only if show_header="true") ───────────── */
.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-more-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-stat-leaders-tabbed-container.tabbed_leaders_container .pp-tabbed-empty {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
