/* ===== Analyzing Section - Loading Animation ===== */

#analyzing {
    padding-top: 0 !important;
    min-height: 100vh;
}

#analyzing.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyzing-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Multi-Ring Spinner Animation ===== */
.spinner-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 50px;
}

.spinner-outer,
.spinner-middle,
.spinner-inner {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
    animation: spin 2s linear infinite;
}

.spinner-outer {
    width: 200px;
    height: 200px;
    border-width: 4px;
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    animation-duration: 1.5s;
    box-shadow: 0 0 30px rgba(4, 237, 245, 0.4);
}

.spinner-middle {
    width: 150px;
    height: 150px;
    border-width: 4px;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    animation-duration: 2s;
    animation-direction: reverse;
    top: 25px;
    left: 25px;
    box-shadow: 0 0 25px rgba(0, 105, 214, 0.4);
}

.spinner-inner {
    width: 100px;
    height: 100px;
    border-width: 4px;
    border-top-color: var(--accent-color);
    border-left-color: var(--accent-color);
    animation-duration: 1s;
    top: 50px;
    left: 50px;
    box-shadow: 0 0 20px rgba(4, 237, 245, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Spinner Core Icon */
.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(4, 237, 245, 0.6);
}

.spinner-core i {
    font-size: 2rem;
    color: var(--white);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px rgba(4, 237, 245, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 60px rgba(4, 237, 245, 0.9);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== Analyzing Title ===== */
.analyzing-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(4, 237, 245, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(4, 237, 245, 0.8));
    }
}

/* ===== Status Messages ===== */
.analyzing-status {
    margin-bottom: 40px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.status-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s ease;
    opacity: 0.5;
}

.status-message i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.status-message.active {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(4, 237, 245, 0.1);
    border-color: rgba(4, 237, 245, 0.3);
    box-shadow: 0 4px 15px rgba(4, 237, 245, 0.2);
    opacity: 1;
    animation: messageSlideIn 0.5s ease;
}

.status-message.active i {
    color: var(--accent-color);
    animation: iconBounce 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(4, 237, 245, 0.6));
}

@keyframes messageSlideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ===== Progress Bar ===== */
.analyzing-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.analyzing-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    width: 0%;
    animation: progressFill 2s ease-out forwards;
    box-shadow: 0 0 20px rgba(4, 237, 245, 0.8), 0 0 40px rgba(0, 105, 214, 0.5);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .analyzing-content {
        padding: 40px 20px;
    }

    .spinner-container {
        width: 150px;
        height: 150px;
    }

    .spinner-outer {
        width: 150px;
        height: 150px;
    }

    .spinner-middle {
        width: 110px;
        height: 110px;
        top: 20px;
        left: 20px;
    }

    .spinner-inner {
        width: 70px;
        height: 70px;
        top: 40px;
        left: 40px;
    }

    .spinner-core {
        width: 50px;
        height: 50px;
    }

    .spinner-core i {
        font-size: 1.5rem;
    }

    .analyzing-title {
        font-size: 1.8rem;
    }

    .status-message {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .analyzing-title {
        font-size: 1.5rem;
    }

    .status-message {
        font-size: 0.95rem;
    }
}

