/* ===== صفحه دانلودها — با استفاده از توکن‌های style.css (بدون رنگ جدید) ===== */

.dl-section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 40px; font-size: 16px; }

/* هدر بخش (آیکون + عنوان + توضیح) */
.dl-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; max-width: 840px; }
.dl-head .dl-head-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.dl-head .dl-head-ic svg { width: 27px; height: 27px; }
.dl-head-txt h2 { font-size: 23px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.dl-head-txt p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ——— نرم‌افزارها ——— */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dl-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #cfe0f4; }
.dl-card:hover::before { transform: scaleX(1); }
.dl-card-ic {
  width: 58px; height: 58px; border-radius: 15px; background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; transition: transform .3s ease;
}
.dl-card-ic svg { width: 30px; height: 30px; }
.dl-card:hover .dl-card-ic { transform: scale(1.06); }
.dl-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.dl-card .dl-desc { color: var(--muted); font-size: 14.5px; flex: 1; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dl-tags span { background: var(--blue-light); color: var(--navy-2); padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-meta svg { width: 14px; height: 14px; }
.dl-card .btn { justify-content: center; margin-top: 4px; }
.dl-card .btn svg { width: 17px; height: 17px; }

/* ——— اسناد / PDF (تیمار بصری متفاوت: افقی) ——— */
.dl-doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dl-doc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 18px;
  border-right: 3px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dl-doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-right-color: var(--blue); }
.dl-doc-ic {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 13px;
  background: #fdeceb; color: #c0392b; display: flex; align-items: center; justify-content: center;
  position: relative; font-weight: 800; font-size: 11px;
}
.dl-doc-ic svg { width: 30px; height: 30px; }
.dl-doc-body { flex: 1; min-width: 0; }
.dl-doc-body h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.dl-doc-body p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.dl-doc-body .dl-doc-size { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.dl-doc .btn { flex-shrink: 0; }

/* حالت‌های بارگذاری / خالی / خطا */
.dl-state { text-align: center; color: var(--muted); padding: 30px 20px; font-size: 15px; grid-column: 1 / -1; }
.dl-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; gap: inherit; }

/* ورود نرم کارت‌های داینامیک */
.dl-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.dl-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dl-reveal { opacity: 1; transform: none; transition: none; } }

/* واکنش‌گرا */
@media (max-width: 980px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .dl-grid, .dl-doc-grid { grid-template-columns: 1fr; }
  .dl-doc { flex-direction: column; align-items: flex-start; text-align: right; }
  .dl-doc .btn { width: 100%; justify-content: center; }
  .dl-head-txt h2 { font-size: 20px; }
}
