/* =========================================================
   Article page (blog/*.html) — builds on styles.css + blog.css
   ========================================================= */

/* ---------- Hero ---------- */
.hero--article {
  height: max(500px, calc(560 * var(--u)));
  min-height: max(500px, calc(560 * var(--u)));
}
.hero--article .hero__bg { object-position: center; }
.hero--article .hero__shade {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 40%, rgba(14,14,15,.92) 85%, #0e0e0f 100%);
}
.hero--article .hero__content {
  inset: auto 0 0 0;
  top: auto;
  width: auto;
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px max(40px, calc(56 * var(--u)));
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  color: #a8a8aa; font-size: 13.5px;
}
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--yellow); }
.crumbs .chip {
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(245,170,3,.4); background: rgba(245,170,3,.1);
  color: var(--yellow);
}
.hero--article .hero__title {
  font-size: max(30px, calc(54 * var(--u)));
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.meta {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px;
  color: #bdbdbf; font-size: 14px;
}
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 17px; height: 17px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta .author img { width: 26px; height: auto; }

/* ---------- Body ---------- */
.article {
  background: #0e0e0f;
  padding: max(20px, calc(30 * var(--u))) var(--gutter) max(72px, calc(110 * var(--u)));
  position: relative;
}
.article::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(180deg, rgba(14,14,15,0), #000);
  pointer-events: none;
}
.article__wrap { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

.prose { color: #cfcfd1; font-weight: 300; font-size: max(16.5px, calc(19 * var(--u))); line-height: 2.05; }
.prose > * + * { margin-top: 1.1em; }
.prose p:first-child::first-line { color: #f3f3f3; }
.prose h2 {
  margin-top: 1.8em;
  color: var(--gold);
  font-weight: 500;
  font-size: max(21px, calc(27 * var(--u)));
  line-height: 1.5;
  display: flex; align-items: center; gap: 12px;
}
.prose h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--yellow); flex-shrink: 0; }
.prose strong { color: #f3f3f3; font-weight: 500; }
.en { font-family: var(--font-wix); direction: ltr; unicode-bidi: isolate; }

/* key-value points ("عنوان: توضیح") */
.points { list-style: none; padding: 0; display: grid; gap: 14px; }
.points li {
  position: relative;
  padding: 18px 22px 18px 22px;
  padding-right: 56px;
  border-radius: 14px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  line-height: 1.95;
}
.points li::before {
  content: counter(pt, persian);
  counter-increment: pt;
  position: absolute; right: 16px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245,170,3,.12); border: 1px solid rgba(245,170,3,.4);
  color: var(--yellow); font-size: 13px; font-weight: 500; line-height: 1;
}
.points { counter-reset: pt; }
.points li strong { display: block; color: var(--yellow); font-weight: 500; margin-bottom: 2px; }

/* price timeline */
.years { list-style: none; padding: 0; position: relative; }
.years::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 9px; width: 2px; background: linear-gradient(180deg, rgba(245,170,3,.2), var(--yellow)); }
.years li { position: relative; padding-right: 38px; padding-block: 10px; }
.years li::before {
  content: ""; position: absolute; right: 3px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #0e0e0f; border: 3px solid var(--yellow);
}
.years li:last-child::before { background: var(--yellow); box-shadow: 0 0 16px rgba(245,170,3,.7); }
.years b { display: inline-block; min-width: 64px; color: var(--yellow); font-weight: 700; font-size: 1.05em; }
.years .price { color: #f3f3f3; font-weight: 500; }

/* callout */
.callout {
  padding: 18px 22px;
  border-right: 3px solid var(--yellow);
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(270deg, rgba(245,170,3,.1), rgba(245,170,3,0));
  color: #f0f0f0;
}

/* ---------- Actions: like + share ---------- */
.actions {
  margin-top: max(36px, calc(48 * var(--u)));
  padding-block: 18px;
  border-block: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.actions__label { color: #9a9a9c; font-size: 14px; margin-inline-end: 6px; }
.share { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 42px; min-width: 42px; padding-inline: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #d6d6d6; font: inherit; font-size: 14px;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.icon-btn:hover { border-color: rgba(245,170,3,.5); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.is-liked { color: #ff4d6a; border-color: rgba(255,77,106,.5); }
.icon-btn.is-liked svg { fill: currentColor; animation: pop .45s cubic-bezier(.16,1,.3,1); }
.icon-btn.is-copied { color: var(--yellow); border-color: rgba(245,170,3,.5); }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  color: #bdbdbf; font-size: 14.5px;
  transition: color .3s;
}
.back:hover { color: var(--yellow); }

/* ---------- Course CTA ---------- */
.course-cta {
  margin-top: max(40px, calc(56 * var(--u)));
  padding: max(26px, calc(36 * var(--u)));
  border-radius: 20px;
  border: 1px solid rgba(245,170,3,.3);
  background: radial-gradient(80% 120% at 50% 0%, rgba(245,170,3,.18), rgba(245,170,3,0) 70%), #121212;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.course-cta h3 { color: var(--yellow); font-size: max(19px, calc(23 * var(--u))); font-weight: 700; line-height: 1.5; }
.course-cta p { color: #c6c6c8; font-weight: 300; font-size: 15px; line-height: 1.9; margin-top: 4px; }
.course-cta a {
  flex-shrink: 0;
  height: 48px; padding-inline: 26px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--yellow); color: #080808; font-weight: 500;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.course-cta a:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,170,3,.3); }

/* ---------- Related ---------- */
.related {
  max-width: var(--container);
  margin: max(56px, calc(90 * var(--u))) auto 0;
  position: relative; z-index: 1;
}
.related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.related__head h2 { color: var(--gold); font-weight: 500; font-size: max(21px, calc(27 * var(--u))); }
.related__head a { color: #bdbdbf; font-size: 14.5px; transition: color .3s; }
.related__head a:hover { color: var(--yellow); }

@media (max-width: 760px) {
  .hero--article { min-height: 480px; }
  .hero--article .hero__content { position: absolute; inset: auto 0 0 0; padding: 0 20px 34px; }
  .hero--article .hero__title { font-size: 30px; }
  .article { padding-inline: 20px; }
  .prose { max-width: 350px; margin-inline: auto; }
  .points li { padding: 16px 16px 16px 16px; padding-right: 50px; }
  .actions { justify-content: center; }
  .course-cta { flex-direction: column; text-align: center; }
  .course-cta a { align-self: stretch; }
  .related { padding-inline: 0; }
}
