/* =================================================================
   NMEDIA FOOTER STYLES
   فایل: assets/footer.css
   نسخه: 1.0.0
   ================================================================= */

/* ─── متغیرها ────────────────────────────────────────────────── */
:root {
    --nf-white:        #FFFFFF;
    --nf-bg-main:      #FFFFFF;
    --nf-bg-bar:       #D0D4DC;
    --nf-primary-red:  #DE0404;
    --nf-text-dark:    #000000;
    --nf-text-muted:   #333333;
    --nf-link-red:     #FF0101;
    --nf-radius-outer: 15px;
    --nf-radius-bar:   0 0 15px 15px;
    --nf-shadow:       0 4px 20px rgba(0,0,0,0.15);
    --nf-transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
    --nf-font:         'IRANYekanX', 'Vazirmatn', Tahoma, sans-serif;
    --nf-content-width: min(100%, var(--container-max-width, 1140px));
}

/* ─── ریست پایه ──────────────────────────────────────────────── */
.nmedia-footer *,
.nmedia-footer *::before,
.nmedia-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── فوتر اصلی ──────────────────────────────────────────────── */
.nmedia-footer {
    font-family: var(--nf-font);
    direction: rtl;
    text-align: right;
    max-width: var(--nf-content-width);
    margin: 5px auto 0;
    position: relative;
    z-index: 98;
}

/* ─── ردیف محتوا (سه ستون) ───────────────────────────────────── */
.nf-inner {
    background: var(--nf-bg-main);
    border-radius: var(--nf-radius-outer);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px 10px 60px 10px;
    position: relative;
    z-index: 99;
}

/* ─── ستون‌ها ─────────────────────────────────────────────────── */
.nf-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ستون ۱: برند — عرض ~55% */
.nf-col--brand {
    flex: 0 0 55%;
    max-width: 55%;
    padding-left: 10px;
}

/* ستون ۲: لینک‌ها — عرض ~15% */
.nf-col--links {
    flex: 0 0 15%;
    max-width: 15%;
}

/* ستون ۳: شبکه‌های اجتماعی — عرض ~20% */
.nf-col--social {
    flex: 0 0 20%;
    max-width: 20%;
    align-self: flex-start;
}

/* ─── لوگو + عنوان برند ───────────────────────────────────────── */
.nf-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 8px;
}

.nf-logo-svg,
.nf-logo-img {
    flex-shrink: 0;
    border-radius: 8px;
    display: block;
}

.nf-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nf-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--nf-primary-red);
    line-height: 1.2;
}

.nf-brand-tagline {
    font-size: 12px;
    font-weight: 400;
    color: var(--nf-text-muted);
    opacity: 0.85;
}

/* ─── متن توضیحات ─────────────────────────────────────────────── */
.nf-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--nf-text-dark);
    line-height: 1.9;
    text-align: justify;
}

.nf-desc strong {
    font-weight: 700;
}

.nf-more-link {
    color: #0056b3;
    text-decoration: underline 1px;
    text-underline-offset: 3px;
    transition: var(--nf-transition);
}

.nf-more-link:hover {
    color: #003087;
}

/* ─── عنوان ستون ─────────────────────────────────────────────── */
.nf-col-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--nf-primary-red);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* ─── لیست دسترسی سریع ────────────────────────────────────────── */
.nf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nf-list li a {
    font-size: 14px;
    font-weight: 400;
    color: var(--nf-text-dark);
    text-decoration: none;
    display: block;
    padding: 2px 0;
    transition: var(--nf-transition);
}

.nf-list li a:hover {
    color: var(--nf-primary-red);
    padding-right: 4px;
}

/* ─── لیست شبکه‌های اجتماعی ────────────────────────────────────── */
.nf-social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nf-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--nf-text-dark);
    transition: var(--nf-transition);
}

.nf-social-item:hover {
    color: var(--nf-primary-red);
    transform: translateX(-3px);
}

.nf-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--nf-transition);
    color: #fff;
}

.nf-social--telegram  .nf-social-icon { background: #0088cc; }
.nf-social--whatsapp  .nf-social-icon { background: #25D366; }
.nf-social--instagram .nf-social-icon {
    background: linear-gradient(45deg,
        #f09433 0%, #e6683c 25%,
        #dc2743 50%, #cc2366 75%,
        #bc1888 100%);
}

.nf-social-item:hover .nf-social-icon {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: scale(1.08);
}

/* ─── نوار کپی‌رایت ────────────────────────────────────────────── */
.nf-copyright {
    background: var(--nf-bg-bar);
    border-radius: var(--nf-radius-bar);
    margin-top: -40px;
    padding: 20px 20px 30px;
    text-align: justify;
    position: relative;
    z-index: 98;
    place-items: center;
}

.nf-copyright p {
    font-size: 13px;
    font-weight: 400;
    color: var(--nf-text-dark);
    line-height: 1.7;
    margin-top: 30px;
    margin-bottom: -20px;
}

.nf-copyright a {
    color: var(--nf-link-red);
    font-weight: 700;
    text-decoration: underline !important;
}

/* ─── ریسپانسیو: تبلت ────────────────────────────────────────── */
@media (max-width: 1023px) and (min-width: 768px) {
    .nmedia-footer {
        width: 80%;
    }

    .nf-col--brand  { flex: 0 0 50%; max-width: 50%; }
    .nf-col--links  { flex: 0 0 20%; max-width: 20%; }
    .nf-col--social { flex: 0 0 25%; max-width: 25%; }
}

/* ─── ریسپانسیو: موبایل ──────────────────────────────────────── */
@media (max-width: 767px) {
    .nmedia-footer {
        width: calc(100% - 20px);
        margin: 5px 10px 0;
    }

    .nf-inner {
        flex-direction: column;
        gap: 24px;
        padding: 20px 15px 30px;
    }

    .nf-col--brand,
    .nf-col--links,
    .nf-col--social {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .nf-col--links,
    .nf-col--social {
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-top: 16px;
    }

    .nf-col-title {
        text-align: center;
    }

    .nf-col--social {
        align-items: center;
    }

    .nf-social-list {
        align-items: flex-start;
        width: 100%;
        max-width: 200px;
    }

    .nf-copyright {
        padding: 16px 15px;
        text-align: center;
    }
}

/* ─── دسکتاپ ─────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .nmedia-footer {
        width: 60%;
    }
}

/* ─── پرینت ──────────────────────────────────────────────────── */
@media print {
    .nmedia-footer { display: none; }
}