/* ============================================
   KidsLang — RTL support for Arabic & Hebrew
   ============================================ */

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] .lesson-tree .lesson-node:nth-child(odd) {
  transform: translateX(40px);
}
html[dir="rtl"] .lesson-tree .lesson-node:nth-child(even) {
  transform: translateX(-40px);
}
@media (min-width: 768px) {
  html[dir="rtl"] .lesson-tree .lesson-node:nth-child(odd) {
    transform: translateX(80px);
  }
  html[dir="rtl"] .lesson-tree .lesson-node:nth-child(even) {
    transform: translateX(-80px);
  }
}

/* الكلمات الإنجليزية داخل واجهة عربية لا تنعكس */
html[dir="rtl"] .ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="ltr"] .rtl {
  direction: rtl;
  unicode-bidi: isolate;
}

/* الأرقام والإحصاءات تبقى LTR دائماً */
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
