/* NCA Evolution - Evolution UI */

/* Evolution Progress Bar */
.evolution-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.evolution-label span {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.evolution-label span.evolving {
    color: var(--gold);
    animation: pulse-text 1s ease-in-out infinite;
}

.evolution-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
}

.evolution-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 15px var(--primary-glow),
        0 0 30px rgba(96, 165, 250, 0.2);
    animation: bar-shimmer 1.5s linear infinite;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes bar-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Evolution Full-Screen Overlay */
.evolution-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(167, 139, 250, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, rgba(6, 7, 13, 0.98) 0%, rgba(15, 18, 25, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: evolution-fade-in 0.4s ease-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes evolution-fade-in {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.evolution-screen.fade-out {
    animation: evolution-fade-out 0.4s ease-out forwards;
}

@keyframes evolution-fade-out {
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.evolution-content {
    text-align: center;
    animation: float-in 0.5s ease-out;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* DNA Animation */
.evolution-dna {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    height: 90px;
}

.dna-strand {
    width: 5px;
    height: 70px;
    background: linear-gradient(
        180deg,
        var(--primary) 0%,
        var(--secondary) 25%,
        var(--gold) 50%,
        var(--secondary) 75%,
        var(--primary) 100%
    );
    border-radius: 3px;
    box-shadow:
        0 0 20px var(--primary-glow),
        0 0 40px rgba(96, 165, 250, 0.3);
    animation: dna-wave 1s ease-in-out infinite;
}

@keyframes dna-wave {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
        filter: brightness(0.8);
    }
    50% {
        transform: scaleY(1.8);
        opacity: 1;
        filter: brightness(1.2);
    }
}

.dna-strand:nth-child(1) { animation-delay: 0s; }
.dna-strand:nth-child(2) { animation-delay: 0.15s; }
.dna-strand:nth-child(3) { animation-delay: 0.3s; }

/* Evolution Title */
.evolution-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 20%,
        var(--primary-bright) 40%,
        var(--gold) 60%,
        var(--secondary) 80%,
        var(--primary) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 3s linear infinite;
    filter: drop-shadow(0 0 50px var(--primary-glow));
}

@keyframes title-shimmer {
    0% { background-position: 300% center; }
    100% { background-position: -300% center; }
}

.evolution-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.evolution-subtitle span {
    color: var(--primary);
    font-weight: 700;
}

/* Animated dots */
.evolution-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.evolution-dots span {
    font-size: 2.5rem;
    color: var(--text-muted);
    line-height: 1;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: scale(1);
        color: var(--text-muted);
    }
    40% {
        opacity: 1;
        transform: scale(1.4);
        color: var(--primary);
        text-shadow: 0 0 15px var(--primary-glow);
    }
}

.evolution-dots span {
    animation: dot-pulse 1.2s infinite;
}

.evolution-dots span:nth-child(1) { animation-delay: 0s; }
.evolution-dots span:nth-child(2) { animation-delay: 0.15s; }
.evolution-dots span:nth-child(3) { animation-delay: 0.3s; }
