/**
 * Euro IQ Trade - Micro-Animations (Phase 4)
 * ===========================================
 * Custom keyframes and interactive animations
 */

/* ===========================================
   FADE IN UP
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ===========================================
   SCALE IN
   =========================================== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===========================================
   BUTTON HOVER EFFECTS
   =========================================== */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-hover-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* ===========================================
   CARD LIFT & SHADOW
   =========================================== */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ===========================================
   LOADING SPINNER ROTATION
   =========================================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

/* ===========================================
   PULSE ATTENTION SEEKER
   =========================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 220, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(64, 220, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(64, 220, 253, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===========================================
   PAGE TRANSITION
   =========================================== */
.page-transition {
    animation: fadeInUp 0.6s ease-out;
}