/* ============================================================
   FinToolbox — Fear & Greed tool styles
   Global + shared widgets (gauge, poll, aff, stat, card) live in
   /css/styles.css. This file holds only F&G-specific styling.
   ============================================================ */

/* ---------- Gauge ---------- */
/* Needle position is animated in JS by recomputing its endpoint from the
   value (see fear-greed.js setGauge); no CSS transform is used, so the pivot
   stays unambiguously at the arc center. */
.gauge svg { overflow: visible; }
.gauge .val,
.gauge .lbl { transition: color 0.4s ease; }

/* ---------- Demo data badge ---------- */
.fg-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--yellow-soft);
  color: var(--yellow);
}

/* ---------- Streak counter ---------- */
.fg-streak {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.fg-streak .num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fg-streak .txt {
  font-size: 12.5px;
  color: var(--text-2);
}

/* ---------- Zones table row ---------- */
.fg-zone-name {
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 500;
}
.fg-zone-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Slider test box ---------- */
.fg-slider-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--card-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.fg-slider-box input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 10px;
  background: var(--line);
  border-radius: 2px;
}
.fg-slider-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  border: 3px solid var(--bg-elev);
  box-shadow: 0 0 0 1px var(--green);
}
.fg-slider-box input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  border: 3px solid var(--bg-elev);
}
.fg-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fg-reset {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.fg-reset[hidden] { display: none; }

/* ---------- Insight box ---------- */
.fg-insight {
  background: var(--card-2);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.fg-insight b { color: var(--text); font-weight: 700; }

/* ---------- Chart container ---------- */
.fg-chart { width: 100%; min-height: 320px; }
.fg-chart svg { display: block; width: 100%; height: auto; }

/* ---------- Poll thank-you note ---------- */
.fg-poll-note { font-size: 11.5px; color: var(--text-3); }
.fg-poll-note b { font-weight: 700; }
