/* AI Loading Animation Styles */
/* File: css/components/aiLoadingAnimation.css */

.ai-loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10002;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ai-loading-animation.visible {
    opacity: 1;
    pointer-events: auto;
}

.ai-loading-animation.hidden {
    display: none;
}

.ai-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.ai-loading-content {
    position: relative;
    z-index: 10003;
    background: var(--color-black);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 48px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ai-loading-animation.visible .ai-loading-content {
    transform: scale(1);
    opacity: 1;
}

.ai-loading-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.ai-brain {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-pulse {
    display: none;
}

.ai-brain svg {
    position: relative;
    z-index: 1;
    color: var(--color-signature);
    animation: brain-opacity-pulse 2s ease-in-out infinite;
}

@keyframes brain-opacity-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.ai-loading-title {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 40px 0;
}

.ai-loading-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 0.7;
}

.step-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.step-item.active .step-icon {
    animation: step-bounce 0.6s ease-in-out infinite;
}

@keyframes step-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.step-item.completed .step-icon {
    opacity: 1;
}

.step-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-align: center;
}

.step-item.active .step-text {
    color: #ff4500;
    font-weight: 600;
}

.ai-loading-progress {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff4500 0%, #ff6a33 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

@keyframes progress-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
}

.ai-loading-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-loading-content {
        padding: 32px 24px;
    }

    .ai-loading-title {
        font-size: 1.25rem;
        margin-bottom: 32px;
    }

    .ai-loading-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .step-icon {
        font-size: 1.75rem;
    }

    .step-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ai-loading-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
