/**
 * BridgeUp Results — Player Leaderboard block styles
 * Theme-aware (jasny/ciemny).
 */

.bhr-leaderboard-wrap {
  --bhr-bg:      #ffffff;
  --bhr-card-bg: #f7f9fc;
  --bhr-border:  #dce1e8;
  --bhr-text:    #1d2327;
  --bhr-muted:   #6b7280;
  --bhr-accent:  var(--wp--preset--color--theme-palette-1, #0073aa);
  --bhr-radius:  10px;
  --bhr-font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  font-family: var(--bhr-font);
  color: var(--bhr-text);
  max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  .bhr-leaderboard-wrap {
    --bhr-bg:      #0f1724;
    --bhr-card-bg: #131c2b;
    --bhr-border:  #22324a;
    --bhr-text:    #e0e6ee;
    --bhr-muted:   #8899aa;
  }
}

.bhr-lb-title { margin: 0 0 12px; }

/* ── Metric tabs ── */
.bhr-lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bhr-lb-tab {
  padding: 6px 12px;
  border: 1px solid var(--bhr-border);
  border-radius: 8px;
  background: var(--bhr-bg);
  color: var(--bhr-text);
  font-size: 13px;
  cursor: pointer;
}
.bhr-lb-tab:hover { border-color: var(--bhr-accent); }
.bhr-lb-tab.is-active { background: var(--bhr-accent); color: #fff; border-color: var(--bhr-accent); }

/* ── Filters ── */
.bhr-lb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bhr-lb-year,
.bhr-lb-type,
.bhr-lb-min {
  padding: 6px 10px;
  border: 1px solid var(--bhr-border);
  border-radius: 8px;
  background: var(--bhr-bg);
  color: var(--bhr-text);
  font-size: 13px;
}

/* ── States ── */
.bhr-lb-loading, .bhr-lb-empty {
  padding: 18px;
  border: 1px dashed var(--bhr-border);
  border-radius: var(--bhr-radius);
  color: var(--bhr-muted);
  text-align: center;
}

/* ── Table ── */
.bhr-lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bhr-lb-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--bhr-border);
  color: var(--bhr-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bhr-lb-table td { padding: 9px 10px; border-bottom: 1px solid var(--bhr-border); }
.bhr-lb-table tr:hover td { background: rgba(0,115,170,0.06); }
.bhr-lb-rank { width: 36px; font-weight: 700; text-align: center; }
.bhr-lb-value { font-weight: 700; color: var(--bhr-accent); text-align: right; white-space: nowrap; }
.bhr-lb-count { text-align: right; color: var(--bhr-muted); white-space: nowrap; }
.bhr-lb-pid { color: var(--bhr-muted); font-size: 12px; }
/* Wyższa specyficzność niż .bhr-lb-table a — PID ma zostać szary, nie akcentowy. */
.bhr-lb-table a.bhr-pid-link { color: var(--bhr-muted); text-decoration: none; }
.bhr-lb-table a.bhr-pid-link:hover { text-decoration: underline; }
.bhr-lb-table a { color: var(--bhr-accent); text-decoration: none; }
.bhr-lb-table a:hover { text-decoration: underline; }
