/* ==========================================================================
   HOSTMAFIYA  -  DOWNLOADS HOME  (index.php?rp=/download)
   body.hm-skin.hm-ann.hm-annx.hm-kbx.hm-dlx - loaded by header.tpl on 'downloads' only,
   after hm-announce.css (page, hero, breadcrumb, sidebars) and hm-kb.css (search, cards, list).
   Markup: downloads.tpl + includes/hm-dl-hero.tpl
   ========================================================================== */

/* ---------- Empty state ------------------------------------------------------ */
.hm-dl-empty {
    padding: 22px;
    background: #FCEFED;
    border: 2px solid #E5092A;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(229, 9, 42, .38), 0 12px 28px rgba(40, 0, 6, .28);
}
.hm-dl-empty__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 30px;
    text-align: center;
    border: 2px dashed #e9b9bf;
    border-radius: 14px;
}
.hm-dl-empty__img { width: 300px; max-width: 80%; height: auto; }
body.hm-dlx .hm-dl-empty__title {
    margin: 6px 0 6px;
    color: #1a0a0c;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
}
.hm-dl-empty__txt { margin: 0; color: #4a3236; font-size: 17px; }

/* ---------- With downloads ------------------------------------------------------ */
body.hm-dlx .hm-dl-intro { margin: -4px 0 18px; color: #f6dfe1; font-size: 15px; }
.hm-dl-cat__desc {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    color: #6b4f54;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hm-dl-cats .hm-kb-cat__ic { color: #e0a800; }

.hm-dl-item .hm-kb-art__link { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.hm-dl-item__txt { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.hm-dl-item__title { font-weight: 700; overflow-wrap: break-word; }
.hm-dl-item__lock { margin-left: 6px; color: #9a7d82; font-size: 13px; }
.hm-dl-item__desc { margin-top: 2px; color: #6b4f54; font-size: 14px; font-weight: 400; line-height: 1.4; }
.hm-dl-item__size {
    flex: 0 0 auto;
    padding: 3px 12px;
    color: #1a0a0c;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: #FFE89A;
    border-radius: 14px;
}
.hm-dl-item__go {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #E5092A;
    font-size: 14px;
    background: #F6D9DA;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.hm-dl-item .hm-kb-art__link:hover .hm-dl-item__go { color: #fff; background: #E5092A; }
.hm-dl-none { margin: 6px 0 10px; color: #4a3236; text-align: center; }

@media (max-width: 767px) {
    .hm-dl-empty { padding: 14px; border-radius: 16px; }
    .hm-dl-empty__box { padding: 14px 12px 22px; }
    body.hm-dlx .hm-dl-empty__title { font-size: 22px; }
    .hm-dl-empty__txt { font-size: 15px; }
}

/* hero: this illustration is taller than the Knowledgebase one */
body.hm-dlx .hm-dl-hero .hm-ax-hero__art { width: 420px; }
@media (max-width: 1399px) {
    body.hm-dlx .hm-dl-hero .hm-ax-hero__art { width: 390px; }
}
@media (max-width: 1199px) {
    body.hm-dlx .hm-dl-hero .hm-ax-hero__art { width: 440px; }
}

/* hm-kb.css lets every span in a list row grow (.hm-kb-art__link > span) - keep the size pill compact */
.hm-dl-item .hm-kb-art__link > .hm-dl-item__size { flex: 0 0 auto; min-width: 0; }
.hm-dl-item .hm-kb-art__link > .hm-dl-item__txt { flex: 1 1 auto; }

@media (max-width: 767px) {
    .hm-dl-item .hm-kb-art__link {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) 34px;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
    }
    .hm-dl-item .hm-kb-art__link > i:first-child { grid-column: 1; grid-row: 1 / span 2; margin-top: 2px; }
    .hm-dl-item .hm-kb-art__link > .hm-dl-item__txt { grid-column: 2; grid-row: 1; }
    .hm-dl-item .hm-kb-art__link > .hm-dl-item__size { grid-column: 2; grid-row: 2; justify-self: start; }
    .hm-dl-item .hm-kb-art__link > .hm-dl-item__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
