/* Measure Word Quiz Styles */

/* Hero gradient — emerald green for vocabulary/grammar theme */
.mw-hero {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Single circular play button for noun audio */
.play-btn {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    border: none;
}
.play-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.play-btn i {
    color: white !important;
}
.play-btn.playing {
    animation: pulse 1s ease-in-out infinite;
}
.play-btn:disabled {
    opacity: 0.5;
}

/* Noun display in quiz card */
.noun-char {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
.noun-pinyin {
    font-size: 1.2rem;
    color: #059669;
    font-weight: 500;
}
.noun-english {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Measure word option buttons — 2x2 grid */
.mw-option-btn {
    min-height: 90px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-width: 2px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.mw-option-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.mw-option-btn .mw-char {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.1;
}
.mw-option-btn .mw-pinyin {
    font-size: 0.8rem;
    opacity: 0.85;
}
.mw-option-btn.correct {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}
.mw-option-btn.incorrect {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}
.mw-option-btn.revealed {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
    opacity: 0.75;
}
.mw-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quiz card minimum height */
.quiz-card {
    min-height: 440px;
}

/* Pulse animation for playing state */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* Score display in results */
.score-display {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Difficulty badge */
.difficulty-badge {
    font-size: 0.85rem;
    padding: 0.35em 0.75em;
}

/* Sidebar panel header — emerald */
.panel-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

/* Measure word accuracy list in sidebar */
.mw-accuracy-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.mw-accuracy-item:last-child {
    border-bottom: none;
}

/* Results card */
.results-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Reference table: first column shows the character large */
.mw-ref-table td:first-child {
    font-size: 1.4rem;
    font-weight: bold;
    color: #059669;
    text-align: center;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .play-btn {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
    .noun-char {
        font-size: 2.2rem;
    }
    .mw-option-btn {
        min-height: 75px;
    }
    .mw-option-btn .mw-char {
        font-size: 1.6rem;
    }
    .score-display {
        font-size: 2rem;
    }
}
