/* ===================================
   LOADING ANIMATIONS
   =================================== */

.ai-loading-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

/* Animated Icon Container */
.loading-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 32px;
}

/* Pulsing Circle Background */
.loading-pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    opacity: 0.2;
    animation: pulse-grow 2s ease-in-out infinite;
}

@keyframes pulse-grow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Main Icon */
.loading-main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    animation: bounce-rotate 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes bounce-rotate {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(5deg);
    }
}

/* Orbiting Particles */
.loading-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    animation: orbit 3s linear infinite;
}

.loading-particle:nth-child(2) {
    animation-delay: -1s;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

.loading-particle:nth-child(3) {
    animation-delay: -2s;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

@keyframes orbit {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg) translateX(50px) rotate(0deg);
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

/* Loading Text */
.loading-text-container {
    text-align: center;
    max-width: 400px;
}

.loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    animation: fade-slide-up 0.6s ease-out;
}

.loading-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    animation: fade-slide-up 0.6s ease-out 0.2s backwards;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Dots */
.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    animation: fade-slide-up 0.6s ease-out 0.4s backwards;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Shimmer Effect */
.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Fun Facts Container */
.loading-fun-fact {
    margin-top: 32px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border-left: 4px solid #8b5cf6;
    animation: fade-slide-up 0.6s ease-out 0.6s backwards;
}

.fun-fact-label {
    font-size: 11px;
    font-weight: 600;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fun-fact-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}