/**
 * DIZI Cyberpunk v2 - CSS Animations
 * All @keyframes and animation utilities
 * 
 * @package DIZI_Cyberpunk
 * @version 2.0.0
 */

/* ============================================
   FLOATING ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-15px) rotateY(5deg);
  }
}

@keyframes float-simple {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ============================================
   ROTATION ANIMATIONS
   ============================================ */
@keyframes spin-slow {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes spin-slow-z {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   GLOW & PULSE ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px hsla(145, 70%, 40%, 0.3);
  }
  50% {
    box-shadow: 0 0 40px hsla(145, 70%, 40%, 0.6), 0 0 60px hsla(145, 70%, 40%, 0.3);
  }
}

@keyframes pulse-glow-gold {
  0%, 100% {
    box-shadow: 0 0 20px hsla(80, 60%, 50%, 0.3);
  }
  50% {
    box-shadow: 0 0 40px hsla(80, 60%, 50%, 0.6), 0 0 60px hsla(80, 60%, 50%, 0.3);
  }
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   SCALE ANIMATIONS
   ============================================ */
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scale-up {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* ============================================
   SHIMMER & SHINE EFFECTS
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ============================================
   ACCORDION ANIMATIONS (Radix-like)
   ============================================ */
@keyframes accordion-down {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-accordion-content-height, auto);
    opacity: 1;
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height, auto);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

/* ============================================
   BOUNCING & ELASTIC ANIMATIONS
   ============================================ */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   PARTICLES & ORBIT ANIMATIONS
   ============================================ */
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes orbit-reverse {
  from {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
  to {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -15px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-5px, -30px);
    opacity: 1;
  }
  75% {
    transform: translate(-15px, -15px);
    opacity: 0.6;
  }
}

/* ============================================
   UTILITY ANIMATION CLASSES
   ============================================ */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-simple {
  animation: float-simple 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-spin-slow-z {
  animation: spin-slow-z 15s linear infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-pulse-glow-gold {
  animation: pulse-glow-gold 3s ease-in-out infinite;
}

.animate-pulse-scale {
  animation: pulse-scale 2s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fade-in-down 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fade-in-left 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fade-in-right 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out forwards;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(145, 70%, 40%, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

.animate-orbit {
  animation: orbit 10s linear infinite;
}

.animate-orbit-reverse {
  animation: orbit-reverse 15s linear infinite;
}

.animate-particle-float {
  animation: particle-float 6s ease-in-out infinite;
}

/* ============================================
   ANIMATION DELAYS
   ============================================ */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-1000 {
  animation-delay: 1s;
}

/* ============================================
   HOVER STATES WITH ANIMATIONS
   ============================================ */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px hsla(145, 70%, 40%, 0.6);
  transform: translateY(-2px);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.5s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}