/* ===========================================
   MOVEMENT - Beacons, orbs, floating questions
   =========================================== */

.movement-beacon {
  position: fixed;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 250;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}

.movement-beacon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-warm) 0%, transparent 70%);
  animation: beaconPulse 1.5s ease-in-out infinite;
}

.movement-beacon::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-warm-rgb), 0.3);
  animation: beaconRing 1.5s ease-in-out infinite;
}

.movement-beacon.visible { opacity: 1; }

.movement-beacon.reached {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes beaconRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

.beacon-sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  pointer-events: none;
  z-index: 260;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-warm), 0 0 20px rgba(var(--accent-warm-rgb), 0.5);
  animation: beaconSparkleBurst 0.7s ease-out forwards;
}

@keyframes beaconSparkleBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1.2);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(calc(var(--end-x) * 0.4), calc(var(--end-y) * 0.4)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--end-x), var(--end-y)) scale(0.4);
  }
}

.floating-question {
  position: fixed;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  transform: translate(-50%, -50%);
  transition: opacity 1.2s ease-out;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.floating-question.visible { opacity: 0.75; }

.floating-question.pulling {
  opacity: 0.8;
  transition: all 2s ease-in-out;
}

.floating-question.absorbed {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: all 0.8s ease-in;
}

.catch-orb {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--accent-warm) 0%, var(--accent-warm-bright) 50%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 300;
  box-shadow: 
    0 0 20px var(--accent-warm),
    0 0 40px rgba(var(--accent-warm-rgb), 0.5),
    0 0 60px rgba(var(--accent-warm-rgb), 0.3);
  animation: orbFloat 2s ease-in-out infinite;
}

.catch-orb.visible { opacity: 1; }

.catch-orb.caught {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.orb-sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent-warm);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 299;
  box-shadow: 0 0 8px var(--accent-warm), 0 0 12px rgba(var(--accent-warm-rgb), 0.5);
  animation: orbSparkleFade 0.6s ease-out forwards;
}

@keyframes orbSparkleFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) translateY(10px); }
}

/* Nudge for fidgety users */
.still-nudge {
  position: fixed;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Crimson Text', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 400;
}

.still-nudge.visible {
  opacity: 1;
}
