/* Trending Coins Ticker Styles */

.ticker-container {
  background: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 100%);
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 60px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  z-index: 1;
  min-width: 0;
}

.ticker-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  height: 100%;
  background: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 100%);
}

.ticker-icon {
  width: 20px;
  height: 12px;
  margin-right: 8px;
  margin-left: 8px;
  filter: brightness(0) invert(1);
}

.ticker-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  margin-right: 16px;
}

/* Ticker scroll container */
.ticker-scroll {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  z-index: 1;
  padding: 0 16px;
  height: 100%;
  width: 100%;
}

/* Ticker wrapper and content */
.ticker-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  transition: all 0.1s ease;
  cursor: pointer;
  min-width: fit-content;
  max-width: none;
  z-index: 1;
  height: 100%;
  flex-shrink: 0;
  overflow: visible;
  margin-right: 24px;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.ticker-coin-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.ticker-coin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticker-coin-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.ticker-coin-rank {
  font-size: 0.7rem;
  color: #667eea;
  font-weight: 500;
}

.ticker-price-change {
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 4px;
  white-space: nowrap;
  overflow: visible;
}

.ticker-price-change.positive {
  color: #4caf50;
}

.ticker-price-change.negative {
  color: #ff6b6b;
}

.ticker-loading {
  text-align: center;
  padding: 12px;
  color: #a0a0b8;
  font-size: 0.8rem;
}

.ticker-error {
  text-align: center;
  padding: 12px;
  color: #ff6b6b;
  font-size: 0.8rem;
}

/* Responsive design for ticker */
@media (max-width: 768px) {
  .ticker-container {
    margin: 0;
  }

  .ticker-item {
    padding: 3px 8px;
    margin-right: 16px;
  }

  .ticker-coin-name {
    font-size: 0.7rem;
  }

  .ticker-coin-rank {
    font-size: 0.6rem;
  }

  .ticker-price-change {
    font-size: 0.7rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ticker-content {
    animation: none !important;
  }
}
