/*
 * hs-infographic.css
 * Layout e stili per il blocco infografica (shot diet, gauge, radar)
 * Percorso: wp-content/themes/oceanwp-child/assets/css/hs-infographic.css
 */

/* ════════════════════════════════════════════════════════
   WRAPPER PRINCIPALE
   ════════════════════════════════════════════════════════ */

.hs-infographic-wrap {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── Pannello singolo ───────────────────────────────────── */

.hs-infographic-panel {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fafafa;
  border: 1px solid var(--hs-brand, #1ABC9C);
  border-radius: 4px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-infographic-panel-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hs-brand, #1ABC9C);
  border-bottom: 1px solid var(--hs-brand, #1ABC9C);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

/* ── SVG chart area ─────────────────────────────────────── */

.hs-infographic-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Legenda ────────────────────────────────────────────── */

.hs-infographic-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #444;
  margin-top: 2px;
}

.hs-infographic-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hs-infographic-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Stato vuoto / placeholder ──────────────────────────── */

.hs-infographic-empty {
  font-size: 12px;
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .hs-infographic-wrap {
    flex-direction: column;
  }
  .hs-infographic-panel {
    flex: 1 1 100%;
  }
}
