/* OnFire - סגנונות ייחודיים מעל שכבת העיצוב המשותפת.
   כל הצבעים נשענים על משתני המותג שב-styles.css. אין ערך צבע חדש. */

/* ===== הלוגו ===== */
/* מאותיות המותג בלבד. שתי גרסאות: לבנה לרקע כהה, כהה לרקע בהיר. */
.of-logo { display: block; height: auto; }
.of-logo-lg   { width: 300px; max-width: 78%; margin: 0 auto 14px; }
.of-logo-hero { width: 320px; max-width: 100%; }
.of-logo-light { display: none; }
[data-theme="light"] .of-logo { display: none; }
[data-theme="light"] .of-logo-light { display: block; }
@media (max-width: 768px) {
  .of-logo-lg   { width: 230px; }
  .of-logo-hero { width: 200px; }
}

/* ===== סמל המילה (שריד - נשמר לשימוש טקסטואלי) ===== */
.of-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
  /* חובה: שם המותג לטיני. בלי זה RTL הופך את סדר החלקים ל-FireOn. */
  direction: ltr;
  unicode-bidi: isolate;
}
.of-wm-a { color: #F4F1FC; }
.of-wm-b { color: var(--violet); }
.of-spark {
  width: 0.30em; height: 0.30em;
  margin-inline-start: 0.16em;
  align-self: flex-start;
  background: var(--violet-light);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 6px var(--glow-tight));
  animation: of-spark-pulse 3.2s ease-in-out infinite;
}
@keyframes of-spark-pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.14); }
}
.of-wordmark-lg   { font-size: 44px; }
.of-wordmark-hero { font-size: 46px; }
@media (max-width: 768px) {
  .of-wordmark-lg   { font-size: 34px; }
  .of-wordmark-hero { font-size: 30px; }
}

/* ===== מד מוכנות ===== */
.of-ready {
  display: flex; align-items: center; gap: 26px;
  padding: 26px 28px; margin-bottom: 26px;
  background: var(--glass-fill);
  border: 1px solid var(--edge);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 34px var(--glow-wide);
}
.of-ready-dial { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.of-ready-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.of-ready-track { fill: none; stroke: var(--border-strong); stroke-width: 9; }
.of-ready-arc {
  fill: none; stroke: var(--violet); stroke-width: 9; stroke-linecap: round;
  filter: drop-shadow(0 0 7px var(--glow-tight));
  transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1);
}
.of-ready-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
}
.of-ready-num b { font-size: 34px; font-weight: 800; color: var(--violet-light); line-height: 1; }
.of-ready-num span { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.of-ready-body { flex: 1; min-width: 0; }
.of-ready-title { font-size: 21px; font-weight: 800; color: var(--violet); margin-bottom: 8px; }
.of-ready-text { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }
.of-ready-bars { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.of-ready-bar {
  flex: 1; min-width: 128px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px;
}
.of-ready-bar-label { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 6px; }
.of-ready-bar-val { font-size: 18px; font-weight: 700; color: var(--violet-light); font-family: 'Sora', sans-serif; }
@media (max-width: 768px) {
  .of-ready { flex-direction: column; text-align: center; padding: 22px 18px; gap: 18px; }
  .of-ready-bars { justify-content: center; }
}

/* ===== שלב בתוכנית ===== */
.of-stage { margin-bottom: 40px; }
.of-stage-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 6px; }
.of-stage-num {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  color: var(--violet-light);
  background: var(--glass-fill-strong);
  border: 1px solid var(--edge-strong);
}
.of-stage-title { font-size: 19px; font-weight: 800; color: var(--violet); line-height: 1.9; }
.of-stage-why {
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.75;
  margin: 0 47px 16px 0;
  border-inline-start: 2px solid var(--edge);
  padding-inline-start: 12px;
}

/* ===== כרטיס יחידה ===== */
.of-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.of-unit {
  position: relative; text-align: right;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 17px 14px;
  cursor: pointer;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column; gap: 9px;
}
.of-unit:hover {
  transform: translateY(-3px);
  border-color: var(--edge-strong);
  box-shadow: 0 8px 26px var(--glow-wide);
}
.of-unit.is-locked { opacity: .46; cursor: not-allowed; }
.of-unit.is-locked:hover { transform: none; box-shadow: none; border-color: var(--border); }
.of-unit.is-done { border-color: var(--edge-strong); }
.of-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.of-unit-num { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.of-unit-title { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.55; }
.of-unit-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.of-chip {
  font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  background: var(--bg-tertiary);
}
.of-chip-critical { color: var(--violet-light); border-color: var(--edge-strong); background: var(--violet-soft); }
.of-chip-high     { color: var(--violet-light); border-color: var(--edge); }
.of-chip-done     { color: var(--violet); border-color: var(--edge-strong); background: var(--glass-fill-strong); }
.of-unit-lock { font-size: 11.5px; color: var(--text-secondary); line-height: 1.6; }

/* ===== מסך יחידה ===== */
.of-unit-page { max-width: 860px; }
.of-unit-hero {
  padding: 24px 26px; margin-bottom: 22px;
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 18px; backdrop-filter: blur(12px);
}
.of-unit-hero-num { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.of-unit-hero-title { font-size: 25px; font-weight: 800; color: var(--violet); line-height: 1.5; margin-bottom: 12px; }
.of-unit-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.of-section {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
}
.of-section-h {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-secondary); text-transform: none;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.of-section-h::before {
  content: ''; width: 16px; height: 2px; background: var(--violet); border-radius: 2px;
}

/* גוף השיעור */
.of-lesson { font-size: 15.5px; line-height: 1.95; color: var(--text-primary); }
.of-lesson h2 { font-size: 20px; font-weight: 800; color: var(--violet); margin: 26px 0 12px; line-height: 1.6; }
.of-lesson h2:first-child { margin-top: 0; }
.of-lesson h3 { font-size: 16.5px; font-weight: 700; color: var(--violet-light); margin: 22px 0 9px; line-height: 1.6; }
.of-lesson p { margin: 0 0 13px; }
.of-lesson ul, .of-lesson ol { margin: 0 0 15px; padding-inline-start: 22px; }
.of-lesson li { margin-bottom: 8px; }
.of-lesson strong { color: var(--violet-light); font-weight: 700; }
.of-lesson code {
  font-family: 'Sora', monospace; font-size: .9em;
  background: var(--bg-tertiary); padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border);
}

/* הטיפ */
.of-tip {
  background: var(--glass-fill-strong);
  border: 1px solid var(--edge-strong);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.of-tip::after {
  content: ''; position: absolute; inset-inline-end: -32px; top: -32px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-wide) 0%, transparent 68%);
  pointer-events: none;
}
.of-tip-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--violet-light);
  margin-bottom: 10px;
}
.of-tip-head { font-size: 17.5px; font-weight: 800; color: var(--violet); margin-bottom: 9px; line-height: 1.6; }
.of-tip-body { font-size: 15px; line-height: 1.9; color: var(--text-primary); }

/* רשימת בדיקה */
.of-check { display: flex; flex-direction: column; gap: 9px; }
.of-check-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-check-item:hover { border-color: var(--edge-strong); }
.of-check-item.is-on { background: var(--glass-fill); border-color: var(--edge-strong); }
.of-check-box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; border: 1.7px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.of-check-item.is-on .of-check-box { background: var(--violet); border-color: var(--violet); }
.of-check-box svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; transition: opacity .2s; }
.of-check-item.is-on .of-check-box svg { opacity: 1; }
.of-check-text { font-size: 14.5px; line-height: 1.7; color: var(--text-primary); }
.of-check-item.is-on .of-check-text { color: var(--text-secondary); }
.of-check-why { font-size: 12.5px; line-height: 1.65; color: var(--text-secondary); margin-top: 5px; opacity: .85; }

/* תרחיש */
.of-sc-intro {
  font-size: 15px; line-height: 1.9; color: var(--text-primary);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--violet);
  border-radius: 12px; padding: 15px 17px; margin-bottom: 18px;
}
.of-sc-step { margin-bottom: 22px; }
.of-sc-q { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.75; margin-bottom: 11px; }
.of-sc-opts { display: flex; flex-direction: column; gap: 8px; }
.of-sc-opt {
  text-align: right; width: 100%;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.6; color: var(--text-primary);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-sc-opt:hover:not(:disabled) { border-color: var(--edge-strong); }
.of-sc-opt:disabled { cursor: default; }
.of-sc-opt.is-right { border-color: var(--violet); background: var(--glass-fill-strong); color: var(--violet-light); font-weight: 600; }
.of-sc-opt.is-wrong { border-color: var(--border-strong); opacity: .55; text-decoration: line-through; }
.of-sc-explain {
  margin-top: 11px; padding: 13px 15px;
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 11px; font-size: 14px; line-height: 1.85; color: var(--text-primary);
}
.of-sc-closing {
  margin-top: 20px; padding: 15px 17px;
  background: var(--glass-fill-strong); border: 1px solid var(--edge-strong);
  border-radius: 12px; font-size: 14.5px; line-height: 1.85; color: var(--violet-light);
}

/* אזהרת מקור */
.of-warn {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-tertiary); border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--violet-light);
  border-radius: 11px; padding: 13px 15px; margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.75; color: var(--text-secondary);
}

/* פס פעולה תחתון ביחידה */
.of-unit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* מפת סיכון */
.of-risk-group { margin-bottom: 30px; }
.of-risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.of-risk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--glow-tight); }
.of-risk-dot.d-high { background: var(--violet-light); box-shadow: none; }
.of-risk-dot.d-medium { background: var(--border-strong); box-shadow: none; }
.of-risk-title { font-size: 17px; font-weight: 800; color: var(--violet); }
.of-risk-note { font-size: 13px; color: var(--text-secondary); margin: 0 20px 13px 0; }

/* טיפים שנאספו */
.of-tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.of-tip-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 15px; padding: 17px 19px;
}
.of-tip-card-src { font-size: 11px; color: var(--text-secondary); margin-bottom: 7px; }
.of-tip-card-head { font-size: 15.5px; font-weight: 700; color: var(--violet); line-height: 1.6; margin-bottom: 7px; }
.of-tip-card-body { font-size: 13.8px; line-height: 1.8; color: var(--text-secondary); }
