/* =========================================================
 * Mobile Footer
 * ========================================================= */

.nk-mobile-footer {
    width: 100%;
    direction: rtl;
    text-align: center;
    box-sizing: border-box;

    color: var(--al-comment-text);
    background: var(--al-comment-surface-soft) !important;
	/*background: #c8e6e6;*/
	border-top: 2px solid var(--al-comment-border-soft);

    -webkit-tap-highlight-color: transparent; /* حذف باکس آبی در اندروید و iOS */
    outline: none; /* حذف خط دور (Focus Ring) در مرورگرهای خاص */
    user-select: none; /* جلوگیری از انتخاب شدن متن هنگام لمس سریع */
}

.nk-mobile-footer focus,
.nk-mobile-footer active {
    -webkit-tap-highlight-color: transparent; /* حذف باکس آبی در اندروید و iOS */
    outline: none; /* حذف خط دور (Focus Ring) در مرورگرهای خاص */
    user-select: none; /* جلوگیری از انتخاب شدن متن هنگام لمس سریع */
}


.nk-mobile-footer *,
.nk-mobile-footer *::before,
.nk-mobile-footer *::after {
    box-sizing: border-box;
}


.nk-mobile-footer__inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 20px 22px;
}


/* =========================================================
 * Description
 * ========================================================= */

.nk-mobile-footer__description-section {
    margin: 0;
    padding: 0 0 24px;
}

.nk-mobile-footer__description {
    max-width: 500px;
    margin: 0 auto;

    font-size: 14px;
    line-height: 2;

    color: var(--al-comment-text-soft);
}


/* =========================================================
 * Contact + Social
 * ========================================================= */

.nk-mobile-footer__contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 0 0;

    border-top: var(--al-comment-line);
}


/* =========================================================
 * Phone
 * ========================================================= */

.nk-mobile-footer__phone {
    flex: 0 0 auto;
}

.nk-mobile-footer__phone a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--al-comment-text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: color var(--al-comment-transition-fast);
}


.nk-mobile-footer__phone a:hover {
    color: var(--al-comment-accent-dark);
}


.nk-mobile-footer__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--al-comment-accent);

    font-size: 16px;
}


/* =========================================================
 * Social
 * ========================================================= */

.nk-mobile-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.nk-mobile-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border: 1px solid var(--al-comment-border);
    border-radius: 50%;

    color: var(--al-comment-text-soft);
    background: var(--al-comment-surface);

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    box-shadow: var(--al-comment-shadow-xs);

    transition:
        transform var(--al-comment-transition-fast),
        background-color var(--al-comment-transition-fast),
        color var(--al-comment-transition-fast),
        border-color var(--al-comment-transition-fast),
        box-shadow var(--al-comment-transition-fast);
}


.nk-mobile-footer__socials a:hover {
    transform: translateY(-2px);

    color: var(--al-comment-accent-dark);

    border-color: var(--al-comment-accent-soft);

    background: var(--al-comment-accent-soft);

    box-shadow: var(--al-comment-shadow-sm);
}


/* =========================================================
 * Social Icons
 * ========================================================= */

.nk-mobile-footer__socials a {
    overflow: hidden;
}


.nk-mobile-footer__socials img {
    display: block;

    width: 18px;
    height: 18px;

    object-fit: contain;

    transition: transform var(--al-comment-transition-fast);
}


.nk-mobile-footer__socials a:hover img {
    transform: scale(1.08);
}


/* =========================================================
 * Middle Section
 * ========================================================= */

.nk-mobile-footer__middle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding: 24px 0;
}


/* =========================================================
 * Accordions
 * ========================================================= */

.nk-mobile-footer__accordions {
    width: 100%;
    flex: 1;
    min-width: 0;

    text-align: center;

    -webkit-tap-highlight-color: transparent; /* حذف باکس آبی در اندروید و iOS */
    outline: none; /* حذف خط دور (Focus Ring) در مرورگرهای خاص */
    user-select: none; /* جلوگیری از انتخاب شدن متن هنگام لمس سریع */
}


/* =========================================================
 * Accordion
 * ========================================================= */

.nk-mobile-footer__accordion {
    width: 100%;

    margin: 0 0 10px;

    overflow: hidden;

    border: 1px solid var(--al-comment-border);
    border-radius: var(--al-comment-radius-sm);

    background: var(--al-comment-surface);

    box-shadow: var(--al-comment-shadow-xs);

    transition:
        border-color var(--al-comment-transition),
        background-color var(--al-comment-transition),
        box-shadow var(--al-comment-transition);
}


.nk-mobile-footer__accordion:last-child {
    margin-bottom: 0;
}


.nk-mobile-footer__accordion:hover {
    border-color: var(--al-comment-border-strong);

    box-shadow: var(--al-comment-shadow-sm);
}


/* =========================================================
 * Accordion Button
 * ========================================================= */

.nk-mobile-footer__accordion-toggle {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 0;
    padding: 15px 16px;

    border: 0;
    outline: none;

    background: transparent;

    color: var(--al-comment-text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    cursor: pointer;

    transition:
        background-color var(--al-comment-transition-fast),
        color var(--al-comment-transition-fast);
}


/* Hover */

.nk-mobile-footer__accordion-toggle:hover {
    background: var(--al-comment-bg-soft);

    color: var(--al-comment-accent-dark);
}


/* Focus */

.nk-mobile-footer__accordion-toggle:focus {
    outline: none;
}


/* =========================================================
 * Accordion Icon
 * ========================================================= */

.nk-mobile-footer__accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    border-radius: 50%;

    background: var(--al-comment-accent-soft);

    color: var(--al-comment-accent-dark);

    font-size: 17px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform var(--al-comment-transition),
        background-color var(--al-comment-transition),
        color var(--al-comment-transition);
}


/* =========================================================
 * Open State
 * ========================================================= */

.nk-mobile-footer__accordion-toggle[aria-expanded="true"] {
    color: var(--al-comment-accent-dark);

    background: var(--al-comment-bg-soft);
}


.nk-mobile-footer__accordion-toggle[aria-expanded="true"]
.nk-mobile-footer__accordion-icon {
    background: var(--al-comment-accent);

    color: #fff;

    transform: rotate(180deg);
}


/* =========================================================
 * Accordion Content (انیمیشن مدرن و فوق‌العاده نرم با CSS Grid)
 * ========================================================= */

.nk-mobile-footer__accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--al-comment-surface-soft);
    border-top: 1px solid transparent;
}

/* برای اینکه انیمیشن ارتفاع و محتوا تمیز اجرا شود */
.nk-mobile-footer__accordion-content > ul {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 18px 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: 
        opacity 0.25s ease,
        transform 0.25s ease,
        padding 0.3s ease;
}

/* =========================================================
 * حالت باز (Active / Open)
 * ========================================================= */

.nk-mobile-footer__accordion.is-open .nk-mobile-footer__accordion-content {
    grid-template-rows: 1fr;
    border-top-color: var(--al-comment-border-soft);
}

.nk-mobile-footer__accordion.is-open .nk-mobile-footer__accordion-content > ul {
    opacity: 1;
    transform: translateY(0);
    padding: 8px 18px 14px;
}

.nk-mobile-footer__accordion-content li {
    margin: 0;
    padding: 0;
}


/* =========================================================
 * Accordion Links
 * ========================================================= */

.nk-mobile-footer__accordion-content a {
    position: relative;

    display: block;

    padding: 8px 0;

    color: var(--al-comment-text-soft);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;

    text-decoration: none;

    transition:
        color var(--al-comment-transition-fast),
        transform var(--al-comment-transition-fast);
}


.nk-mobile-footer__accordion-content a:hover {
    color: var(--al-comment-accent-dark);

    transform: translateY(-1px);
}


/* =========================================================
 * Small Separator Between Links
 * ========================================================= */

.nk-mobile-footer__accordion-content li + li {
    border-top: 1px solid var(--al-comment-border-soft);
}


/* =========================================================
 * Trust Badges
 * ========================================================= */

.nk-mobile-footer__trust {
    flex: 0 0 120px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    padding-top: 4px;
}


.nk-mobile-footer__trust-title {
    font-size: 13px;
    font-weight: 700;

    color: var(--al-comment-text);
}


.nk-mobile-footer__trust-items {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;
}


.nk-mobile-footer__trust-items a,
.nk-mobile-footer__trust-items span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 62px;

    border-radius: var(--al-comment-radius-xs);

    text-decoration: none;

    transition:
        transform var(--al-comment-transition-fast),
        background-color var(--al-comment-transition-fast);
}


.nk-mobile-footer__trust-items a:hover {
    transform: translateY(-2px);

    background: var(--al-comment-bg-soft);
}


.nk-mobile-footer__trust-items img {
    display: block;

    max-width: 100%;
    max-height: 62px;

    width: auto;
    height: auto;

    object-fit: contain;
	background: transparent !important;
}


/* =========================================================
 * Bottom
 * ========================================================= */

.nk-mobile-footer__bottom {
    padding-top: 20px;

    border-top: var(--al-comment-line);

    text-align: center;
}


/* =========================================================
 * Copyright
 * ========================================================= */

.nk-mobile-footer__copyright {
    margin: 0;

    font-size: 12px;
    line-height: 2;

    color: var(--al-comment-text-muted);
}


/* =========================================================
 * Designer
 * ========================================================= */

.nk-mobile-footer__designer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 4px;

    font-size: 12px;
    line-height: 2;

    color: var(--al-comment-text-muted);
}


.nk-mobile-footer__designer a {
    color: var(--al-comment-accent-dark);

    font-weight: 600;

    text-decoration: none;

    transition: color var(--al-comment-transition-fast);
}


.nk-mobile-footer__designer a:hover {
    color: var(--al-comment-accent);
    text-decoration: underline;
}


/* =========================================================
 * Small Mobile
 * ========================================================= */

@media (max-width: 480px) {

    .nk-mobile-footer__inner {
        padding-left: 16px;
        padding-right: 16px;
    }


    .nk-mobile-footer__contact-section {
        flex-direction: column;
        justify-content: center;
        gap: 14px;

        text-align: center;
    }


    .nk-mobile-footer__middle {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }


    .nk-mobile-footer__trust {
        width: 100%;
        flex: none;

        padding-top: 0;
    }


    .nk-mobile-footer__trust-items {
        max-width: 260px;
        margin: 0 auto;
    }

}


/* =========================================================
 * Very Small Mobile
 * ========================================================= */

@media (max-width: 360px) {

    .nk-mobile-footer__inner {
        padding-left: 14px;
        padding-right: 14px;
    }


    .nk-mobile-footer__description {
        font-size: 13px;
    }


    .nk-mobile-footer__accordion-toggle {
        font-size: 13px;
    }


    .nk-mobile-footer__phone a {
        font-size: 13px;
    }

}
