/* ===========================================
   Lovel AI - Visual Effects
   Neon aurora, hearts, Spotlight, Tilt, Magnetic, Reveal
   =========================================== */

/* ============================================
   1. NEON AURORA BACKGROUND
   ============================================ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-blob-1 {
  width: 540px;
  height: 540px;
  top: -8%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 45, 155, 0.55) 0%, rgba(255, 45, 155, 0) 70%);
  animation: aurora-float-1 22s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 620px;
  height: 620px;
  top: 28%;
  right: -10%;
  background: radial-gradient(circle, rgba(199, 36, 255, 0.45) 0%, rgba(199, 36, 255, 0) 70%);
  animation: aurora-float-2 28s ease-in-out infinite;
  opacity: 0.4;
}

.aurora-blob-3 {
  width: 480px;
  height: 480px;
  bottom: -10%;
  left: 25%;
  background: radial-gradient(circle, rgba(255, 45, 155, 0.4) 0%, rgba(255, 45, 155, 0) 70%);
  animation: aurora-float-3 25s ease-in-out infinite;
  opacity: 0.4;
}

.aurora-blob-4 {
  width: 380px;
  height: 380px;
  top: 60%;
  left: -5%;
  background: radial-gradient(circle, rgba(224, 20, 138, 0.4) 0%, rgba(224, 20, 138, 0) 70%);
  animation: aurora-float-4 30s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes aurora-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 80px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.15); }
}

@keyframes aurora-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(70px, -90px) scale(1.05); }
  80% { transform: translate(-50px, -30px) scale(0.9); }
}

@keyframes aurora-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, -40px) scale(1.2); }
}

/* Floating neon hearts (brand motif) */
.drops {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.drop {
  position: absolute;
  color: rgba(255, 45, 155, 0.5);
  font-size: 60px;
  line-height: 1;
  opacity: 0.45;
  will-change: transform;
  text-shadow: 0 0 18px rgba(255, 45, 155, 0.6);
}

.drop::before { content: '\2665'; font-family: 'Font Awesome 6 Free'; font-weight: 900; content: '\f004'; }

.drop-1 { top: 12%; left: 8%; font-size: 64px; transform: rotate(-12deg); animation: drop-float 14s ease-in-out infinite; }
.drop-2 { top: 22%; right: 12%; font-size: 38px; transform: rotate(18deg); animation: drop-float 16s ease-in-out infinite reverse; animation-delay: -3s; }
.drop-3 { top: 65%; left: 15%; font-size: 80px; transform: rotate(8deg); animation: drop-float 18s ease-in-out infinite; animation-delay: -6s; opacity: 0.35; }
.drop-4 { bottom: 20%; right: 8%; font-size: 46px; transform: rotate(-20deg); animation: drop-float 12s ease-in-out infinite reverse; animation-delay: -2s; }
.drop-5 { top: 45%; right: 25%; font-size: 30px; transform: rotate(14deg); animation: drop-float 11s ease-in-out infinite; animation-delay: -4s; opacity: 0.4; }

@keyframes drop-float {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate(0, -24px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

/* Grid overlay (subtle, neon) */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 45, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 155, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

/* ============================================
   2. SPOTLIGHT CARDS
   ============================================ */
.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 45, 155, 0.7),
    transparent 40%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.spotlight:hover::before { opacity: 1; }

.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 45, 155, 0.1),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}

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

.spotlight > * { position: relative; z-index: 2; }

/* ============================================
   3. 3D TILT
   ============================================ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

.tilt-inner { transform: translateZ(20px); }

/* ============================================
   4. MAGNETIC BUTTONS
   ============================================ */
.magnetic {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

/* ============================================
   5. REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
  will-change: clip-path;
}

.reveal-mask.is-visible { clip-path: inset(0 0 0 0); }

/* ============================================
   6. CURSOR HALO
   ============================================ */
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 155, 0.22) 0%, rgba(255, 45, 155, 0) 60%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  mix-blend-mode: screen;
  filter: blur(10px);
}

.cursor-halo.active { opacity: 1; }

@media (hover: none) {
  .cursor-halo { display: none; }
}

/* ============================================
   7. PULSE GLOW
   ============================================ */
.pulse-glow {
  animation: pulse-glow-anim 3s ease-in-out infinite;
}

@keyframes pulse-glow-anim {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 45, 155, 0.45); }
  50% { box-shadow: 0 4px 42px rgba(255, 45, 155, 0.75); }
}

/* ============================================
   8. SHIMMER LINE
   ============================================ */
.shimmer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}

.shimmer-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   9. RATING STARS
   ============================================ */
.rating-stars {
  display: inline-flex;
  gap: 4px;
  color: #FFB547;
  font-size: 1rem;
}

.rating-stars i { filter: drop-shadow(0 1px 3px rgba(255, 181, 71, 0.5)); }

/* ============================================
   10. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > *, .reveal-mask {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .aurora-blob, .drop { animation: none !important; }
  .cursor-halo { display: none; }
}
