/* Listening Quiz Specific Styles */

/* Quiz card for listening */
.listening-quiz-card {
    position: relative;
}

.listening-quiz-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Audio Section */
.audio-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.play-audio-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.play-audio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.play-audio-btn.playing {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    animation: pulse 1s infinite;
}

.play-audio-btn .play-icon {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.play-audio-btn .play-text {
    font-size: 0.9rem;
}

.play-audio-btn.small {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
}

.play-audio-btn.small .play-icon {
    font-size: 1.8rem;
}

.play-audio-btn.small .play-text {
    font-size: 0.75rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.repeat-audio-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.repeat-audio-btn:hover {
    background-color: #7f8c8d;
}

.repeat-audio-btn.playing {
    background-color: #27ae60;
}

/* Hint Section */
.hint-section {
    margin: 1.5rem 0;
    text-align: center;
}

.hint-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    background-color: #e67e22;
}

.hint-display {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #fff3cd;
    border: 2px solid #f39c12;
    border-radius: 10px;
    display: inline-block;
    font-size: 1.5rem;
    color: #856404;
    font-weight: 500;
}

/* Hanzi Choices for Listening Quiz */
.listening-choices {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
}

.hanzi-choice {
    text-align: center;
    padding: 2rem 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hanzi-choice .hanzi-text {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.hanzi-choice:hover {
    background-color: #e8f4fc;
    border-color: #3498db;
}

.hanzi-choice.correct .hanzi-text,
.hanzi-choice.wrong .hanzi-text {
    color: white;
}

/* Review Hanzi Display */
.review-hanzi-large {
    font-size: 4rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    display: inline-block;
    min-width: 150px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .play-audio-btn {
        width: 100px;
        height: 100px;
    }

    .play-audio-btn .play-icon {
        font-size: 2rem;
    }

    .play-audio-btn .play-text {
        font-size: 0.8rem;
    }

    .listening-choices {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .hanzi-choice {
        padding: 1.5rem 0.8rem;
        min-height: 80px;
    }

    .hanzi-choice .hanzi-text {
        font-size: 2rem;
    }

    .review-hanzi-large {
        font-size: 3rem;
    }

    .hint-display {
        font-size: 1.2rem;
    }

    .audio-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hanzi-choice .hanzi-text {
        font-size: 1.8rem;
    }

    .review-hanzi-large {
        font-size: 2.5rem;
    }
}
