/* ==================================================
   ANIMATIONS - Cyber Lux Theme
   ================================================== */

/* Gradient Border Rotation (for featured cards) */
@keyframes gradient-border-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Text Glow Animation */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(20, 241, 149, 0.5),
                     0 0 20px rgba(20, 241, 149, 0.3),
                     0 0 30px rgba(20, 241, 149, 0.1);
    }
    50% {
        text-shadow: 0 0 15px rgba(20, 241, 149, 0.8),
                     0 0 30px rgba(20, 241, 149, 0.5),
                     0 0 45px rgba(20, 241, 149, 0.2);
    }
}

/* Gradient Shift (for hero backgrounds) */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade In */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade In Up */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Right */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale In */
@keyframes scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Neon Pulse */
@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(20, 241, 149, 0.3),
                    0 0 20px rgba(20, 241, 149, 0.2),
                    0 0 30px rgba(20, 241, 149, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(20, 241, 149, 0.6),
                    0 0 40px rgba(20, 241, 149, 0.4),
                    0 0 60px rgba(20, 241, 149, 0.2);
    }
}

/* Glow Pulse Secondary */
@keyframes glow-pulse-secondary {
    0%, 100% {
        box-shadow: 0 0 10px rgba(153, 69, 255, 0.3),
                    0 0 20px rgba(153, 69, 255, 0.2),
                    0 0 30px rgba(153, 69, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(153, 69, 255, 0.6),
                    0 0 40px rgba(153, 69, 255, 0.4),
                    0 0 60px rgba(153, 69, 255, 0.2);
    }
}

/* ==================================================
   UTILITY ANIMATION CLASSES
   ================================================== */

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fade-in-down 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-neon-pulse {
    animation: neon-pulse 2s ease-in-out infinite;
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Delay Utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ==================================================
   LOADING STATES
   ================================================== */

.loading-skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s ease-in-out infinite;
}

@keyframes loading-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* ==================================================
   HOVER EFFECTS
   ================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-glow-primary {
    transition: box-shadow var(--transition-base);
}

.hover-glow-primary:hover {
    box-shadow: var(--shadow-glow-primary);
}

.hover-glow-secondary {
    transition: box-shadow var(--transition-base);
}

.hover-glow-secondary:hover {
    box-shadow: var(--shadow-glow-secondary);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ==================================================
   TRANSITIONS
   ================================================== */

.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition: background-color var(--transition-base), 
                border-color var(--transition-base), 
                color var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

.transition-opacity {
    transition: opacity var(--transition-base);
}
