/* ==========================================================================
   زبان‌نگار — ویجت «تقویم آموزشی · سربرگ» (zn-cal-hero)
   طرح مبدأ: 03-hero.dc.html — کلاس‌محور و اسکوپ‌شده زیر .zn-scope
   توکن‌های رنگ/تم از zn-base.css می‌آیند (سه تم cream/plum/midnight).
   ========================================================================== */

.znch {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(760px 440px at 84% -12%, var(--zn-wash1), transparent 60%),
    radial-gradient(620px 400px at 6% 108%, var(--zn-wash2), transparent 62%),
    var(--zn-bg0);
}

/* واترمارک پس‌زمینه (NEGAR) */
.znch-wm {
  position: absolute;
  top: 8px;
  left: 2%;
  font-size: 150px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--zn-ghost);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.znch-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 44px;
  align-items: center;
}

/* ---------- ستون متن ---------- */
.znch-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--zn-t5);
  font-weight: 600;
  margin-bottom: 16px;
}
.znch-bc a { color: var(--zn-t5); }
.znch-bc .znch-bc-cur { color: var(--zn-soft); }

.znch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, .1);
  border: 1px solid rgba(225, 29, 72, .28);
  color: var(--zn-soft);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
}

.znch-title {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--zn-t1);
}
.znch-title .znch-hl {
  background: linear-gradient(120deg,
    var(--znch-hl-from, var(--zn-crim)),
    var(--znch-hl-to, var(--zn-rose)) 55%,
    var(--znch-hl-gold, var(--zn-gold)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.znch-lead {
  margin: 20px 0 0;
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--zn-t4);
  max-width: 52ch;
}

.znch-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.znch-btn {
  font-size: 14px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.znch-btn:hover { transform: translateY(-2px); }
.znch-btn--primary {
  background: linear-gradient(135deg,
    var(--znch-btn-from, var(--zn-crim)),
    var(--znch-btn-to, var(--zn-rose)));
  color: var(--znch-btn-ink, #fff);
  box-shadow: 0 14px 32px rgba(225, 29, 72, .32);
}
.znch-btn--ghost {
  background: var(--zn-card);
  border: 1px solid rgba(var(--zn-line), .2);
  color: var(--zn-t1);
  box-shadow: var(--zn-cardsh);
}

.znch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--zn-line), .14);
}
.znch-stat b {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--zn-t1);
}
.znch-stat span {
  font-size: 12px;
  color: var(--zn-t5);
}

/* ---------- ستون تصویر ---------- */
.znch-media { position: relative; }
.znch-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--zn-img);
  box-shadow: 0 30px 70px rgba(120, 55, 30, .24);
  border: 1px solid rgba(var(--zn-line), .14);
}
.znch-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.znch-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 10, 6, .5), transparent 55%);
  pointer-events: none;
}
.znch-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--zn-t5);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

/* نشان بالا-چپ */
.znch-badge-top {
  position: absolute;
  top: -16px;
  left: -14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(135deg,
    var(--znch-badge-from, var(--zn-crim)),
    var(--znch-badge-to, var(--zn-rose)));
  color: #fff;
  border-radius: 16px;
  padding: 11px 16px 11px 13px;
  box-shadow: 0 16px 36px rgba(225, 29, 72, .36);
  animation: znch-badgepop 4.6s ease-in-out infinite;
  z-index: 2;
}
.znch-badge-top .znch-bt-ic {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
}
.znch-badge-top .znch-bt-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: znch-ring 2.6s ease-out infinite;
}
.znch-badge-top .znch-bt-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.32;
}
.znch-badge-top .znch-bt-small { font-size: 10.5px; font-weight: 700; opacity: .92; }
.znch-badge-top .znch-bt-big { font-size: 15px; font-weight: 900; letter-spacing: .2px; }

/* نشان پایین-راست */
.znch-badge-bottom {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: var(--zn-glass-85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--zn-line), .16);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--zn-cardsh);
  animation: znch-float 5s ease-in-out infinite;
  z-index: 2;
}
.znch-badge-bottom .znch-bb-small { font-size: 11px; color: var(--zn-t5); font-weight: 700; }
.znch-badge-bottom .znch-bb-big { font-size: 19px; font-weight: 900; color: var(--zn-soft); margin-top: 2px; }

/* ---------- انیمیشن‌ها ---------- */
@keyframes znch-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes znch-badgepop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(-3deg); } }
@keyframes znch-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.3); opacity: 0; } }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .znch-wrap { grid-template-columns: 1fr; gap: 28px; }
  .znch-media { order: 2; margin-top: 6px; }
  .znch-frame { aspect-ratio: 16 / 11; }
}
@media (max-width: 700px) {
  .znch-title { font-size: 34px; }
  .znch-wm { font-size: 96px; }
  .znch-badge-top { top: 10px; left: 10px; }
  .znch-badge-bottom { bottom: 10px; right: 10px; }
}
@media (max-width: 560px) {
  .znch-cta a { flex: 1; text-align: center; }
  .znch-stats { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .znch-badge-top, .znch-badge-bottom, .znch-bt-ring { animation: none; }
}
