/**
 * Persian hints alongside EN/FR exam content.
 * - Question: text_fa below EN/FR title (both visible)
 * - Options: EN/FR always visible; Persian shown as inline tooltip-style label below
 */

.question-fa-text {
  display: none;
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0.35rem 0 0.65rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-surface-muted);
  border-right: 3px solid #f59e0b;
  border-radius: 6px;
}

html[data-theme="dark"] .question-fa-text {
  color: var(--color-text-card-meta);
}

body.show-persian-sections .question-fa-text {
  display: block;
}

/* EN/FR option text is never hidden when Persian is on */
body.show-persian-sections .option-text.quiz-text {
  display: block !important;
  visibility: visible !important;
}

.option-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

body.show-persian-sections .option-label {
  align-items: flex-start;
}

/* Persian option translation — always shown below EN/FR when Persian guide is on */
.option-fa-tooltip {
  display: none;
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .option-fa-tooltip {
  color: #fde68a;
  background: #422006;
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.show-persian-sections .option-fa-tooltip {
  display: block;
}

.persian-toggle__input:focus-visible + .persian-toggle__box {
  outline: 2px solid var(--header-lang-active);
  outline-offset: 2px;
}
