/**
 * PromptLume Animations
 */

/* Premium Badge Glow Animation - Enhanced */
@keyframes premiumGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 
                    0 0 40px rgba(255, 165, 0, 0.4), 
                    0 0 60px rgba(255, 140, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 
                    0 0 60px rgba(255, 165, 0, 0.7), 
                    0 0 90px rgba(255, 140, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: scale(1.02);
    }
}

/* Premium Badge Glow Class */
.premium-badge-glow {
    animation: premiumGlow 2s ease-in-out infinite !important;
    will-change: box-shadow, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) var(--ease-out);
}

/* Slide In */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s var(--ease-out);
}

.slide-in-left {
    animation: slideInLeft 0.5s var(--ease-out);
}

.slide-in-down {
    animation: slideInDown 0.5s var(--ease-out);
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s var(--ease-out);
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulseRing 2s infinite;
}

/* Shimmer (Loading) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

/* Typing Indicator */
@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Success Pulse */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Heart Beat */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Message Slide In */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition Classes */
.transition-all {
    transition: all var(--transition-base) var(--ease-in-out);
}

.transition-colors {
    transition: background-color var(--transition-base) var(--ease-in-out),
                border-color var(--transition-base) var(--ease-in-out),
                color var(--transition-base) var(--ease-in-out);
}

.transition-transform {
    transition: transform var(--transition-base) var(--ease-out);
}

/* 3D Card Animations */
@keyframes floatCard {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    50% { 
        transform: translateY(-8px) rotateX(1deg) rotateY(-1deg);
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.9), 0 0 40px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
