/* Pronunciation Practice Styles */

.app-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.flashcard-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

.flashcard-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    position: absolute;
    top: 28px;
    left: -35px;
    width: 160px;
    text-align: center;
    transform: rotate(-45deg);
    background: #a855f7;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.flashcard-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.target-phrase {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.target-translation {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

.flashcard-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Microphone Button */
.mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 10;
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.mic-btn.recording {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-red {
    to {
        box-shadow: 0 0 0 25px rgba(239, 68, 68, 0);
    }
}

.mic-status {
    font-weight: 500;
    margin: 0;
    height: 24px;
}

.mic-status.listening {
    color: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

/* Results Section */
.results-container {
    padding: 1.5rem;
    text-align: center;
}

.transcript-box {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.transcript-text {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.feedback-box {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.word-correct {
    color: #10b981; /* Green */
}

.word-incorrect {
    color: #ef4444; /* Red */
    text-decoration: line-through;
}
