/* ============================================================
   hrac-report.css — Hráčský report / profil v turnaji
   ============================================================ */

/* ─── Jméno hráče v hlavičce ────────────────────────────────── */
.hrac-name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.hrac-nick {
  font-size: 1rem;
  color: var(--text-muted, #8b949e);
  font-style: italic;
  margin-left: 4px;
}

/* ─── Stats grid ─────────────────────────────────────────────── */
.hr-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 12px;
}

.hr-stat-card {
  background: var(--card-bg, #1e1e2e);
  border: 1px solid var(--border-color, #2d2d44);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 90px;
  text-align: center;
  flex: 1;
  min-width: 80px;
  max-width: 130px;
}

.hr-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
  margin-bottom: 6px;
}

.hr-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary, #e2e8f0);
}

.hr-stat-value.accent { color: var(--accent-primary, #39ff14); }
.hr-stat-value.green  { color: #22c55e; }
.hr-stat-value.red    { color: #ef4444; }
.hr-stat-value.muted  { color: var(--text-muted, #8b949e); font-size: 1.4rem; }

/* Rank card speciální */
.hr-stat-rank .hr-stat-value { font-size: 2rem; }

/* ─── Winrate bar ────────────────────────────────────────────── */
.hr-winrate-wrap {
  margin-bottom: 24px;
}

.hr-winrate-bar {
  height: 8px;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  background: var(--border-color, #2d2d44);
}

.hr-winrate-win  { background: #22c55e; }
.hr-winrate-draw { background: #f59e0b; }
.hr-winrate-loss { background: #ef4444; }

.hr-winrate-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted, #8b949e);
}

.hr-winrate-labels .green { color: #22c55e; }

/* ─── Sekce ──────────────────────────────────────────────────── */
.hr-section {
  margin-bottom: 28px;
}

.hr-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #2d2d44);
}

/* ─── Zápasy ─────────────────────────────────────────────────── */
.hr-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hr-match-row {
  background: var(--card-bg, #1e1e2e);
  border: 1px solid var(--border-color, #2d2d44);
  border-left: 3px solid var(--border-color, #2d2d44);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-match-row.hr-result-win  { border-left-color: #22c55e; }
.hr-match-row.hr-result-loss { border-left-color: #ef4444; }
.hr-match-row.hr-result-draw { border-left-color: #f59e0b; }
.hr-match-row.hr-result-pending { opacity: 0.65; }

.hr-match-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hr-round-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}

.ko-tag {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hr-result-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.hr-result-badge.hr-result-win  { background: rgba(34,197,94,0.12); color: #22c55e; }
.hr-result-badge.hr-result-loss { background: rgba(239,68,68,0.12); color: #ef4444; }
.hr-result-badge.hr-result-draw { background: rgba(245,158,11,0.12); color: #f59e0b; }
.hr-result-badge.pending        { background: rgba(139,148,158,0.12); color: var(--text-muted, #8b949e); }

.hr-match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hr-opponent {
  font-size: 0.95rem;
  color: var(--text-primary, #e2e8f0);
}

.hr-opponent a {
  color: var(--text-primary, #e2e8f0);
  text-decoration: none;
}

.hr-opponent a:hover {
  color: var(--accent-primary, #39ff14);
  text-decoration: underline;
}

.hr-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hr-score {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hr-score.green { color: #22c55e; }
.hr-score.red   { color: #ef4444; }
.hr-score.muted { color: var(--text-muted, #8b949e); }

/* Legs (sety) */
.hr-legs {
  display: flex;
  gap: 4px;
}

.hr-leg {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

.hr-leg.win  { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.hr-leg.loss { color: #ef4444; border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.08); }
.hr-leg.draw { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }

/* ─── Cross-tournament list ──────────────────────────────────── */
.hr-tournaments {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-tournament-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card-bg, #1e1e2e);
  border: 1px solid var(--border-color, #2d2d44);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary, #e2e8f0);
  transition: border-color 0.15s, background 0.15s;
}

.hr-tournament-row:hover {
  border-color: var(--accent-primary, #39ff14);
  background: rgba(57,255,20,0.04);
}

.hr-t-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.hr-t-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hr-t-rank {
  font-weight: 700;
  font-size: 0.9rem;
}

.hr-t-stats {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
}

.hr-t-stats .green  { color: #22c55e; }
.hr-t-stats .red    { color: #ef4444; }
.hr-t-stats .accent { color: var(--accent-primary, #39ff14); font-weight: 700; }
.hr-t-stats .muted  { color: var(--text-muted, #8b949e); }

/* ─── Badge sm ───────────────────────────────────────────────── */
.tc-mode-badge.sm {
  font-size: 0.62rem;
  padding: 2px 6px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hr-stats-grid { gap: 8px; }
  .hr-stat-card  { min-width: 70px; padding: 10px 12px; }
  .hr-stat-value { font-size: 1.4rem; }
  .hr-match-body { flex-wrap: wrap; }
  .hr-score-wrap { align-items: flex-start; }
  .hr-t-stats    { display: none; }
}
