﻿/* ==========================================================================
   ISHOST — صفحه اصلی مهمان (ishost119)
   نرم‌سازی افکت‌ها: نوار امضایی ظریف، سرچ‌بار با سایه سبک و جداکننده،
   چیپ‌های ساکت، hover ملایم — حس دیجیتال و حرفه‌ای
   ========================================================================== */

body.tpl-homepage {
    --ish-blue: #0d3ea3;
    --ish-blue-dark: #0a2a66;
    --ish-gold: #f5b400;
    --ish-ink: #0f172a;
    --ish-muted: #64748b;
    --ish-line: #e5eaf1;
}

body.tpl-homepage .ish-hm,
body.tpl-homepage .ish-hm-band {
    font-family: "Vazir", "IRANSans", "IRANYekan", Tahoma, Arial, sans-serif;
}

/* عناصر قدیمی WHMCS در صفحه اصلی */
body.tpl-homepage .home-shortcuts,
body.tpl-homepage .card-columns.home,
body.tpl-homepage .home-domain-search {
    display: none !important;
}

/* بدنه tinted تا کارت‌های سفید رویش برجسته شوند و با hero یکدست باشد */
body.tpl-homepage #main-body {
    padding-top: 0;
    background: #f8fafd;
}

/* ——————————————————————————————————————
   باند hero — روشن، بدون خط قطع، محو به بدنه
   —————————————————————————————————————— */
.ish-hm-band {
    position: relative;
    background:
        linear-gradient(90deg, transparent 0%, rgba(13, 62, 163, 0.4) 22%, rgba(245, 180, 0, 0.42) 50%, rgba(13, 62, 163, 0.4) 78%, transparent 100%) top center / 100% 2px no-repeat,
        radial-gradient(ellipse 55% 75% at 85% 0%, rgba(245, 180, 0, 0.12), transparent 58%),
        radial-gradient(ellipse 50% 70% at 10% 100%, rgba(13, 62, 163, 0.11), transparent 60%),
        linear-gradient(180deg, #f6faff 0%, #ecf3fc 72%, #f8fafd 100%);
    background-color: #f4f8fe;
    color: var(--ish-ink);
    padding: 3.5rem 0 4.8rem;
    text-align: center;
}

/* کلمه برجسته تیتر: آبی برند با هایلایت طلایی خیلی ملایم */
.ish-hm-band__accent {
    color: var(--ish-blue);
    background: linear-gradient(transparent 74%, rgba(245, 180, 0, 0.22) 74%, rgba(245, 180, 0, 0.22) 94%, transparent 94%);
    padding: 0 3px;
}

.ish-hm-band__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.ish-hm-band__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--ish-ink);
}

.ish-hm-band__lead {
    margin: 0 0 1.8rem;
    font-size: clamp(0.92rem, 1.4vw, 1rem);
    line-height: 1.9;
    color: var(--ish-muted);
}

.ish-hm-band__cta {
    margin-bottom: 0.4rem;
}

.ish-hm-band__btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1.8rem;
    border-radius: 13px;
    background: var(--ish-blue);
    color: #fff !important;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.ish-hm-band__btn:hover {
    background: #0a3284;
}

/* —— سرچ‌بار مرکزی —— */
.ish-hm-search {
    max-width: 640px;
    margin: 0 auto;
}

.ish-hm-search__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dfe7f2;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 14px 34px -20px rgba(13, 62, 163, 0.22);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ish-hm-search__bar:focus-within {
    border-color: rgba(13, 62, 163, 0.3);
    box-shadow:
        0 0 0 3px rgba(13, 62, 163, 0.06),
        0 14px 34px -20px rgba(13, 62, 163, 0.26);
}

.ish-hm-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 0.9rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--ish-ink);
    direction: ltr;
    text-align: left;
}

.ish-hm-search__input:focus {
    outline: none;
}

.ish-hm-search__input::placeholder {
    direction: rtl;
    text-align: right;
    font-weight: 400;
    font-size: 0.93rem;
    color: #94a3b8;
}

.ish-hm-search__badge {
    position: relative;
    flex-shrink: 0;
    padding: 6px 13px;
    border-radius: 9px;
    background: rgba(13, 62, 163, 0.07);
    color: var(--ish-blue);
    font-size: 0.9rem;
    font-weight: 800;
    direction: ltr;
    pointer-events: none;
}

/* جداکننده عمودی ظریف بین input و نشان پسوند */
.ish-hm-search__badge::before {
    content: "";
    position: absolute;
    inset-inline-start: -10px;
    top: 18%;
    height: 64%;
    width: 1px;
    background: #e8edf5;
}

.ish-hm-search__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 1.45rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #1148b8, var(--ish-blue));
    color: #fff;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.ish-hm-search__btn:hover {
    filter: brightness(0.94);
}

.ish-hm-search__btn svg {
    flex-shrink: 0;
}

/* —— چیپ‌های پسوند —— */
.ish-hm-search__quick {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.ish-hm-chip {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    direction: ltr;
    cursor: pointer;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.ish-hm-chip:hover {
    background: #fff;
    color: var(--ish-blue);
}

.ish-hm-chip.is-active {
    background: rgba(13, 62, 163, 0.09);
    border-color: rgba(13, 62, 163, 0.35);
    color: var(--ish-blue);
}

/* —— لینک‌های زیر جستجو —— */
.ish-hm-search__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 0.95rem;
}

.ish-hm-search__links a {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ish-blue) !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(13, 62, 163, 0.45);
    padding-bottom: 1px;
    transition: border-color 0.14s ease;
}

.ish-hm-search__links a:hover {
    border-bottom-color: var(--ish-blue);
    border-bottom-style: solid;
}

.ish-hm-search__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(13, 62, 163, 0.35);
}

/* ——————————————————————————————————————
   سکشن‌های بدنه
   —————————————————————————————————————— */
.ish-hm {
    position: relative;
    margin: -2.7rem auto 0; /* همپوشانی با لبه پایین hero برای دوختن دو بخش */
    padding: 0 0 2.2rem;
}

.ish-hm-section {
    margin: 0 0 2.5rem;
}

/* تیتر سکشن‌ها وسط‌چین — هم‌راستا با محور مرکزی hero */
.ish-hm-section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    margin: 0 0 1.25rem;
}

.ish-hm-section__head h2 {
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ish-ink);
}

.ish-hm-section__head h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ish-blue), var(--ish-gold));
}

.ish-hm-section__head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ish-muted);
}

/* —— کارت‌های عمودی محصول —— */
.ish-hm-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ish-hm-card {
    --tone: 13, 62, 163;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 20px 18px;
    border-radius: 16px;
    border: 1px solid #eef2f8;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    text-align: right;
    box-shadow: 0 14px 30px -26px rgba(13, 62, 163, 0.22);
    transition: transform 0.17s ease, border-color 0.17s ease, box-shadow 0.17s ease;
}

.ish-hm-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--tone), 0.28);
    box-shadow: 0 18px 32px -26px rgba(var(--tone), 0.35);
}

.ish-hm-card--gold {
    --tone: 176, 118, 0;
}

.ish-hm-card--teal {
    --tone: 13, 124, 102;
}

.ish-hm-card__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(var(--tone), 0.08);
    border: 1px solid rgba(var(--tone), 0.16);
    margin-bottom: 2px;
}

.ish-hm-card__mono img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ish-hm-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ish-ink);
    line-height: 1.5;
}

.ish-hm-card__desc {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--ish-muted);
    flex: 1 1 auto;
}

.ish-hm-card__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(var(--tone), 0.07);
    color: rgb(var(--tone));
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ish-hm-card:hover .ish-hm-card__go {
    background: rgba(var(--tone), 0.15);
}

/* —— نوار پشتیبانی فشرده —— */
.ish-hm-support {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ish-hm-slink {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border-radius: 14px;
    border: 1px solid #eef2f8;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 10px 24px -24px rgba(13, 62, 163, 0.2);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.ish-hm-slink:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 62, 163, 0.32);
}

.ish-hm-slink img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    object-fit: contain;
}

.ish-hm-slink__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ish-hm-slink__body strong {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--ish-ink);
}

.ish-hm-slink__body small {
    font-size: 0.74rem;
    color: var(--ish-muted);
}

/* ——————————————————————————————————————
   ریسپانسیو
   —————————————————————————————————————— */
@media (max-width: 991.98px) {
    .ish-hm-products,
    .ish-hm-support {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .ish-hm-band {
        padding: 2.4rem 0 3.6rem;
    }

    .ish-hm {
        margin-top: -2rem;
    }

    .ish-hm-search__bar {
        flex-wrap: wrap;
    }

    .ish-hm-search__input {
        flex: 1 1 60%;
        height: 44px;
    }

    .ish-hm-search__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .ish-hm-products,
    .ish-hm-support {
        grid-template-columns: 1fr;
    }
}
