/* modes.css - extra styles for the Chord Reading and Ear Training pages (v4). The main page does not load this file. */
.hint { color: var(--text-secondary); font-size: 0.9rem; font-weight: 400; margin: 0 0 var(--spacing-sm) 0; }
.level-info { font-weight: 400; font-size: 0.9rem; color: var(--text-secondary); }
.sub-option { margin-left: 1.5rem; }
.music-notice.info { background: #e0f2fe; color: #0c4a6e; }
.dark-mode .music-notice.info { background: #0c4a6e; color: #e0f2fe; }

/* chord sheet + diagrams */
.chord-sheet { background: #fff; padding: 2rem; margin-top: 1rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); max-width: 100%; }
.chord-sheet svg { max-width: 100%; }
#chord-charts { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1rem; justify-content: center; align-items: flex-start; }
.chord-diagram { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.chord-diagram-name { font-weight: bold; min-height: 1rem; }
.dark-mode .chord-sheet, .dark-mode .chord-diagram svg, .dark-mode .quiz-question .chord-diagram svg { background: #fff; border-radius: 6px; }

/* quiz / exercise cards */
.quiz-card { text-align: center; }
.quiz-controls { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); align-items: center; justify-content: center; margin-bottom: var(--spacing-md); }
.quiz-controls label { font-weight: 700; }
.quiz-prompt { font-size: 1.1rem; font-weight: 600; min-height: 1.5rem; margin: var(--spacing-sm) 0; }
.quiz-question { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-height: 2rem; margin-bottom: var(--spacing-md); }
.quiz-big { font-size: 2.5rem; }
.score-board { display: flex; justify-content: center; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin: var(--spacing-sm) 0 var(--spacing-md); font-size: 1.05rem; font-weight: 600; }
.sc-correct { color: #15803d; } .sc-wrong { color: #b91c1c; } .sc-streak { color: #c2410c; } .sc-best { color: #a16207; }
.answer-buttons { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.btn-answer { padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background-color: #555; color: #fff; min-width: 110px; transition: background-color 0.2s, transform 0.1s; }
.btn-answer:hover:not(:disabled) { background-color: #333; transform: translateY(-1px); }
.btn-answer:disabled { cursor: not-allowed; opacity: 0.75; }
.btn-answer.correct, .btn-answer.reveal { background-color: #15803d; opacity: 1; }
.btn-answer.wrong { background-color: #b91c1c; opacity: 1; }
.feedback-message { font-size: 1.15rem; font-weight: 700; min-height: 2rem; margin-bottom: 1rem; }
.feedback-message.correct { color: #15803d; } .feedback-message.wrong { color: #b91c1c; }
.btn-next { padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background-color: #c0392b; color: #fff; }
.btn-next:hover { background-color: #a93226; }
.btn-reset { display: block; margin: 1rem auto 0; padding: 0.4rem 1rem; font-size: 0.85rem; border: none; border-radius: 6px; cursor: pointer; background-color: #888; color: #fff; }
.btn-reset:hover { background-color: #666; }
.dark-mode .sc-correct, .dark-mode .feedback-message.correct { color: #4ade80; }
.dark-mode .sc-wrong, .dark-mode .feedback-message.wrong { color: #f87171; }

/* phones */
@media (max-width: 768px) {
    .mode-jump, #jump-to-chords, #jump-to-exercise { display: block; }
    .chord-sheet { padding: 0.75rem; }
    #chord-charts { gap: 0.75rem; padding: 0.5rem; margin: 1rem 0; }
    #chord-charts .chord-diagram { flex: 0 0 29%; }
    #chord-charts .chord-diagram svg { width: 100%; height: auto; }
    .sub-option { margin-left: 0.5rem; }
    .btn-answer { min-width: 0; flex: 1 1 40%; }
}
/* dark mode: card turns dark like the main page, music and diagrams stay on white with dark ink */
.dark-mode #chord-paper { background: var(--card-bg); border-color: var(--border-color); }
.dark-mode .chord-sheet, .dark-mode .chord-sheet svg, .dark-mode .chord-diagram svg { color: #111; }
.dark-mode .chord-diagram-name { color: var(--text-primary); }
/* dark mode: keep the quiz / ear-training buttons coloured (the shared dark style would flatten them) */
.dark-mode .btn-answer { background-color: #475569; color: #fff; }
.dark-mode .btn-answer:hover:not(:disabled) { background-color: #64748b; }
.dark-mode .btn-answer.correct, .dark-mode .btn-answer.reveal { background-color: #15803d; }
.dark-mode .btn-answer.wrong { background-color: #b91c1c; }
.dark-mode .btn-next, .dark-mode .btn-start { background-color: #c0392b; color: #fff; }
.dark-mode .btn-reset { background-color: #64748b; color: #fff; }
.dark-mode .btn-play-pitch { background-color: #2980b9; color: #fff; }
.dark-mode .btn-play-pitch:disabled { background-color: #475569; }
.dark-mode #quiz-start { background-color: #2563eb; color: #fff; }
