/* Vortex Shop - Animations CSS */
/* Advanced CSS animations and transitions */

/* Loading Animations */
@keyframes vortexSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color);
    }
    50% { 
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 30px var(--primary-color);
    }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px var(--primary-color); }
    50% { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

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

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
    }
    60% {
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-200deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Hover Animations */
@keyframes hoverFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes hoverPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes hoverShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes hoverWobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25px) rotate(-5deg); }
    30% { transform: translateX(20px) rotate(3deg); }
    45% { transform: translateX(-15px) rotate(-3deg); }
    60% { transform: translateX(10px) rotate(2deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

@keyframes hoverBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0px); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-2px); }
}

/* Background Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes matrixRain {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 1; }
    52% { opacity: 0.8; }
    53% { opacity: 1; }
    54% { opacity: 0.9; }
    55% { opacity: 1; }
}

/* Text Animations */
@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blinkCursor {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary-color); }
}

@keyframes textReveal {
    0% {
        color: transparent;
        text-shadow: 0 0 0 var(--primary-color);
    }
    100% {
        color: var(--primary-color);
        text-shadow: 0 0 10px var(--primary-color);
    }
}

@keyframes scrambleText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Button Animations */
@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes buttonGlow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card Animations */
@keyframes cardFlip {
    0% { transform: perspective(400px) rotateY(0deg); }
    100% { transform: perspective(400px) rotateY(180deg); }
}

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

@keyframes cardFold {
    0% { transform: perspective(400px) rotateX(0deg); }
    100% { transform: perspective(400px) rotateX(-90deg); }
}

/* Loading Spinner Animations */
@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinnerPulse {
    0%, 100% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1); opacity: 0.7; }
}

@keyframes spinnerBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes spinnerWave {
    0%, 60%, 100% { transform: initial; }
    30% { transform: translateY(-15px); }
}

/* Progress Animations */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: var(--progress-width, 100%); }
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

/* Chart Animations */
@keyframes chartDraw {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes barGrow {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

@keyframes pieSlice {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--slice-angle, 90deg)); }
}

/* Modal Animations */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes overlayFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Notification Animations */
@keyframes notificationSlideIn {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

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

@keyframes notificationBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Scroll Animations */
@keyframes scrollIndicator {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes parallaxMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-50px); }
}

/* Glitch Effects */
@keyframes glitchSkew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-2deg); }
    20% { transform: skew(1deg); }
    30% { transform: skew(-1deg); }
    40% { transform: skew(2deg); }
    50% { transform: skew(-1deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(1deg); }
    80% { transform: skew(-2deg); }
    90% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitchColor {
    0% { filter: hue-rotate(0deg); }
    20% { filter: hue-rotate(90deg); }
    40% { filter: hue-rotate(180deg); }
    60% { filter: hue-rotate(270deg); }
    80% { filter: hue-rotate(360deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes staticNoise {
    0% { transform: translateX(0px); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(-2px); }
    100% { transform: translateX(0px); }
}

/* Cyberpunk Effects */
@keyframes cyberpunkGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color);
    }
    50% {
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color);
    }
}

@keyframes scanLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes hologram {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 1; }
    52% { opacity: 0.9; }
    53% { opacity: 1; }
}

/* Data Stream Effects */
@keyframes dataStream {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes binaryRain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Energy Effects */
@keyframes energyPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes lightningBolt {
    0%, 90%, 100% { opacity: 0; }
    5%, 85% { opacity: 1; }
}

@keyframes electricField {
    0% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.2) contrast(1.1); }
    100% { filter: brightness(1) contrast(1); }
}

/* Animation Classes */
.animate-spin { animation: vortexSpin 2s linear infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-text-glow { animation: textGlow 3s ease-in-out infinite; }
.animate-slide-left { animation: slideInFromLeft 0.8s ease-out; }
.animate-slide-right { animation: slideInFromRight 0.8s ease-out; }
.animate-slide-top { animation: slideInFromTop 0.8s ease-out; }
.animate-slide-bottom { animation: slideInFromBottom 0.8s ease-out; }
.animate-fade-scale { animation: fadeInScale 0.8s ease-out; }
.animate-bounce-in { animation: bounceIn 1s ease-out; }
.animate-flip-in { animation: flipIn 0.8s ease-out; }
.animate-zoom-in { animation: zoomIn 0.6s ease-out; }
.animate-rotate-in { animation: rotateIn 0.8s ease-out; }

/* Hover Animation Classes */
.hover-float:hover { animation: hoverFloat 1s ease-in-out infinite; }
.hover-pulse:hover { animation: hoverPulse 0.6s ease-in-out infinite; }
.hover-shake:hover { animation: hoverShake 0.5s ease-in-out; }
.hover-wobble:hover { animation: hoverWobble 1s ease-in-out; }
.hover-bounce:hover { animation: hoverBounce 1s ease-in-out; }

/* Background Animation Classes */
.bg-gradient-shift {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.bg-particle-float { animation: particleFloat 20s ease-in-out infinite; }
.bg-matrix-rain { animation: matrixRain 10s linear infinite; }
.bg-neon-flicker { animation: neonFlicker 2s ease-in-out infinite; }

/* Text Animation Classes */
.text-typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blinkCursor 0.75s step-end infinite;
}

.text-reveal { animation: textReveal 1s ease-out; }
.text-scramble { animation: scrambleText 0.1s ease-in-out infinite; }
.text-cyberpunk-glow { animation: cyberpunkGlow 2s ease-in-out infinite; }

/* Button Animation Classes */
.btn-press:active { animation: buttonPress 0.1s ease-out; }
.btn-glow { animation: buttonGlow 2s ease-in-out infinite; }
.btn-ripple { position: relative; overflow: hidden; }

/* Loading Animation Classes */
.loading-spinner { animation: spinnerRotate 1s linear infinite; }
.loading-pulse { animation: spinnerPulse 1.5s ease-in-out infinite; }
.loading-bounce { animation: spinnerBounce 1.4s ease-in-out infinite both; }
.loading-wave { animation: spinnerWave 1.2s ease-in-out infinite; }

/* Progress Animation Classes */
.progress-fill { animation: progressFill 2s ease-out; }
.progress-glow { animation: progressGlow 2s ease-in-out infinite; }

/* Chart Animation Classes */
.chart-draw { animation: chartDraw 2s ease-out; }
.chart-bar-grow { animation: barGrow 1s ease-out; }
.chart-pie-slice { animation: pieSlice 1.5s ease-out; }

/* Glitch Animation Classes */
.glitch-skew { animation: glitchSkew 0.3s ease-in-out; }
.glitch-color { animation: glitchColor 0.5s ease-in-out; }
.glitch-static { animation: staticNoise 0.1s ease-in-out infinite; }

/* Cyberpunk Animation Classes */
.cyberpunk-scan { animation: scanLine 3s linear infinite; }
.cyberpunk-hologram { animation: hologram 2s ease-in-out infinite; }
.cyberpunk-data-stream { animation: dataStream 5s linear infinite; }
.cyberpunk-binary-rain { animation: binaryRain 8s linear infinite; }

/* Energy Animation Classes */
.energy-pulse { animation: energyPulse 1.5s ease-in-out infinite; }
.energy-lightning { animation: lightningBolt 2s ease-in-out infinite; }
.energy-field { animation: electricField 3s ease-in-out infinite; }

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Animation Duration Classes */
.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.5s; }
.duration-slow { animation-duration: 1s; }
.duration-slower { animation-duration: 2s; }

/* Animation Timing Classes */
.ease-linear { animation-timing-function: linear; }
.ease-in { animation-timing-function: ease-in; }
.ease-out { animation-timing-function: ease-out; }
.ease-in-out { animation-timing-function: ease-in-out; }
.ease-bounce { animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); }

/* Animation Fill Mode Classes */
.fill-forwards { animation-fill-mode: forwards; }
.fill-backwards { animation-fill-mode: backwards; }
.fill-both { animation-fill-mode: both; }

/* Animation Play State Classes */
.paused { animation-play-state: paused; }
.running { animation-play-state: running; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-spin,
    .animate-pulse-glow,
    .animate-text-glow,
    .bg-gradient-shift,
    .bg-particle-float,
    .bg-matrix-rain,
    .bg-neon-flicker,
    .text-cyberpunk-glow,
    .btn-glow,
    .progress-glow,
    .glitch-static,
    .cyberpunk-scan,
    .cyberpunk-hologram,
    .cyberpunk-data-stream,
    .cyberpunk-binary-rain,
    .energy-pulse,
    .energy-lightning,
    .energy-field {
        animation: none !important;
    }
}

