/* Event tracker — filters, summary, chart, list.
 * ============================================================================================
 * Modelled on the competitor's tracker, built only on data we actually hold.
 *
 * WHAT IS DELIBERATELY MISSING, and why it is stated on the page rather than left blank:
 *   - dollar values. `usdt_blacklist_events.balance` is 0.0 on all 11,092 rows, so every "$ frozen"
 *     figure would be invented. They show them; we say we do not hold them.
 *   - transfer / mint / issuance tabs. We do not ingest those events.
 * Copying a competitor's empty tabs would be worse than having three that are all real.
 *
 * Inherits the palette, shell AND the filter chips from seo.css.
 */

.tracker { padding: 26px 0 0; }

.tracker-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tracker-head h1 {
  font-size: clamp(30px, 7vw, 52px); line-height: .96; letter-spacing: -.045em;
  text-transform: uppercase; margin: 0 0 6px; font-weight: 700;
}
.tracker-head .lede { color: var(--dim); margin: 0; font-size: 15px; }
.live-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--cyan);
  border: 1px solid var(--line); padding: 7px 12px;
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 2.2s ease-in-out infinite; }

/* ── summary ────────────────────────────────────────────────────────────────────────────── */

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); margin-bottom: 8px; }
.sum { padding: 18px; border-right: 1px solid var(--line); }
.sum:last-child { border-right: 0; }
.sum-v { font-family: var(--mono); font-size: clamp(26px, 5vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.sum-k { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; margin-top: 7px; }
.sum-split { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.sum.freeze .sum-v { color: var(--rose); }
.sum.unfreeze .sum-v { color: var(--cyan); }
.sum.burn .sum-v { color: var(--lime); }
@media (max-width: 620px) {
  .sum { border-right: 0; border-bottom: 1px solid var(--line); }
  .sum:last-child { border-bottom: 0; }
}

.no-values { font-size: 12.5px; color: var(--dim); margin: 0 0 26px; }

/* ── chart ──────────────────────────────────────────────────────────────────────────────── */
/* Plain divs, no chart library: one bar per day, height chosen from the preset classes below.
   A 40KB charting dependency for a bar chart is not a trade worth making. */

.chart { border: 1px solid var(--line); padding: 18px; margin-bottom: 26px; }
.chart-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.chart-head h2 { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .08em; margin: 0; text-transform: uppercase; font-weight: 500; }
.chart-head .peak { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
/* `overflow: hidden` and `min-width: 0` are a PAIR, and both are load-bearing: a flex item
   refuses to shrink below its content by default, so a long series pushed this row about
   14,000px wide and straight out of the card. The series is now bucketed server-side, but
   the layout must not depend on the data staying small - that is a bug waiting for the next
   filter someone adds. */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; overflow: hidden; }
.bar { flex: 1 1 0; min-width: 0; background: var(--rose); opacity: .82; position: relative; height: 2px; transition: opacity .14s; }
.bar:hover { opacity: 1; }
.bar-empty { background: var(--line); opacity: 1; }

/* Bar heights as preset classes, in 5% steps. The script picks one rather than writing an
   inline style: CSSOM writes are not blocked by the CSP, but keeping every style in the
   stylesheet means there is one place to look and no chance of a silent drop. */
.bar.h0 { height: 2%; }
.bar.h1 { height: 5%; }
.bar.h2 { height: 10%; }
.bar.h3 { height: 15%; }
.bar.h4 { height: 20%; }
.bar.h5 { height: 25%; }
.bar.h6 { height: 30%; }
.bar.h7 { height: 35%; }
.bar.h8 { height: 40%; }
.bar.h9 { height: 45%; }
.bar.h10 { height: 50%; }
.bar.h11 { height: 55%; }
.bar.h12 { height: 60%; }
.bar.h13 { height: 65%; }
.bar.h14 { height: 70%; }
.bar.h15 { height: 75%; }
.bar.h16 { height: 80%; }
.bar.h17 { height: 85%; }
.bar.h18 { height: 90%; }
.bar.h19 { height: 95%; }
.bar.h20 { height: 100%; }
.chart-x { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ── list ───────────────────────────────────────────────────────────────────────────────── */

.list { border-top: 2px solid var(--line); }
.erow {
  display: flex; align-items: center; gap: 13px; padding: 13px 0;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px;
}
.erow .tag { font-size: 11px; padding: 3px 7px; border: 1px solid currentColor; flex: none; }
.erow .tag.freeze { color: var(--rose); }
.erow .tag.unfreeze { color: var(--cyan); }
.erow .tag.burn { color: var(--lime); }
.erow .meta { margin-left: auto; color: var(--dim); font-size: 12px; }
.erow .when { color: var(--dim); font-size: 12px; flex: none; }
@media (max-width: 560px) {
  .erow { flex-wrap: wrap; gap: 8px; }
  .erow .meta { margin-left: 0; width: 100%; }
}

.empty { padding: 30px 0; color: var(--dim); font-family: var(--mono); font-size: 13.5px; }
