/* step-stats.css – Krok 3: Rozložení statů */

.stats-builder {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.stat-control {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.stat-control:hover {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.stat-control__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.stat-control__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-control__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 28px;
  text-align: center;
}

.stat-control__roll {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-control--hybrid {
  border-left: 3px solid rgba(201, 162, 39, 0.5);
}

.stat-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-racial-bonus {
  font-size: 0.65rem;
  line-height: 1.2;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
  align-self: center;
}

.stat-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.2s ease;
}

.points-remaining {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.2rem;
}

.points-remaining.warning {
  color: #e07070;
}

.points-remaining__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  display: block;
}

.stats-builder__summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  align-self: start;
  position: sticky;
  top: 80px;
}

.stats-builder__summary h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-align: center;
}

.derived-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
}

.derived-stat-row:last-child { border-bottom: none; }
.derived-stat-row__name { color: var(--text-dim); }
.derived-stat-row__value { font-family: 'Cinzel', serif; color: var(--gold-light); font-weight: 600; }
.derived-stat-row__formula { color: var(--text-muted); font-size: 0.72rem; }

/* Stats header — points + cost side by side */
.stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stats-header__points {
  text-align: center;
  flex-shrink: 0;
}

.stat-cost-reference {
  text-align: center;
}

.stat-cost-reference__title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.stat-cost-reference__items {
  display: flex;
  gap: 0.4rem;
}

.cost-chip {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.cost-chip strong {
  color: var(--gold-light);
}

.stat-control__effects {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.2rem 0 0 2rem;
  line-height: 1.4;
}
