/* styles/animations.css */

/* Floating states: Static under user choice to avoid constant motion */
.float-light, .float-medium, .float-heavy {
  /* Constant floating disabled to prevent panel movement */
  transition: var(--transition-smooth);
}

/* Pulsing neon effect for glowing metrics/badges */
.pulse-glow {
  animation: cosmic-glow-pulse 2s infinite alternate;
}

@keyframes cosmic-glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2), 0 0 10px rgba(255, 215, 0, 0.1);
  }
  100% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.3);
    background-color: #FFD700;
  }
}

.pulse-electric {
  animation: electric-pulse-glow 2s infinite alternate;
}

@keyframes electric-pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(58, 134, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 18px rgba(58, 134, 255, 0.7);
  }
}

/* Glowing background effect for coverage graph nodes */
@keyframes node-activate {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.2);
    filter: brightness(1.8);
  }
  100% {
    transform: scale(1);
    filter: brightness(1.2);
  }
}

.node-activated {
  animation: node-activate 0.5s ease-out forwards;
}

/* Title text spacing expand */
.tracking-expand {
  animation: tracking-expand-anim 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-expand-anim {
  0% {
    letter-spacing: -0.2em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer-anim 1.5s infinite;
}

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

/* Slide in transitions */
.slide-in-right {
  animation: slide-in-right-keyframes 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-right-keyframes {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slide-in-up-keyframes 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-up-keyframes {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
