/* ══════════════════════════════════════════════════════════════
   ARPADA TRADING - TICKER & STATS
   Ticker animado y tarjetas de estadísticas
   ══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   TICKER BAR
   ──────────────────────────────────────────────────────────── */
.ticker-bar {
  background: rgba(8, 20, 38, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--arpada-line);
  border-bottom: 1px solid var(--arpada-line);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
}

.ticker-scroll {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  font-family: var(--arpada-mono);
  font-size: 12.5px;
  animation: tickerScroll 60s linear infinite;
}

.ticker-bar:hover .ticker-scroll {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-label {
  color: var(--arpada-dim);
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-right: 10px;
}

.ticker-item {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-shrink: 0;
}

.ticker-symbol {
  color: var(--arpada-cyan-bright);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ticker-value {
  color: var(--arpada-text);
  font-variant-numeric: tabular-nums;
}

.ticker-separator {
  color: rgba(31, 191, 212, 0.3);
  margin: 0 4px;
}

.ticker-loading,
.ticker-empty {
  color: var(--arpada-muted);
  font-style: italic;
  padding: 0 20px;
}

/* ────────────────────────────────────────────────────────────
   STATS CARDS
   ──────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: linear-gradient(
    180deg,
    rgba(13, 30, 54, 0.5) 0%,
    rgba(10, 23, 41, 0.5) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--arpada-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 191, 212, 0.3);
}

.stat-icon {
  font-size: 32px;
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-family: var(--arpada-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--arpada-cyan-bright);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--arpada-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ────────────────────────────────────────────────────────────
   LOADING SHIMMER
   ──────────────────────────────────────────────────────────── */
.loading-shimmer {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(232, 238, 246, 0.1) 0%,
    rgba(232, 238, 246, 0.3) 50%,
    rgba(232, 238, 246, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  min-width: 60px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ticker-bar {
    font-size: 11px;
    padding: 10px 0;
  }
  
  .ticker-scroll {
    font-size: 11px;
    gap: 28px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 18px;
  }
  
  .stat-value {
    font-size: 24px;
  }
}

/* ────────────────────────────────────────────────────────────
   TICKER OPCIONES - UPSIDE / DOWNSIDE
   ──────────────────────────────────────────────────────────── */
.ticker-upside {
  color: var(--arpada-green);   /* #3DDC97 */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ticker-downside {
  color: var(--arpada-red);     /* #FF6B6B */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ticker-separator {
  color: rgba(31, 191, 212, 0.2);
  margin: 0 12px;
}

.ticker-item:hover .ticker-symbol {
  color: var(--arpada-cyan-bright);
}

.ticker-item:hover .ticker-upside {
  text-shadow: 0 0 8px rgba(61, 220, 151, 0.5);
}

.ticker-item:hover .ticker-downside {
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}