/* === Level-Up-Pro – גרסה מתוקנת === */
#level-up-pro-root {
  font-family: "Heebo", Arial, sans-serif;
  direction: rtl;
  text-align: right;
  background: #fff;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  max-width: 750px;
  margin: 20px auto;
}

/* === כותרת ראשית === */
#level-up-pro-root h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}

/* === נוסחת פתיחה === */
.fn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.fn-inline .fn-text {
  font-size: 1rem;
  color: #444;
}
.fn-inline .fn-math {
  font-size: 1.25rem;
}

/* === טקסט שאלה === */
.q-text {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: right;
  color: #222;
}

/* === תשובות === */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.q-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #111 !important;
  line-height: 1.5;
  min-height: 44px;
}

.q-options label:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
}

.q-options input[type="radio"] {
  transform: scale(1.2);
  accent-color: #fe006e;
  margin-left: 6px;
}

/* טקסט ונוסחאות בתוך תשובה */
.q-options .mjx-opt {
  color: #111 !important;
  background: transparent !important;
  font-size: 1.05rem;
  line-height: 1.4;
}

.q-options input[type="radio"]:checked + .mjx-opt {
  color: #0c4a6e !important;
  font-weight: 600;
}

/* === אזור כפתורים === */
.lup-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.lup-btn {
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 8px 22px;
  cursor: pointer;
  transition: 0.3s ease;
}

.lup-btn.pink {
  background: #fe006e;
  color: #fff;
}
.lup-btn.pink:hover {
  background: #d5005f;
}

.lup-btn.blue {
  background: #38b6ff;
  color: #fff;
}
.lup-btn.blue:hover {
  background: #1896e6;
}

/* === רמזים ופתרון === */
.hint {
  font-size: 0.95rem;
  color: #555;
  margin-top: 12px;
}

.feedback {
  margin-top: 10px;
  font-weight: 500;
}

.feedback .ok {
  color: #00c853;
}

.feedback .bad {
  color: #d50000;
}

.solution {
  margin-top: 8px;
  padding: 6px 10px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 0.95rem;
  color: #222;
}

/* === אנימציה עדינה בין שלבים === */
#lup-stage {
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === רספונסיבי === */
@media (max-width: 600px) {
  #level-up-pro-root {
    padding: 15px;
  }
  .lup-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  .q-options label {
    font-size: 1rem;
    padding: 6px 10px;
  }
}
/* === תיבת נוסחת פתיחה (intro) === */
.intro-box {
  background: #f9fafc;
  border-right: 4px solid #38b6ff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
  text-align: right;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.intro-box .fn-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

.intro-box .fn-math {
  font-size: 1.2rem;
  color: #000;
}
/* === תיבת נוסחת פתיחה (Intro Formula) === */
.intro-box {
  background: #f9fafc;
  border-right: 4px solid #38b6ff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  text-align: right;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease;
}

.intro-box .fn-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-left: 6px;
}

.intro-box .fn-math {
  font-size: 1.25rem;
  color: #000;
}

/* אנימציה עדינה */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-options label,
.hint,
.solution {
  direction: rtl;
  text-align: right;
}

/* הבטחת צבע תקין למתמטיקה */
.MathJax, .mjx-math {
  color: #000 !important;
  font-size: 1.05rem;
}  
.lup-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}


