/* Additional styles for Echoria flow */

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}


/* Sound Instruction Screen */
.sound-instruction {
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.screen-inner {
    max-width: 350px;
    width: 100%;
}

.sound-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

.sound-instruction h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--soft-pink);
    margin-bottom: var(--space-md);
}

.sound-instruction p {
    color: var(--muted-white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

/* Echoria Introduction Screen */
.echoria-intro {
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    background: linear-gradient(180deg, var(--midnight), var(--dark-violet));
}

.echoria-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
}

.avatar-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
    position: relative;
    z-index: 2;
}

.avatar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 1;
    opacity: 0.2;
    transition: opacity 0.1s ease;
}

.avatar-pulse.speaking {
    animation: voiceReactivePulse 0.2s ease-in-out;
    opacity: 1;
}

@keyframes voiceReactivePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: blur(15px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        filter: blur(20px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: blur(15px);
    }
}

.echoria-intro h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--soft-blue);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.5);
}

.lyric-display {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-sm);
}

.echoria-intro .btn-primary {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.lyric-line {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--soft-white);
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
}

.lyric-line.previous,
.lyric-line.next {
    opacity: 0.3;
    font-size: 1rem;
    color: var(--muted-white);
}

.lyric-line.current {
    opacity: 1;
    font-size: 1.5rem;
    color: var(--soft-white);
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.5);
}

/* Question Screens */
.question-screen {
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.question-progress {
    text-align: center;
    color: var(--soft-pink);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.question-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--soft-pink);
    text-align: center;
    margin-bottom: var(--space-xl);
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.option-label {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(255, 179, 198, 0.05), rgba(197, 137, 232, 0.05));
    border: 2px solid rgba(255, 179, 198, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: rgba(255, 179, 198, 0.1);
    border-color: var(--soft-pink);
}

.option-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-checkbox:checked + .option-text {
    color: var(--soft-pink);
}

.option-checkbox:checked ~ .option-check {
    opacity: 1;
    transform: scale(1);
}

.option-label:has(.option-checkbox:checked) {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--soft-pink);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.option-text {
    flex: 1;
    color: var(--soft-white);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: var(--space-sm);
}

.option-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--deep-pink), var(--deep-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.question-continue {
    width: 100%;
}

/* Email Screen */
.email-screen {
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.email-screen h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--soft-pink);
    margin-bottom: var(--space-md);
}

.email-instruction {
    color: var(--muted-white);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.email-screen .form-field {
    margin-bottom: var(--space-xl);
}

.email-screen .form-field input {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 179, 198, 0.3);
    color: var(--soft-white);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.email-screen .form-field input:focus {
    outline: none;
    border-color: var(--soft-pink);
    background: rgba(255, 255, 255, 0.08);
}

/* Confirmation Screen */
.confirmation-screen {
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    background: linear-gradient(180deg, var(--midnight), var(--dark-violet));
}

.confirmation-screen h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--soft-pink);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}