/* Block: utilities — text colors, layout helpers, empty states, skeleton.
 *
 * Token-driven utility classes. Theme-overridable.
 */

/* ── Text colors ─────────────────────────────────────────────── */
.score-bull { color: #34d399; }
.score-bear { color: #fb7185; }
.fd-text-accent { color: var(--fd-accent-hover); }
.fd-text-soft { color: var(--fd-text-soft); }
.fd-text-dim { color: var(--fd-text-dim); }
.fd-text-warn { color: var(--fd-warn); }
.fd-text-sm { font-size: var(--fd-text-sm); }
.fd-text-xs { font-size: var(--fd-text-xs); }
.fd-text-lg { font-size: var(--fd-text-lg); }
.fd-text-xl { font-size: var(--fd-text-xl); }
.fd-text-2xl { font-size: var(--fd-text-2xl); }
.fd-text-bold { font-weight: 700; }
.fd-text-semi { font-weight: 600; }
.fd-text-mono { font-family: var(--fd-mono); font-variant-numeric: tabular-nums; }
.fd-text-bare { text-decoration: none; }

/* ── Layout helpers ──────────────────────────────────────────── */
.fd-flex { display: flex; }
.fd-col { flex-direction: column; }
.fd-row { flex-direction: row; }
.fd-gap-2 { gap: 8px; }
.fd-gap-3 { gap: 12px; }
.fd-gap-4 { gap: 16px; }
.fd-center { align-items: center; justify-content: center; }
.fd-between { justify-content: space-between; }
.fd-wrap { flex-wrap: wrap; }
.fd-grow { flex: 1; }
.fd-hidden { display: none; }

/* ── Grid ───────────────────────────────────────────────────── */
.fd-grid { display: grid; gap: 16px; }
.fd-grid-2 { grid-template-columns: 1fr 1fr; }
.fd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fd-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .fd-grid-2, .fd-grid-3, .fd-grid-4,
  .fd-grid--2, .fd-grid--3, .fd-grid--4 { grid-template-columns: 1fr; }
}

/* ── Stack ──────────────────────────────────────────────────── */
.fd-stack { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Empty state ────────────────────────────────────────────── */
.fd-empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--fd-border);
  border-radius: var(--fd-radius);
  background: var(--fd-surface);
}
.fd-empty-title {
  font-size: 16px; font-weight: 600;
  color: var(--fd-text);
  margin-bottom: 8px;
}
.fd-empty-msg {
  font-size: 14px; color: var(--fd-text-dim);
  line-height: 1.6; margin: 0 0 16px;
}
.fd-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Skeleton loading ────────────────────────────────────────── */
.fd-skeleton {
  background: linear-gradient(90deg, var(--fd-bg-subtle) 25%, var(--fd-bg-hover) 50%, var(--fd-bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--fd-radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Page header ────────────────────────────────────────────── */
.fd-page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.fd-page-header-text { min-width: 0; }
.fd-page-title {
  font-size: var(--fd-text-2xl); font-weight: 700;
  letter-spacing: -0.02em; color: var(--fd-text);
  margin: 0 0 4px;
}
.fd-page-sub {
  font-size: var(--fd-text-base); color: var(--fd-text-soft);
  margin: 0;
}
.fd-page-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.fd-eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fd-accent-hover);
  margin-bottom: 8px;
}

/* ── Metric ─────────────────────────────────────────────────── */
.fd-metric-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fd-text-dim);
  margin-bottom: 4px;
}
.fd-metric-value {
  font-family: var(--fd-mono);
  font-size: 20px; font-weight: 700;
  color: var(--fd-text);
  font-variant-numeric: tabular-nums;
}
.fd-metric-hint {
  font-size: var(--fd-text-xs); color: var(--fd-text-dim);
  margin-top: 2px;
}
.fd-metric--bull .fd-metric-value { color: #34d399; }
.fd-metric--bear .fd-metric-value { color: #fb7185; }
.fd-metric--accent .fd-metric-value { color: var(--fd-accent-hover); }

/* ── Symbol link ────────────────────────────────────────────── */
.fd-sym {
  font-family: var(--fd-mono);
  font-weight: 700;
  color: var(--fd-text);
  text-decoration: none;
  transition: color var(--fd-tx);
}
.fd-sym:hover { color: var(--fd-accent-hover); text-decoration: none; }
.fd-sym-extra { color: var(--fd-text-dim); font-size: var(--fd-text-xs); }

/* ── Duo cards ──────────────────────────────────────────────── */
.fd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fd-duo-k { font-size: 15px; font-weight: 600; color: var(--fd-text); margin-bottom: 4px; }
.fd-duo-m { font-size: 13px; color: var(--fd-text-dim); }
@media (max-width: 640px) { .fd-duo { grid-template-columns: 1fr; } }

/* ── CTA section ────────────────────────────────────────────── */
.fd-cta-section {
  text-align: center;
  padding: 56px 24px;
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  position: relative;
  overflow: hidden;
}
.fd-cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--fd-accent-gradient);
  opacity: 0.6;
}
.fd-cta-section::after {
  content: '';
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.fd-cta-section h2 {
  font-size: var(--fd-text-2xl); font-weight: 700;
  letter-spacing: -0.02em; color: var(--fd-text);
  margin: 0 0 8px;
}
.fd-cta-section p {
  font-size: 15px; color: var(--fd-text-soft);
  margin: 0 0 24px;
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

/* ── Table row (div-based) ──────────────────────────────────── */
.fd-row {
  display: flex; align-items: center;
  text-decoration: none; color: inherit;
  transition: background var(--fd-tx-fast);
  border-bottom: 1px solid var(--fd-border-soft);
}
.fd-row:hover { background: rgba(201, 162, 39, 0.05); }
.fd-row-cell { padding: 10px 14px; flex: 1; }
.fd-table-head { display: flex; border-bottom: 1px solid var(--fd-border); }
.fd-th {
  padding: 10px 14px; flex: 1;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fd-text-dim);
}
.fd-table-body { }
.fd-table { border: 1px solid var(--fd-border); border-radius: var(--fd-radius); overflow: hidden; }

/* ── Score ──────────────────────────────────────────────────── */
.fd-score {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--fd-mono);
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fd-score-pill bull { background: var(--fd-bull-soft); color: #34d399; }
.fd-score-pill bear { background: var(--fd-bear-soft); color: #fb7185; }
.fd-score-pill { background: rgba(148, 163, 184, 0.1); color: var(--fd-text-soft); }

/* ── Input helpers ──────────────────────────────────────────── */
.fd-input { }
.fd-btn-block { width: 100%; justify-content: center; }
.fd-btn-lg { padding: 12px 24px; font-size: 15px; }
