/* Neon price samples. Loaded after warp-spacex.css. Does not change the original pages. */

body.theme-green {
  --neon: #39FF14;
  --neon-dim: rgba(57, 255, 20, 0.7);
  --neon-glow: rgba(57, 255, 20, 0.55);
  /* Up arrow is a yellower chartreuse so it does not melt into the #39FF14 price. */
  --up-safe: #D4FF2A;
  --down-safe: #FF2D4A;
}

body.theme-blue {
  --neon: #00E5FF;
  --neon-dim: rgba(0, 229, 255, 0.7);
  --neon-glow: rgba(0, 229, 255, 0.55);
  --up-safe: #2EE56B;
  --down-safe: #FF2D4A;
}

body.theme-gradient,
body.theme-purple-blue {
  --up-safe: #2EE56B;
  --down-safe: #FF2D4A;
}

body.theme-gradient {
  --neon: #00E5FF;
  --neon-dim: rgba(0, 229, 255, 0.7);
  --neon-glow: rgba(0, 229, 255, 0.45);
  --neon-a: #39FF14;
  --neon-b: #00E5FF;
}

body.theme-purple-blue {
  --neon: #00E5FF;
  --neon-dim: rgba(176, 38, 255, 0.7);
  --neon-glow: rgba(176, 38, 255, 0.45);
  --neon-a: #B026FF;
  --neon-b: #00E5FF;
}

/* Label */
body[class*="theme-"] .pair-label {
  color: var(--neon);
  -webkit-text-fill-color: var(--neon);
}

body.theme-gradient .pair-label,
body.theme-purple-blue .pair-label {
  background-image: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
}

/* LIVE accent (connecting/delayed/offline stay as in the base stylesheet) */
body[class*="theme-"] .feed-status[data-state="live"] .feed-dot {
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow);
}

body[class*="theme-"] .feed-status[data-state="live"] .feed-label {
  color: var(--neon);
  -webkit-text-fill-color: var(--neon);
}

/* Solid neon prices */
body.theme-green .price,
body.theme-blue .price {
  color: var(--neon);
  -webkit-text-fill-color: var(--neon);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px var(--neon-glow),
    0 0 22px var(--neon-glow),
    0 6px 20px rgba(0, 0, 0, 0.65);
}

body.theme-green .price.is-up { animation: neonFlashSolidUp 0.55s ease; }
body.theme-green .price.is-down { animation: neonFlashSolidDown 0.55s ease; }
body.theme-blue .price.is-up { animation: neonFlashSolidUp 0.55s ease; }
body.theme-blue .price.is-down { animation: neonFlashSolidDown 0.55s ease; }

@keyframes neonFlashSolidUp {
  0% { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; }
  100% { color: var(--neon); -webkit-text-fill-color: var(--neon); }
}

@keyframes neonFlashSolidDown {
  0% { color: #FF8A9A; -webkit-text-fill-color: #FF8A9A; }
  100% { color: var(--neon); -webkit-text-fill-color: var(--neon); }
}

/* Gradient prices. Glow uses drop-shadow because clipped text ignores text-shadow. */
body.theme-gradient .price,
body.theme-purple-blue .price {
  background-image: linear-gradient(90deg, var(--neon-a) 0%, var(--neon-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--neon-b);
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 8px var(--neon-glow))
    drop-shadow(0 0 16px var(--neon-glow));
}

body.theme-gradient .price.is-up,
body.theme-gradient .price.is-down,
body.theme-purple-blue .price.is-up,
body.theme-purple-blue .price.is-down {
  animation: neonFlashGrad 0.55s ease;
}

@keyframes neonFlashGrad {
  0% { filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)) drop-shadow(0 0 16px rgba(255,255,255,0.5)); }
  100% {
    filter:
      drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9))
      drop-shadow(0 0 8px var(--neon-glow))
      drop-shadow(0 0 16px var(--neon-glow));
  }
}

body[class*="theme-"] .price-skel {
  background: var(--neon-dim, rgba(255,255,255,0.12));
}

/* 24h arrow and percent stay clearly up or down, even next to a neon-green price. */
body[class*="theme-"] .change-move.is-up,
body[class*="theme-"] .change-move.is-up .change-arrow,
body[class*="theme-"] .change-move.is-up #change-pct {
  color: var(--up-safe);
  -webkit-text-fill-color: var(--up-safe);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(212, 255, 42, 0.35);
}

body.theme-green .change-move.is-up,
body.theme-green .change-move.is-up .change-arrow,
body.theme-green .change-move.is-up #change-pct {
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.85),
    1px 0 0 rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 0 10px rgba(212, 255, 42, 0.55);
}

body[class*="theme-"] .change-move.is-down,
body[class*="theme-"] .change-move.is-down .change-arrow,
body[class*="theme-"] .change-move.is-down #change-pct {
  color: var(--down-safe);
  -webkit-text-fill-color: var(--down-safe);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(255, 45, 74, 0.45);
}

@media (max-width: 980px) {
  body.theme-green .price,
  body.theme-blue .price {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.95),
      0 0 10px var(--neon-glow),
      0 0 22px var(--neon-glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[class*="theme-"] .price.is-up,
  body[class*="theme-"] .price.is-down {
    animation: none !important;
  }
}
