/* =================================================================
   NMEDIA FOOTER 3.0 (۲۰۲۶-۱۰-۱۲) — روی footer.css سوار می‌شود
   شبکه‌ها دوستونه و فشرده، معرفیِ کامل‌تر با آمار، دسترسیِ سریعِ دوستونه
   + «تازه‌های سایت». هدف: سه ستونِ هم‌قد به‌جای یک ستونِ بلند.
   ================================================================= */

.nf-inner {
    justify-content: space-between;
    gap: 0 28px;
    padding: 28px 26px 30px;
}

/* ستون‌ها با flex-basis صفر تقسیم می‌شوند تا با gap هرگز به ردیفِ دوم نشکنند */
@media (min-width: 1024px) {
    .nf-inner { flex-wrap: nowrap; }
    .nf-col--brand  { flex: 1.3 1 0; max-width: none; padding-left: 0; min-width: 0; }
    .nf-col--links  { flex: 1 1 0;   max-width: none; min-width: 0; }
    .nf-col--social { flex: 0 0 195px; max-width: none; }
    .nf-col--social .nf-col-title { white-space: nowrap; font-size: 16px; }
}

.nf-desc + .nf-desc {
    margin-top: -2px;
}

/* آمارِ زنده‌ی سایت */
.nf-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.nf-stats li {
    font-size: 12px;
    color: var(--nf-text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 3px 11px;
    line-height: 1.8;
}

.nf-stats b {
    color: #fff;
    font-weight: 700;
    margin-left: 3px;
}

/* دسترسیِ سریع: دو ستون */
.nf-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
}

.nf-list--grid li a,
.nf-list--latest li a {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-sub-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.nf-list--latest {
    gap: 2px;
}

.nf-list--latest li a {
    color: var(--nf-text-muted);
    padding-right: 12px;
    position: relative;
}

.nf-list--latest li a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--nf-primary-red);
}

.nf-list--latest li a:hover {
    color: #fff;
    padding-right: 14px;
}

/* شبکه‌ها: روی دسکتاپ یک ستونِ فشرده، روی تبلت/موبایل دوستونه */
.nf-social-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.nf-social-item {
    font-size: 13px;
    gap: 7px;
    min-width: 0;
}

.nf-social-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-social-icon {
    width: 28px;
    height: 28px;
}

.nf-social-icon svg {
    width: 16px;
    height: 16px;
}

/* تبلت */
@media (max-width: 1023px) and (min-width: 768px) {
    .nf-inner { flex-wrap: wrap; gap: 22px 24px; }
    .nf-col--brand  { flex: 0 0 100%; max-width: 100%; }
    .nf-col--links  { flex: 1 1 55%; max-width: 58%; }
    .nf-col--social { flex: 1 1 35%; max-width: 38%; }
    .nf-social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* موبایل */
@media (max-width: 767px) {
    .nf-inner { gap: 20px; }
    .nf-col--brand,
    .nf-col--links,
    .nf-col--social { flex: 0 0 100%; max-width: 100%; }
    .nf-stats { justify-content: center; }
    .nf-sub-title { text-align: center; }
    .nf-social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 320px; margin: 0 auto; }
}
