/* ==========================================================================
   MAADANOL — Downloads page (page-specific styles)
   Loaded ONLY on /downloads/ and /en/downloads/ (see maadanol_enqueue_assets
   in functions.php) — nothing in this file can affect any other page.
   Reuses the shared tokens (--primary, --accent-text, --radius-*, --shadow-*,
   var(--font-display) etc.) already defined in style.css, which is enqueued
   as this stylesheet's dependency.
   ========================================================================== */

/* ---------- Hero ---------- */
.dlc-hero__grid{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.dlc-hero__facts{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dlc-hero__fact{
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px 20px;
}
.dlc-hero__fact strong{
  display:block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--primary);
  margin-bottom: 4px;
}
.dlc-hero__fact span{ font-size: 13px; color: var(--gray); }

@media (max-width: 900px){
  .dlc-hero__grid{ grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px){
  .dlc-hero__facts{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Toolbar: search + category filters ---------- */
.dlc-toolbar{
  display:flex; gap: 18px; flex-wrap: wrap; align-items:center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.dlc-search{ position: relative; flex: 1 1 260px; min-width: 220px; }
.dlc-search svg{
  position:absolute; inset-inline-start: 14px; top:50%; transform: translateY(-50%); color: var(--gray-light);
  pointer-events: none;
}
.dlc-search input{
  width:100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 13.5px; font-family: inherit; background: var(--bg);
}
html[dir="rtl"] .dlc-search input{ padding: 12px 42px 12px 16px; }
.dlc-search input:focus{ outline:none; border-color: var(--accent); background: var(--white); }

.dlc-filters{ display:flex; gap: 8px; flex-wrap: wrap; }
.dlc-filter{
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--gray); font-family: inherit; transition: all .2s;
  white-space: nowrap;
}
.dlc-filter:hover{ border-color: var(--primary); color: var(--primary); }
.dlc-filter.is-active{ background: var(--primary); border-color: var(--primary); color: #fff; }

.dlc-count{ font-size: 13px; color: var(--gray); margin: 0 0 18px; }

/* ---------- Download grid + cards ---------- */
.dlc-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dlc-card{
  display:flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.dlc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.dlc-card__top{ display:flex; align-items:center; justify-content: space-between; margin-bottom: 16px; }
.dlc-card__icon{
  width: 48px; height: 48px; border-radius: 10px; background: var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.02em; flex-shrink:0;
}
.dlc-card__lang{
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-text);
  background: rgba(30,136,229,0.09); padding: 4px 10px; border-radius: 999px;
}
.dlc-card h3{ font-size: 16px; margin: 0 0 8px; line-height: 1.4; }
.dlc-card p{ font-size: 13px; color: var(--gray); margin: 0 0 16px; flex: 1; }
.dlc-card__meta{
  display:flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--gray-light);
  padding: 14px 0; margin-bottom: 4px; border-top: 1px dashed var(--line);
}
.dlc-card__product{
  display:block; font-size: 12.5px; font-weight: 700; color: var(--accent-text); margin-bottom: 14px;
}
.dlc-card__action{
  display:inline-flex; align-items:center; justify-content:center; gap: 8px; width: 100%;
}
.dlc-card__action--soon{
  display:flex; align-items:center; justify-content:center; width:100%; padding: 10px 20px;
  border-radius: 999px; background: var(--bg); color: var(--gray-light); font-size: 13px; font-weight: 600;
  border: 1.5px dashed var(--line);
}

.dlc-empty{ text-align:center; padding: 60px 20px; color: var(--gray); font-size: 15px; }

.dlc-loadmore-wrap{ display:flex; justify-content:center; margin-top: 32px; }

@media (max-width: 1000px){ .dlc-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .dlc-grid{ grid-template-columns: 1fr; } }

/* ---------- Related downloads (reuses .related-grid/.related-card from
   style.css; these fill in the icon slot that stands in for the product
   image on a document card) ---------- */
.dlc-related-card{ display:flex; align-items:center; gap: 16px; padding: 18px 20px; }
.dlc-related-card .related-card__body{ padding: 0; }
.dlc-related-card__icon{
  width: 46px; height: 46px; border-radius: 10px; background: var(--bg); color: var(--primary);
  border: 1px solid var(--line); display:flex; align-items:center; justify-content:center;
  font-size: 10.5px; font-weight: 800; flex-shrink:0;
}
.dlc-related-card--soon{ cursor: default; opacity: .6; }
.dlc-related-card--soon:hover{ transform: none; box-shadow: var(--shadow-sm); }

@media (max-width: 900px){ .dlc-related-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .dlc-related-grid{ grid-template-columns: 1fr; } }
