/* iSTREET Live Ticker Styles - Updated: 2026-05-08 */
:root {
  /* Ticker Specific Colors */
  --primary-blue: #00eafe;
  --primary-purple: #43268e;
  --header-bg: #0c1e35;
  --dark-bg: #00040f;
  --white: #ffffff;
  --black: #000000;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --section-gradient: linear-gradient(100deg, #00eafe 0%, #43268e 100%);
  --color-body: #444444;
  --color-dark: #333333;
  --color-gray-light: #f8f9fa;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-main: 'Inter', 'Helvetica', Arial, sans-serif;
  --font-bold: 'Inter', 'Helvetica-Bold', Arial, sans-serif;

  /* Fixed Font Sizes */
  --fs-p: 1.1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Ticker Specific Colors */
  --up-color: #00ff88;
  --down-color: #ff3e60;
}

.ticker-wrapper {
  background: var(--header-bg);
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-main);
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

/* Live Badge */
.live-status {
  padding: 0 15px;
  background: var(--header-bg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 15px 0 25px rgba(0, 0, 0, 0.6);
  border-right: 1px solid var(--color-border);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-blue);
  animation: blink 1.5s infinite;
}

.live-text {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Scrolling Container */
.ticker-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0 30px;
  color: var(--text-white);
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-border);
}

.ticker-item .symbol {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.ticker-item .price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-white);
}

.ticker-item .change {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticker-item .change.up {
  color: var(--up-color);
}

.ticker-item .change.down {
  color: var(--down-color);
}

/* Flash Animation on Update */
@keyframes flash-up {
  0% {
    background: rgba(0, 234, 254, 0.2);
  }

  100% {
    background: transparent;
  }
}

@keyframes flash-down {
  0% {
    background: rgba(255, 62, 96, 0.2);
  }

  100% {
    background: transparent;
  }
}

.update-flash-up {
  animation: flash-up 0.8s ease-out;
}

.update-flash-down {
  animation: flash-down 0.8s ease-out;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}