/* AccessLine.shop - Advanced Cyber Motion & Interaction Animations */

/* 1. Dynamic Mouse Spotlight Glow */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(0, 240, 255, 0.12),
    transparent 45%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* 2. Scroll Reveal Animations (Rock Solid) */
.reveal-on-scroll {
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.animate-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Live Sales Popup (Social Proof Ticker in Bottom Left) */
.live-sales-popup {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 85;
  background: rgba(11, 15, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.3);
  transform: translateY(150px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 380px;
}

.live-sales-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.live-sales-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.live-sales-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.live-sales-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* 4. Confetti Canvas Overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
}

/* 5. Shimmer Badge Animation */
.shimmer-badge {
  background: linear-gradient(
    90deg,
    rgba(0, 240, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(0, 240, 255, 0.2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 6. Button Glow Pulse */
.glow-btn-pulse {
  animation: buttonPulse 3s infinite ease-in-out;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), 0 0 20px rgba(255, 0, 128, 0.4);
  }
}
