/* Ticker Bar Styles */
.ticker-wrapper {
  background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #020617 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
  position: relative;
  height: 36px;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #020617 0%, transparent 100%);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #020617 0%, transparent 100%);
}

.ticker {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: scroll-ticker 40s linear infinite;
}

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

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

.ticker-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ticker-item:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
}

.ticker-pair {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #38bdf8;
}

.ticker-price {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ticker-change {
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.ticker-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .ticker-wrapper {
    height: 36px;
  }
  
  .ticker-content {
    gap: 30px;
  }
  
  .ticker-item {
    padding: 4px 10px;
    gap: 8px;
  }
  
  .ticker-pair {
    font-size: 0.72rem;
  }
  
  .ticker-price {
    font-size: 0.7rem;
  }
  
  .ticker-change {
    font-size: 0.68rem;
  }
}
