/**
 * Aegon Tools — Micro VFX & Animation Enhancements
 */

/* ── Floating Sound Toggle Button ── */
.sfx-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #4f46e5;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

[data-theme="dark"] .sfx-toggle-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(129, 140, 248, 0.3);
  color: #818cf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.sfx-toggle-btn:hover {
  transform: scale(1.1);
  border-color: #4f46e5;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.sfx-toggle-btn.is-muted {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

/* ── Product Card Glass Shimmer Streak ── */
.product-card,
.pack-card,
.pd-rel-card {
  position: relative;
  overflow: hidden;
}

.product-card::after,
.pack-card::after,
.pd-rel-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::after,
.pack-card:hover::after,
.pd-rel-card:hover::after {
  opacity: 1;
  animation: sfxGlassStreak 0.8s ease forwards;
}

@keyframes sfxGlassStreak {
  0% {
    left: -75%;
  }
  100% {
    left: 140%;
  }
}

/* ── Status Live Pulse Badges ── */
.live-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: sfxPulseBadge 2s infinite;
}

@keyframes sfxPulseBadge {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ── Cart Count Bump Animation ── */
.cart-bump {
  animation: sfxCartBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sfxCartBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
