/* =========================================================================
   Input & Pipeline Styles (input.css)
   ========================================================================= */

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--trans-smooth);
    outline: none;
}

.input-group select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--grad-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.input-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* -----------------------------------------
   The Magical Takeover Screen
   ----------------------------------------- */
.takeover-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.merge-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(50px);
    mix-blend-mode: screen;
}

.orb-a {
    background: var(--grad-purple);
    transform: translateX(-150vw);
    transition: transform 3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orb-b {
    background: var(--grad-pink);
    transform: translateX(150vw);
    transition: transform 3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Activated Animation Classes */
.orb-a.animating {
    transform: translateX(-50px);
}

.orb-b.animating {
    transform: translateX(50px);
}

.merge-core {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transform: scale(0.5);
    z-index: 10;
    transition: all 2s ease;
}

.merge-core.explode {
    opacity: 1;
    transform: scale(1.5);
    animation: pulseCore 2s infinite alternate;
}

.generating-text {
    position: absolute;
    bottom: 15%;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 20;
    animation: pulseText 2s infinite;
}

.generating-text.visible {
    opacity: 0.7;
}

@keyframes pulseText {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

@keyframes pulseCore {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.6);
    }
}

@media(max-width: 900px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}