/* =============================================
   carousel.css — Supported Coins Carousel
   ============================================= */

.coins-carousel-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: visible;
}

.coins-carousel-section .section-header {
  padding: 0 1.5rem;
  margin-bottom: 3rem;
}

/* ── Outer wrapper with fade masks ── */
.coins-carousel-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 20px;
}

.coins-carousel-fade {
  position: absolute;
  top: 20px;
  bottom: 0;
  width: 160px;
  z-index: 3;
  pointer-events: none;
}

.coins-carousel-fade--left {
  left: 0;
  background: linear-gradient(90deg, #050510 0%, transparent 100%);
}

.coins-carousel-fade--right {
  right: 0;
  background: linear-gradient(270deg, #050510 0%, transparent 100%);
}

/* ── Track wrapper (clips overflow) ── */
.coins-carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  padding-top: 16px;
  margin-top: -16px;
}

.coins-carousel-track-wrap:active {
  cursor: grabbing;
}

/* ── Scrolling track ── */
.coins-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  transform: translateX(0);
}

/* ── Individual coin card ── */
.coin-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 130px;
  padding: 1.6rem 1rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s,
              box-shadow 0.3s;
  cursor: default;
}

/* Animated top-edge shimmer */
.coin-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--coin-color, #BF5AF2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

/* Subtle inner glow blob */
.coin-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--coin-color, #BF5AF2);
  filter: blur(28px);
  opacity: 0.08;
  transition: opacity 0.3s;
}

.coin-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--coin-color, #BF5AF2);
  box-shadow:
    0 0 28px rgba(0,0,0,0.5),
    0 0 16px var(--coin-color-alpha, rgba(191,90,242,0.25));
}

.coin-card:hover::before {
  opacity: 1;
  animation: shimmerSlide 0.9s ease forwards;
}

.coin-card:hover::after {
  opacity: 0.22;
}

@keyframes shimmerSlide {
  0%   { left: -100%; }
  100% { left: 0%; }
}

/* ── Logo image wrapper ── */
.coin-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Spinning ring around logo on hover */
.coin-logo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--coin-color, #BF5AF2);
  opacity: 0;
  transition: opacity 0.3s;
  animation: coinRingSpin 3s linear infinite;
  animation-play-state: paused;
  /* dashed via dash-offset trick */
  background: transparent;
  box-shadow: 0 0 8px var(--coin-color-alpha, rgba(191,90,242,0.4));
}

.coin-card:hover .coin-logo-ring {
  opacity: 1;
  animation-play-state: running;
}

@keyframes coinRingSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.coin-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  /* Remove any white background from logos */
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coin-card:hover .coin-logo-img {
  transform: scale(1.12);
}

/* ── Ticker label ── */
.coin-ticker {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--coin-color, #BF5AF2);
  text-transform: uppercase;
  line-height: 1;
}

/* ── Coin name ── */
.coin-name {
  font-size: 0.72rem;
  color: rgba(160, 160, 192, 0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}

/* ── HUD decoration below carousel ── */
.coins-hud-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
}

.coins-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #BF5AF2;
  box-shadow: 0 0 8px rgba(191, 90, 242, 0.8);
  animation: hudDotPulse 2s ease-in-out infinite;
}

@keyframes hudDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.coins-hud-bar {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.4), rgba(201, 162, 39, 0.3), transparent);
}

.coins-hud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(191, 90, 242, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Section divider after carousel ── */
.coins-carousel-section::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,90,242,0.3), rgba(201,162,39,0.3), transparent);
  margin: 3rem auto 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .coin-card {
    width: 110px;
    padding: 1.3rem 0.8rem 1.1rem;
  }
  .coin-logo-img {
    width: 32px;
    height: 32px;
  }
  .coin-logo-wrap {
    width: 50px;
    height: 50px;
  }
  .coins-carousel-fade {
    width: 80px;
  }
}