/* Greetings & Survival Phrases Quiz Styles */

/* Hero gradient — sky blue for travel/communication theme */
.sp-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

/* Single circular play button for phrase 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;
}

/* Phrase display in quiz card */
.phrase-char {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.05em;
}
.phrase-pinyin {
    font-size: 1.2rem;
    color: #0369a1;
    font-weight: 500;
}
.phrase-cat {
    font-size: 0.85rem;
    color: #6c757d;
}

/* English meaning option buttons — stacked full-width */
.sp-option-btn {
    min-height: 60px;
    width: 100%;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    border-width: 2px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem;
}
.sp-option-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sp-option-btn.correct {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}
.sp-option-btn.incorrect {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}
.sp-option-btn.revealed {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
    opacity: 0.75;
}
.sp-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 — sky blue */
.panel-header {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: white;
}

/* Category accuracy list in sidebar */
.cat-accuracy-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.cat-accuracy-item:last-child {
    border-bottom: none;
}

/* Reference table: first column shows the phrase prominently */
.sp-ref-table td:first-child {
    font-size: 1.15rem;
    font-weight: bold;
    color: #0369a1;
    vertical-align: middle;
    white-space: nowrap;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .phrase-pinyin {
    color: #38bdf8;
}
[data-bs-theme="dark"] .sp-ref-table td:first-child {
    color: #38bdf8;
}
[data-bs-theme="dark"] .cat-accuracy-item {
    border-bottom-color: #343a40;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .play-btn {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
    .phrase-char {
        font-size: 1.9rem;
    }
    .sp-option-btn {
        min-height: 52px;
        font-size: 0.95rem;
    }
    .score-display {
        font-size: 2rem;
    }
}
