/* =========================================================================
   chart-hashrate-section.css — sekcja wielowykresowa Hashrate.
   Jeden header + time-range selector + N podwykresów per projekt aktywny.
   Wzór: realny panel klienta KK (Skucha 2026-04-27).
   ========================================================================= */

.hashrate-section__time-range,
.chart-time-range {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-pill);
}

.hashrate-section__time-range button,
.chart-time-range button {
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  font-variant-numeric: tabular-nums;
}

.hashrate-section__time-range button:hover,
.chart-time-range button:hover {
  color: var(--text-secondary);
}

.hashrate-section__time-range button[aria-pressed="true"],
.chart-time-range button[aria-pressed="true"] {
  background: var(--accent-primary);
  color: white;
}

.hashrate-section__charts {
  display: flex;
  flex-direction: column;
  gap: var(--space-comfortable);
}

/* Stała wysokość kontenera niezależna od stanu (decyzja Arkadiusz 2026-04-27).
   Zapobiega "skakaniu" karty gdy empty state wymienia wykresy na komunikat. */
.hashrate-section__charts[data-chart-count="2"] {
  min-height: 424px;
}
.hashrate-section__charts[data-chart-count="1"] {
  min-height: 204px;
}

.hashrate-section__chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hashrate-section__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.hashrate-section__chart-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hashrate-section__chart-name strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hashrate-section__chart-name .algo {
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
}

.hashrate-section__chart-stats {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.hashrate-section__chart-stats strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hashrate-section__canvas {
  height: 180px;
  position: relative;
}

.hashrate-section__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  border: 1px dashed var(--bg-border);
  border-radius: var(--radius-inner);
  line-height: 1.5;
}
