/* =========================================================================
   on-hero — هیرو تیرهٔ «دورهٔ آنلاین آلمانی» · طرح 00-hero.html
   هدر + عنوان + شمارنده‌ها + «پنجرهٔ کلاس زنده» + بج شناور.
   وابسته به: de-base.css ، on-base.css (تم تیره و انیمیشن‌ها)
   ========================================================================= */

.onhr {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 620px at 78% 6%, var(--onhr-glow1, rgba(225, 29, 72, .34)), transparent 62%),
    radial-gradient(700px 460px at 6% 88%, var(--onhr-glow2, rgba(245, 179, 1, .16)), transparent 64%),
    var(--zn-bg0);
}

.onhr-ghost { top: 52px; left: -30px; font-size: var(--onhr-ghost-fs, 190px); letter-spacing: 4px; --ghost-stroke: 2px; }

.onhr-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: var(--onhr-cell, 52px) var(--onhr-cell, 52px);
  -webkit-mask-image: radial-gradient(880px 600px at 64% 26%, #000, transparent 78%);
  mask-image: radial-gradient(880px 600px at 64% 26%, #000, transparent 78%);
}

/* ---------- هدر ---------- */
.onhr-head { position: relative; z-index: 2; max-width: var(--onhr-mw, 1300px); margin: 0 auto; padding: 22px var(--onhr-px, 56px) 0; }
.onhr-headrow {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  border-bottom: 1px solid var(--onhr-rule-c, rgba(255, 255, 255, .12));
  padding-bottom: 16px;
}

/* برند ممکن است <a> باشد؛ رنگ ارثی بماند نه رنگ لینک. */
.onhr-brand, .de-scope a.onhr-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: inherit; }
.de-scope a.onhr-brand:hover { color: inherit; }
.de-scope a.onhr-brand:hover .onhr-bname { color: var(--zn-t1); }
.onhr-logo {
  width: var(--onhr-logo-s, 42px); height: var(--onhr-logo-s, 42px); flex-shrink: 0;
  border-radius: var(--onhr-logo-r, 13px);
  background: var(--onhr-logo-bg, linear-gradient(135deg, var(--zn-crim), var(--zn-rose)));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #FFF; font-weight: 900; font-size: 19px;
  box-shadow: 0 0 28px rgba(255, 59, 92, .5);
}
.onhr-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onhr-btext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.onhr-bname { display: block; font-size: var(--onhr-bname-fs, 15.5px); font-weight: 900; color: var(--zn-t2); line-height: 1.3; }
.onhr-btag { display: block; direction: ltr; text-align: right; font-size: 9px; color: var(--zn-t7); font-weight: 700; letter-spacing: 2.4px; }

.onhr-nav { display: flex; align-items: center; gap: var(--onhr-nav-gap, 22px); flex-wrap: wrap; }
.de-scope .onhr-nav a { font-size: var(--onhr-nav-fs, 13px); font-weight: 600; color: var(--onhr-nav-c, var(--zn-t3)); transition: color .2s ease; }
.de-scope .onhr-nav a:hover { color: var(--onhr-nav-c-h, var(--zn-t2)); }

/* ‎a.‎ برای بالا بردن اختصاصیت: قاعدهٔ لینکِ تم تیره در on-base هم ‎(0,2,0)‎ است
   و بدون این، برنده‌شدن به ترتیب لود فایل‌ها وابسته می‌شد. */
.de-scope a.onhr-hcta {
  flex-shrink: 0; white-space: nowrap; cursor: pointer;
  background: var(--onhr-hcta-bg, linear-gradient(135deg, var(--zn-crim), var(--zn-rose)));
  color: var(--onhr-hcta-fg, #FFF);
  font-size: 13px; font-weight: 800;
  padding: var(--onhr-hcta-p, 11px 22px); border-radius: var(--onhr-hcta-r, 12px);
  box-shadow: 0 0 32px rgba(255, 59, 92, .44);
  transition: transform .18s ease, box-shadow .18s ease;
}
.de-scope a.onhr-hcta:hover { color: var(--onhr-hcta-fg, #FFF); transform: translateY(-2px); }

/* ---------- شبکهٔ دو ستونه ---------- */
.onhr-wrap {
  position: relative; z-index: 1;
  max-width: var(--onhr-mw, 1300px); margin: 0 auto;
  display: grid; grid-template-columns: var(--onhr-cols, 1fr 1.02fr);
  gap: var(--onhr-gap, 52px); align-items: center;
  padding: 56px var(--onhr-px, 56px) 78px;
}
.onhr-txt { min-width: 0; }

/* چیپ با نقطهٔ تپنده */
.onhr-chip .dot { animation: on-pulse var(--onhr-pulse, 1.8s) ease-in-out infinite; }
.onhr-chip.no-pulse .dot { animation: none; }

.onhr-h1 { margin: 24px 0 0; font-weight: 900; line-height: 1.3; }
.onhr-kicker { display: block; font-size: var(--onhr-kick-fs, 19px); font-weight: 800; color: var(--onhr-kick-c, var(--zn-t4)); margin-bottom: 13px; }
.onhr-l1 { display: block; font-size: var(--onhr-title-fs, 57px); color: var(--onhr-l1-c, var(--zn-t1)); }
.onhr-l2 {
  display: block; font-size: var(--onhr-title-fs, 57px);
  background: linear-gradient(115deg, var(--onhr-g1, var(--zn-rose2)), var(--onhr-g2, var(--zn-rose)) 40%, var(--onhr-g3, var(--zn-gold)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.onhr-lead { margin: 22px 0 32px; font-size: 15.5px; line-height: 2.2; color: var(--zn-t5); max-width: var(--onhr-lead-w, 520px); text-wrap: pretty; }
.onhr-lead p { margin: 0 0 12px; color: inherit; font: inherit; }
.onhr-lead p:last-child { margin-bottom: 0; }

/* ---------- دکمه‌ها ---------- */
.onhr-acts { display: flex; gap: var(--onhr-btn-gap, 13px); flex-wrap: wrap; align-items: center; margin-bottom: 36px; }
.de-scope a.onhr-btn {
  display: inline-block; font-weight: 900; cursor: pointer;
  padding: var(--onhr-btn-p, 18px 34px);
  border-radius: var(--onhr-btn-r, 15px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.de-scope .onhr-btn:hover { transform: translateY(-2px); }
.de-scope .onhr-btn.is-pri {
  font-size: 16px; color: var(--onhr-pri-fg, #FFF);
  background: linear-gradient(135deg, var(--onhr-pri-c1, var(--zn-crim)), var(--onhr-pri-c2, var(--zn-rose)));
  box-shadow: var(--onhr-pri-sh, 0 14px 38px rgba(0, 0, 0, .4), 0 0 52px rgba(255, 59, 92, .4));
}
.de-scope .onhr-btn.is-pri:hover { color: var(--onhr-pri-fg, #FFF); }
.de-scope .onhr-btn.is-ghost {
  font-size: 15px; color: var(--onhr-gh-fg, var(--zn-t2));
  background: var(--onhr-gh-bg, rgba(255, 255, 255, .08));
  border: 1px solid var(--onhr-gh-bd, rgba(255, 255, 255, .2));
}
.de-scope .onhr-btn.is-ghost:hover { color: var(--onhr-gh-fg, var(--zn-t2)); background: var(--onhr-gh-bg-h, rgba(255, 255, 255, .14)); }

/* ---------- آمار ---------- */
.onhr-stats { display: flex; align-items: center; gap: var(--onhr-stat-gap, 24px); flex-wrap: wrap; }
.onhr-stat .num { font-size: var(--onhr-num-fs, 22px); font-weight: 900; color: var(--zn-t1); }
.onhr-stat .lbl { font-size: var(--onhr-lbl-fs, 11px); color: var(--onhr-lbl-c, var(--zn-t6)); font-weight: 600; }
.onhr-stat.is-grad .num {
  background: linear-gradient(120deg, var(--zn-rose2), var(--zn-rose));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.onhr-stat.is-gold .num { color: var(--onhr-gold-c, var(--zn-gold)); }
.onhr-sep { width: 1px; height: 36px; background: var(--onhr-sep-c, rgba(255, 255, 255, .14)); flex-shrink: 0; }

/* ---------- پنجرهٔ کلاس زنده ---------- */
.onhr-visual { position: relative; min-width: 0; }

.onhr-win {
  position: relative; border-radius: var(--onhr-win-r, 20px); overflow: hidden;
  background: var(--onhr-win-bg, var(--zn-bg-deep));
  border: 1px solid var(--onhr-win-bd, rgba(255, 255, 255, .14));
  box-shadow: var(--onhr-win-sh, 0 40px 90px rgba(0, 0, 0, .6), 0 0 90px rgba(225, 29, 72, .22));
}

/* نوار عنوان پنجره */
.onhr-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.onhr-dots { display: flex; gap: 6px; flex-shrink: 0; }
.onhr-dots span { width: 11px; height: 11px; border-radius: 50%; }
.onhr-dots span:nth-child(1) { background: #FF5F57; }
.onhr-dots span:nth-child(2) { background: #FEBC2E; }
.onhr-dots span:nth-child(3) { background: #28C840; }
.onhr-url {
  direction: ltr; flex: 1; min-width: 0; text-align: center;
  background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  padding: 5px 12px; font-size: 10.5px; color: var(--zn-t8); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.onhr-live {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: rgba(255, 59, 92, .2); border: 1px solid rgba(255, 92, 138, .4);
  border-radius: 999px; padding: 4px 10px;
}
.onhr-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--zn-rose); animation: on-pulse 1.6s ease-in-out infinite; }
.onhr-live .txt { direction: ltr; font-size: 9.5px; font-weight: 900; color: var(--zn-accent-soft); }

/* بدنهٔ پنجره */
.onhr-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.onhr-stage {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--zn-bg-img); height: var(--onhr-stage-h, 196px);
  border: 1px solid rgba(255, 255, 255, .09);
}
.onhr-stage img { width: 100%; height: 100%; object-fit: var(--onhr-fit, cover); object-position: var(--onhr-pos, center center); display: block; }
.onhr-stage .de-img-ph {
  width: 100%; height: 100%; background: var(--zn-bg-img);
  border: 2px dashed rgba(255, 255, 255, .2); color: var(--zn-t7); font-size: 12px;
}
.onhr-teacher {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 8px; padding: 5px 11px; font-size: 11px; font-weight: 800; color: var(--zn-t2);
}
.onhr-wave { position: absolute; top: 10px; left: 10px; z-index: 2; direction: ltr; display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.onhr-wave span { width: 3px; height: 100%; border-radius: 2px; animation: on-wave 1s ease-in-out infinite; }
.onhr-wave span:nth-child(1) { background: var(--zn-rose2); }
.onhr-wave span:nth-child(2) { background: var(--zn-rose); animation-delay: .15s; }
.onhr-wave span:nth-child(3) { background: var(--zn-gold); animation-delay: .3s; }
.onhr-wave span:nth-child(4) { background: var(--zn-rose2); animation-delay: .45s; }

/* کاشی‌های شرکت‌کننده */
.onhr-tiles { display: grid; grid-template-columns: repeat(var(--onhr-tiles, 4), minmax(0, 1fr)); gap: 9px; }
.onhr-tile {
  position: relative; border-radius: 11px; height: var(--onhr-tile-h, 62px); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #2A1218, #1C0D12);
}
.onhr-tile:nth-child(even) { background: linear-gradient(145deg, #241419, #180C10); }
.onhr-tile .ini { font-size: 15px; font-weight: 900; color: var(--t-c, var(--zn-accent-soft2)); }
.onhr-tile .nm { position: absolute; bottom: 5px; right: 6px; font-size: 8.5px; font-weight: 700; color: rgba(255, 255, 255, .66); }
.onhr-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* نوار کتاب/جلسه */
.onhr-book {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px; padding: 11px 14px;
}
.onhr-bkleft { display: flex; align-items: center; gap: 9px; min-width: 0; }
/* فرزندانِ <span> باید بلوکی شوند تا دو خط جدا بمانند */
.onhr-bkleft > span:last-child, .onhr-fcard > span:last-child { display: block; min-width: 0; }
.onhr-bkic {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg, var(--zn-gold), var(--zn-gold2));
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #1A1204;
}
.onhr-bkic i, .onhr-bkic svg { font-size: 13px; width: 13px; height: 13px; fill: currentColor; }
.onhr-bkt { display: block; direction: ltr; text-align: right; font-size: 11px; font-weight: 800; color: var(--zn-t2); }
.onhr-bks { display: block; font-size: 9.5px; color: var(--zn-t8); font-weight: 600; }
.onhr-rec {
  direction: ltr; flex-shrink: 0; font-size: 10px; font-weight: 900; color: #8FDCA0;
  background: rgba(40, 200, 64, .14); border: 1px solid rgba(40, 200, 64, .3);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}

/* بج شناور روشن روی گوشهٔ پنجره */
.onhr-float { position: absolute; bottom: -20px; right: -14px; z-index: 3; }
.onhr-fcard {
  display: flex; align-items: center; gap: 10px;
  background: var(--onhr-fc-bg, rgba(255, 252, 246, .96));
  border: 1px solid var(--onhr-fc-bd, rgba(255, 59, 92, .3));
  border-radius: 14px; padding: 13px 17px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .42);
  animation: negar-float 6s ease-in-out infinite;
}
.onhr-fcard .ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--zn-crim), var(--zn-rose));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #FFF;
}
.onhr-fcard .ic i, .onhr-fcard .ic svg { font-size: 14px; width: 14px; height: 14px; fill: currentColor; }
/* این کارت روشن است و باید رنگ متنِ تم روشن را نگه دارد، نه توکن تیره */
.onhr-fcard .t1 { display: block; font-size: 12.5px; font-weight: 900; color: var(--onhr-fc-t1, #26141A); }
.onhr-fcard .t2 { display: block; font-size: 10px; font-weight: 600; color: var(--onhr-fc-t2, #755159); }

@media (prefers-reduced-motion: reduce) {
  .onhr-fcard, .onhr-wave span, .onhr-chip .dot, .onhr-live .dot { animation: none; }
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1180px) {
  .onhr-nav { display: none; }
  .onhr-ghost { font-size: 130px; }
}
@media (max-width: 980px) {
  .onhr-wrap { padding: 40px 24px 60px; }
  .onhr-head { padding: 18px 24px 0; }
  .onhr-visual { order: -1; }
}
@media (max-width: 700px) {
  .onhr-headrow { gap: 14px; }
  .onhr-btext { display: none; }
  .onhr-wrap { padding: 28px 18px 48px; }
  .onhr-ghost { font-size: 74px; }
  .onhr-acts .onhr-btn { flex: 1 1 100%; text-align: center; }
  .onhr-sep { display: none; }
  .onhr-tiles { grid-template-columns: repeat(var(--onhr-tiles-m, 4), minmax(0, 1fr)); }
  .onhr-float { right: 0; left: 0; bottom: -16px; }
  .onhr-fcard { justify-content: center; }
}
