/* Historical Event Stats - Institutional Style */

.event-stats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
  transition: all 120ms ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.event-stats-toggle:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.event-stats-panel {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-left: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  display: none;
  animation: statsSlideIn 180ms ease;
}

.event-stats-panel.visible {
  display: block;
}

@keyframes statsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.stats-sample {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stats-sample-count {
  color: #94a3b8;
  font-weight: 600;
  margin-left: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 500;
}

.stat-value {
  /* display: flex; */
  align-items: baseline;
  gap: 4px;
  font-size: 25px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-pips {
  color: #e2e8f0;
}

.stat-pips.bullish {
  color: #10b981;
}

.stat-pips.bearish {
  color: #ef4444;
}

.stat-pips.mixed {
  color: #94a3b8;
}

.stat-arrow {
  font-size: 11px;
  line-height: 1;
}

.stat-bias {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 2px;
}

.stat-bias.bullish {
  color: #10b981;
}

.stat-bias.bearish {
  color: #ef4444;
}

.stat-bias.mixed {
  color: #94a3b8;
}
