/* ============================================================
   Symbol Detail Page — Layout, Tabs, Candlestick Hero
   ============================================================ */

/* ── Candlestick Hero ───────────────────────────────────────── */
.candlestick-hero-container {
  width: 100%;
  height: 360px;
}

@media (max-width: 640px) {
  .candlestick-hero-container {
    height: 260px;
  }
}

/* ── Timeframe buttons in hero header ───────────────────────── */
.candlestick-tf-btn {
  background: transparent;
  color: rgb(107 114 128);
  font-size: 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.candlestick-tf-btn:hover {
  background: rgb(243 244 246);
  color: rgb(17 24 39);
}
.dark .candlestick-tf-btn:hover {
  background: rgb(55 65 81);
  color: rgb(229 231 235);
}
.candlestick-tf-btn.active {
  background: rgb(37 99 235);
  color: #fff;
}
.dark .candlestick-tf-btn.active {
  background: rgb(59 130 246);
  color: #fff;
}

/* ── Tab Bar ────────────────────────────────────────────────── */
.symbol-tab-bar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.symbol-tab {
  border-bottom: 2px solid transparent;
  color: rgb(107 114 128);
}
.dark .symbol-tab {
  color: rgb(156 163 175);
}
.symbol-tab:hover {
  color: rgb(17 24 39);
  border-bottom-color: rgb(209 213 219);
}
.dark .symbol-tab:hover {
  color: rgb(229 231 235);
  border-bottom-color: rgb(75 85 99);
}
.symbol-tab--active,
.symbol-tab[aria-selected="true"] {
  color: rgb(37 99 235);
  border-bottom-color: rgb(37 99 235);
}
.dark .symbol-tab--active,
.dark .symbol-tab[aria-selected="true"] {
  color: rgb(96 165 250);
  border-bottom-color: rgb(96 165 250);
}

/* ── Alert Impact Card table ────────────────────────────────── */
.alert-impact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.alert-impact-table th {
  padding: 0.375rem 0.75rem;
  text-align: right;
  font-weight: 600;
  color: rgb(107 114 128);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.alert-impact-table th:first-child {
  text-align: left;
}
.alert-impact-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  border-top: 1px solid rgb(243 244 246);
}
.dark .alert-impact-table td {
  border-top-color: rgb(55 65 81);
}
.alert-impact-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.impact-positive { color: rgb(34 197 94); }
.impact-negative { color: rgb(239 68 68); }
.impact-neutral  { color: rgb(156 163 175); }
.dark .impact-positive { color: rgb(74 222 128); }
.dark .impact-negative { color: rgb(248 113 113); }

/* ── Live heartbeat on the current-rate marker ──────────────── */
.stats-current-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.625rem;
  height: 0.625rem;
  margin: -0.3125rem 0 0 -0.3125rem;
  border-radius: 9999px;
  background-color: rgb(17 24 39);
  pointer-events: none;
  z-index: 20;
  will-change: transform, opacity;
  animation: stats-heartbeat 1.8s ease-out infinite;
}
.dark .stats-current-ping {
  background-color: #fff;
}
@keyframes stats-heartbeat {
  0%   { transform: scale(1);   opacity: 0.75; }
  55%  { transform: scale(3);   opacity: 0; }
  100% { transform: scale(3);   opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stats-current-ping {
    animation: none;
    transform: scale(2);
    opacity: 0.3;
  }
}
