/* ============================================================
   ENHANCED ANIMATIONS & POP EFFECTS
   ============================================================ */

/* ============================================================
   POP IN ANIMATIONS
   ============================================================ */

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popInLeft {
    0% {
        opacity: 0;
        transform: scale(0.7) translateX(-30px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes popInRight {
    0% {
        opacity: 0;
        transform: scale(0.7) translateX(30px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes popInUp {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popInDown {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-30px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================================
   BOUNCE & ELASTIC ANIMATIONS
   ============================================================ */

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

@keyframes elasticPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes floatDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-15px);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(15px);
    }
}

/* ============================================================
   GLOW & SHINE ANIMATIONS
   ============================================================ */

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 157, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(255, 107, 157, 0.2),
            0 0 20px rgba(52, 152, 219, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 107, 157, 0.4),
            0 0 40px rgba(52, 152, 219, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes shine {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================================
   ROTATION & SPIN ANIMATIONS
   ============================================================ */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotatePop {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================================
   SLIDE ANIMATIONS
   ============================================================ */

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

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

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

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

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ============================================================
   FADE ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   BLUR & FOCUS ANIMATIONS
   ============================================================ */

@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes focusIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* ============================================================
   FLIP ANIMATIONS
   ============================================================ */

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

/* ============================================================
   HEARTBEAT & PULSE ANIMATIONS
   ============================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes throb {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
    }
}

/* ============================================================
   WIGGLE & SHAKE ANIMATIONS
   ============================================================ */

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

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

/* ============================================================
   ZOOM ANIMATIONS
   ============================================================ */

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
}

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes zoomInDown {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================================
   GRADIENT ANIMATIONS
   ============================================================ */

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

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* ============================================================
   ANIMATION UTILITY CLASSES
   ============================================================ */

.animate-pop {
    animation: popIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-pop-left {
    animation: popInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-pop-right {
    animation: popInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-pop-up {
    animation: popInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-pop-down {
    animation: popInDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-bounce {
    animation: bounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-float {
    animation: floatUp 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 2s linear infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-zoom-in {
    animation: zoomIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   STAGGERED ANIMATIONS
   ============================================================ */

.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; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }
.stagger-9 { animation-delay: 0.9s; }
.stagger-10 { animation-delay: 1s; }

/* ============================================================
   REDUCED MOTION SUPPORT
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
