
/* ============================================
   🆕 v3.1: SMART TRANSITION ANIMATIONS
   ============================================ */

.smart-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-transition.active {
    opacity: 1;
}

.smart-transition.fade-out {
    opacity: 0;
}

.smart-transition-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
    animation: slideUp 0.5s ease;
}

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

/* Brain Animation Container */
.mia-brain-animation {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

/* Pulse Animations */
.pulse {
    fill: none;
    stroke: #B8860B;
    stroke-width: 2;
    opacity: 0;
}

.pulse-1 {
    animation: pulse 2s infinite;
}

.pulse-2 {
    animation: pulse 2s 0.3s infinite;
}

.pulse-3 {
    animation: pulse 2s 0.6s infinite;
}

@keyframes pulse {
    0% { 
        opacity: 1; 
        r: 20;
    }
    50% { 
        opacity: 0.3; 
        r: 40;
    }
    100% { 
        opacity: 0; 
        r: 60;
    }
}

/* Neural Path Animations */
.neural-path {
    stroke: #FFD700;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    opacity: 0.7;
}

.path-1 {
    animation: neuralFlow 1.5s infinite;
}

.path-2 {
    animation: neuralFlow 1.5s 0.2s infinite;
}

.path-3 {
    animation: neuralFlow 1.5s 0.4s infinite;
}

.path-4 {
    animation: neuralFlow 1.5s 0.6s infinite;
}

@keyframes neuralFlow {
    0% { 
        stroke-dashoffset: 50;
        opacity: 0;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.7;
    }
    100% { 
        stroke-dashoffset: -50;
        opacity: 0;
    }
}

/* Brain Center */
.brain-center {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #B8860B);
    }
    50% {
        filter: drop-shadow(0 0 15px #FFD700);
    }
}

/* Text Elements */
.transition-title {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #D4AF37;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.transition-message {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 200;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Confidence Bar */
.confidence-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.confidence-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 10px currentColor;
}

.confidence-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .smart-transition-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .mia-brain-animation {
        width: 120px;
        height: 120px;
    }
    
    .transition-title {
        font-size: 24px;
    }
    
    .transition-message {
        font-size: 16px;
    }
}
