/* In-Tents Events — Shared Interactive Effects */
/* These are the homepage-standard effects applied across all pages */

/* Interactive cursor glow */
.cursor-glow {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 36, 144, 0.2) 0%, rgba(74, 38, 102, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), height 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
  width: 250px;
  height: 250px;
}
.cursor-glow.clicking {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(242, 36, 144, 0.4) 0%, rgba(74, 38, 102, 0.15) 40%, transparent 70%);
}

/* Sparkle particle */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  animation: sparkle-fade 0.8s ease-out forwards;
}
@keyframes sparkle-fade {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0) translateY(-30px); opacity: 0; }
}

/* Shimmer text on hover */
@keyframes shimmer-slide {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-hover {
  position: relative;
  transition: all 0.3s ease;
}
.shimmer-hover:hover {
  background: linear-gradient(90deg, currentColor 30%, #F22490 45%, #c94fff 50%, #F22490 55%, currentColor 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-slide 1.5s linear infinite;
}

/* Glowing border on cards */
@keyframes border-glow-pulse {
  0%, 100% { border-color: rgba(242, 36, 144, 0.15); box-shadow: 0 0 0 rgba(242, 36, 144, 0); }
  50% { border-color: rgba(242, 36, 144, 0.35); box-shadow: 0 0 20px rgba(242, 36, 144, 0.1); }
}
.glow-border-hover {
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.glow-border-hover:hover {
  border-color: rgba(242, 36, 144, 0.4) !important;
  box-shadow: 0 0 25px rgba(242, 36, 144, 0.12), 0 0 60px rgba(74, 38, 102, 0.06), 0 8px 32px rgba(0,0,0,0.08) !important;
}

/* Button shine sweep */
@keyframes btn-shine {
  0% { left: -75%; }
  100% { left: 125%; }
}
.btn-shine-hover {
  position: relative;
  overflow: hidden;
}
.btn-shine-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.btn-shine-hover:hover::after {
  animation: btn-shine 0.6s ease forwards;
}

/* Glitter trail particles */
.glitter-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: glitter-drift 1s ease-out forwards;
}
@keyframes glitter-drift {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(0) translateY(-20px) rotate(180deg); opacity: 0; }
}

/* Futuristic underline */
.futuristic-link {
  position: relative;
  text-decoration: none;
}
.futuristic-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F22490, #c94fff, #F22490);
  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(242, 36, 144, 0.4);
}
.futuristic-link:hover::after {
  width: 100%;
  left: 0;
}

/* Pulse ring on CTA buttons */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-cta {
  position: relative;
}
.pulse-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(242, 36, 144, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
  pointer-events: none;
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* Cart button bounce */
.cart-btn.bounce {
  animation: cartBounce 0.5s ease;
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* === LOGO GLOW + PULSE === */
/* Applied directly via CSS selector — works on all devices including mobile */
nav img,
.nav-logo,
nav a img,
.nav-logo-glow {
  filter: drop-shadow(0 0 8px rgba(242, 36, 144, 0.4)) drop-shadow(0 0 20px rgba(74, 38, 102, 0.3));
  animation: logo-breathe 3s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}
nav img:hover,
.nav-logo:hover,
nav a img:hover,
.nav-logo-glow:hover {
  filter: drop-shadow(0 0 12px rgba(242, 36, 144, 0.7)) drop-shadow(0 0 30px rgba(74, 38, 102, 0.5)) drop-shadow(0 0 50px rgba(242, 36, 144, 0.3));
  transform: scale(1.08);
}
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(242, 36, 144, 0.4)) drop-shadow(0 0 20px rgba(74, 38, 102, 0.3)); }
  50% { filter: drop-shadow(0 0 14px rgba(242, 36, 144, 0.6)) drop-shadow(0 0 30px rgba(74, 38, 102, 0.4)) drop-shadow(0 0 45px rgba(242, 236, 0, 0.15)); }
}

/* === CLOCKWISE BORDER GLOW TRACE === */
/* Glowing light traces around card edges in brand colors */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.glow-trace-border {
  position: relative;
  overflow: visible;
}
.glow-trace-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 60%,
    #F22490 78%,
    #c94fff 84%,
    #4A2666 88%,
    #F22490 92%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-trace-spin 3s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-trace-border:hover::before {
  opacity: 1;
}
.glow-trace-border::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 60%,
    rgba(242, 36, 144, 0.3) 78%,
    rgba(201, 79, 255, 0.2) 84%,
    transparent 100%
  );
  filter: blur(8px);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 4px;
  animation: border-trace-spin 3s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-trace-border:hover::after {
  opacity: 1;
}

@keyframes border-trace-spin {
  to { --border-angle: 360deg; }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-glow,
  .sparkle-particle,
  .glitter-particle,
  .ripple {
    display: none !important;
  }
}
