/* EngliShay - צבעי המבחנים, פרקי הבונוס והמבחן לדוגמה, בהתאמה לצבעי המערכת
   (ירוק כצבע ראשי, כתום לכפתורי פעולה, אפורים נקיים), במצב בהיר ובמצב כהה.
   נטען אחרי העיצוב של הדף ודורס את משתני הצבע שלו. המצב נקבע ע"י theme.js. */
@import url("theme-bg.css");

/* ===== מצב בהיר (ברירת מחדל) ===== */
:root {
    --ink: #0f172a; --ink-soft: #334155;
    --paper: #f7f8f7; --paper-raised: #ffffff; --rule: #e5e7eb;
    --teal: #047857; --teal-soft: #ecfdf5;
    --amber: #d97706; --amber-soft: #fff7ed;
    --rust: #b42318; --rust-soft: #fef2f2;
    --text: #1f2937; --text-dim: #5b6472;
}
body { color: var(--text); }


/* פס עליון - טורקיז קלאסי (כמו הסרגל בפורטל) */
.topbar { background: linear-gradient(135deg, #0e6f67, #17a294) !important; color: #ffffff !important; }
.topbar .title, .topbar h1 { color: #ffffff; }
.brand .subtitle, .topbar p { color: rgba(255, 255, 255, .78) !important; }
.timer-label, .timer-total { color: rgba(255, 255, 255, .72) !important; }

/* כפתורי פעולה ראשיים - כתום */
.start-btn, .next-btn, .restart-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c) !important; color: #ffffff !important; border: none !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, .25);
}
.start-btn:hover, .next-btn.ready:hover { filter: brightness(1.05); }
.restart-btn { color: var(--teal) !important; border-color: var(--teal) !important; background: transparent !important; }
.structure-list .num { background: #17a294 !important; color: #ffffff !important; }
/* סימון התשובה שנבחרה: כחול שמיים, באותה עוצמה בהירה כמו קודם. השאלה הנוכחית נשארת טורקיז קלאסי */
.option.selected { border-color: #0ea5e9 !important; background: rgba(14, 165, 233, .08) !important; }
.option.correct { border-color: #0ea5e9 !important; background: rgba(14, 165, 233, .08) !important; color: #0369a1 !important; }
.option.correct .letter { background: #0ea5e9 !important; }
.q-nav .qn.current { outline-color: #17a294 !important; }
.q-nav .qn.answered { background: rgba(14, 165, 233, .08) !important; border-color: #0ea5e9 !important; color: #0369a1 !important; }
.tick.current { background: var(--teal) !important; }
.submit-btn { background: var(--teal); }

/* ===== מצב כהה ===== */
:root[data-theme="dark"] {
    --ink: #e2e8f0; --ink-soft: #cbd5e1;
    --paper: #0b1220; --paper-raised: #111c2e; --rule: #22304a;
    --teal: #34d399; --teal-soft: rgba(16, 185, 129, .14);
    --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .12);
    --rust: #f87171; --rust-soft: rgba(248, 113, 113, .12);
    --text: #e2e8f0; --text-dim: #94a3b8;
    color-scheme: dark;
}
:root[data-theme="dark"] .topbar { background: linear-gradient(135deg, #083c38, #0f766e) !important; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .dlg { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .option.selected { border-color: #38bdf8 !important; background: rgba(56, 189, 248, .12) !important; }
:root[data-theme="dark"] .option.correct { border-color: #38bdf8 !important; background: rgba(56, 189, 248, .12) !important; color: #38bdf8 !important; }
:root[data-theme="dark"] .option.correct .letter { background: #38bdf8 !important; }
:root[data-theme="dark"] .q-nav .qn.current { outline-color: #40e0d0 !important; }
:root[data-theme="dark"] .q-nav .qn.answered { background: rgba(56, 189, 248, .12) !important; border-color: #38bdf8 !important; color: #7dd3fc !important; }
:root[data-theme="dark"] .structure-list .num { background: #40e0d0 !important; color: #0b1220 !important; }
:root[data-theme="dark"] .option.correct .letter, :root[data-theme="dark"] .option.incorrect .letter,
:root[data-theme="dark"] .opt .letter, :root[data-theme="dark"] .mi-tag.ok, :root[data-theme="dark"] .mi-tag.no { color: #0b1220 !important; }
:root[data-theme="dark"] .restart-btn { color: var(--teal) !important; }
:root[data-theme="dark"] .legal-note, :root[data-theme="dark"] .legal-disclaimer { color: #fca5a5 !important; }
:root[data-theme="dark"] .tick.skipped { background: #475569 !important; }
:root[data-theme="dark"] .tick.selected { background: #64748b !important; }
:root[data-theme="dark"] .dlg-overlay { background: rgba(0, 0, 0, .6) !important; }
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea { color: var(--text); }

/* פרקי בונוס - צבעים שהוגדרו ישירות */
:root[data-theme="dark"] .disclaimer, :root[data-theme="dark"] .audio-box, :root[data-theme="dark"] .tips, :root[data-theme="dark"] .note-audio { border-color: rgba(251, 191, 36, .3) !important; color: #fcd34d !important; }
:root[data-theme="dark"] .disclaimer strong, :root[data-theme="dark"] .playing-label { color: #fde68a !important; }
:root[data-theme="dark"] .explain.no { border-color: rgba(248, 113, 113, .35) !important; color: #fca5a5 !important; }
:root[data-theme="dark"] .explain.ok { border-color: rgba(52, 211, 153, .35) !important; color: #6ee7b7 !important; }
:root[data-theme="dark"] .prompt-box { border-color: rgba(52, 211, 153, .3) !important; }
:root[data-theme="dark"] .menu-item.locked { background: #1e293b !important; }

/* באנר השיעור הפרטי */
:root[data-theme="dark"] .esh-tutor { background: #1c1508 !important; border-color: #b45309 !important; }
:root[data-theme="dark"] .esh-tutor-body { color: #fde68a !important; }
:root[data-theme="dark"] .esh-tutor-form label { color: #fcd34d !important; }
:root[data-theme="dark"] .esh-tutor-form input, :root[data-theme="dark"] .esh-tutor-form textarea { background: #0b1220 !important; color: #e2e8f0 !important; border-color: #b45309 !important; }

/* המבחן לדוגמה */
:root[data-theme="dark"] .free-cta { background: rgba(249, 115, 22, .08) !important; border-color: rgba(251, 146, 60, .5) !important; }
:root[data-theme="dark"] .free-cta-list li { border-color: rgba(251, 146, 60, .25) !important; }
:root[data-theme="dark"] .reg-kicker { background: rgba(249, 115, 22, .12) !important; border-color: rgba(253, 186, 116, .35) !important; color: #fdba74 !important; }
