/* ═══════════════════════════════════════════════════════════════
   Mabsut Footer — نیلی روشن با اجزای سفید
   ═══════════════════════════════════════════════════════════════ */

.mbs-footer {
    background: linear-gradient(180deg, #3548a0 0%, #2d3d8a 100%);
    color: #eef2ff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* نوار رنگی بالای فوتر */
.mbs-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mbs-brand), var(--mbs-accent), var(--mbs-teal));
    z-index: 2;
}

/* الگوی تزئینی پس‌زمینه */
.mbs-footer::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ── ردیف ۱: محتوای اصلی ──────────────────────────────────── */
.mbs-footer__main {
    padding: 56px 0 40px;
    position: relative;
    z-index: 2;
}

.mbs-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr 1fr;
    gap: 40px;
}

.mbs-footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── برند ─────────────────────────────────────────────────── */
.mbs-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.mbs-footer__brand-name {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.mbs-footer__brand-tagline {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
}

.mbs-footer__about {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255,255,255,.9);
    max-width: 380px;
}

.mbs-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.mbs-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #ffffff;
}
.mbs-footer__contact-item svg {
    color: #ffffff;
    flex-shrink: 0;
    opacity: .9;
}
.mbs-footer__contact-item a {
    transition: opacity var(--mbs-t-fast);
    color: #ffffff;
}
.mbs-footer__contact-item a:hover {
    opacity: .8;
}

/* ── عنوان ستون ───────────────────────────────────────────── */
.mbs-footer__title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    position: relative;
    padding-bottom: 10px;
}
.mbs-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255,255,255,.5);
}

/* ── نمادها و مجوزها ──────────────────────────────────────── */
.mbs-footer__badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mbs-footer__badge {
    display: block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--mbs-radius-md);
    padding: 10px 6px;
    transition: all var(--mbs-t-base) var(--mbs-ease);
    text-align: center;
}
.mbs-footer__badge:hover {
    background: rgba(255,255,255,.22);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.mbs-footer__badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}
.mbs-footer__badge-inner svg {
    color: #ffffff;
}
.mbs-footer__badge-inner span {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
}

/* ── لینک‌های سریع ────────────────────────────────────────── */
.mbs-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mbs-footer__links a {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--mbs-t-fast) var(--mbs-ease);
    position: relative;
    padding-right: 14px;
}
.mbs-footer__links a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    opacity: .6;
    transition: all var(--mbs-t-fast);
}
.mbs-footer__links a:hover {
    color: #ffffff;
    padding-right: 18px;
}
.mbs-footer__links a:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px #ffffff;
}

/* ── ردیف ۲: شبکه‌های اجتماعی ──────────────────────────────── */
.mbs-footer__social {
    padding: 20px 0;
    background: rgba(0,0,0,.15);
    border-top: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.15);
    position: relative;
    z-index: 2;
}

.mbs-footer__social-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mbs-footer__social-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.mbs-footer__social-links {
    display: flex;
    gap: 10px;
}

.mbs-social-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #ffffff;
    transition: all var(--mbs-t-base) var(--mbs-ease);
}
.mbs-social-btn svg {
    fill: #ffffff;
    color: #ffffff;
}
.mbs-social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    border-color: #ffffff;
}

.mbs-social-btn--x:hover         { background: #000;              border-color: #000; }
.mbs-social-btn--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #ffffff; }
.mbs-social-btn--telegram:hover  { background: #0088cc;           border-color: #ffffff; }
.mbs-social-btn--youtube:hover   { background: #ff0000;           border-color: #ffffff; }
.mbs-social-btn--aparat:hover    { background: #e02e2e;           border-color: #ffffff; }
.mbs-social-btn--linkedin:hover  { background: #0077b5;           border-color: #ffffff; }

/* ── بازگشت به بالا ───────────────────────────────────────── */
.mbs-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--mbs-radius-full);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--mbs-t-fast) var(--mbs-ease);
}
.mbs-footer__back-to-top svg {
    fill: #ffffff;
    color: #ffffff;
}
.mbs-footer__back-to-top:hover {
    background: rgba(255,255,255,.3);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.mbs-footer__back-to-top svg {
    transition: transform var(--mbs-t-fast);
}
.mbs-footer__back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ── ردیف ۳: کپی‌رایت ────────────────────────────────────── */
.mbs-footer__bottom {
    padding: 16px 0;
    background: rgba(0,0,0,.2);
    position: relative;
    z-index: 2;
}

.mbs-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,.9);
}

.mbs-footer__copyright strong {
    color: #ffffff;
    font-weight: 700;
}

.mbs-footer__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
}

.mbs-footer__version {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--mbs-radius-full);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
}
.mbs-footer__version svg {
    fill: #ffffff;
}

.mbs-footer__sep {
    opacity: .5;
    color: #ffffff;
}

.mbs-footer__meta-link {
    color: rgba(255,255,255,.9);
    transition: color var(--mbs-t-fast);
}
.mbs-footer__meta-link:hover { color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mbs-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .mbs-footer__col--brand {
        grid-column: 1 / -1;
    }
    .mbs-footer__about { max-width: none; }
}

@media (max-width: 768px) {
    .mbs-footer { margin-top: 40px; }
    .mbs-footer__main { padding: 40px 0 28px; }

    .mbs-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mbs-footer__badges {
        grid-template-columns: repeat(4, 1fr);
    }

    .mbs-footer__social-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .mbs-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .mbs-footer__meta {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mbs-footer__badges {
        grid-template-columns: repeat(3, 1fr);
    }
    .mbs-footer__brand-name { font-size: 19px; }
    .mbs-social-btn { width: 36px; height: 36px; }
    .mbs-social-btn svg { width: 18px; height: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   Dynamic Footer Extras
   ═══════════════════════════════════════════════════════════════ */

/* لوگوی داینامیک فوتر */
.mbs-footer__logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--mbs-radius-md);
    background: rgba(255,255,255,.1);
    padding: 4px;
}

/* اسلات نمادهای داینامیک */
.mbs-footer__badges--dynamic {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mbs-footer__badge-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 70px;
    padding: 8px;
    background: #ffffff;
    border-radius: var(--mbs-radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform var(--mbs-t-base) var(--mbs-ease);
    overflow: hidden;
}

.mbs-footer__badge-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.mbs-footer__badge-slot img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mbs-footer__badge-slot > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mbs-footer__badge-link {
    display: block;
}

/* سازگاری با HTML inline از enamad/samandehi */
.mbs-footer__badge-slot a,
.mbs-footer__badge-slot div {
    display: block;
    text-align: center;
}

.mbs-footer__badge-slot img {
    display: block;
    margin: 0 auto;
}

/* جداکننده بین شبکه‌های اجتماعی و پیام‌رسان‌ها */
.mbs-social-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,.3);
    margin: 0 4px;
}

/* حالت خالی */
.mbs-footer__empty-note {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-style: italic;
}

/* آیکون‌های تازه — رنگ‌های سفید */
.mbs-social-btn svg {
    fill: #ffffff;
    color: #ffffff;
}

/* hover رنگ‌های اختصاصی برای پیام‌رسان‌های داخلی */
.mbs-social-btn--eitaa:hover    { background: #EF7F1A; border-color: #ffffff; }
.mbs-social-btn--bale:hover     { background: #00A3E0; border-color: #ffffff; }
.mbs-social-btn--soroush:hover  { background: #00B4D8; border-color: #ffffff; }
.mbs-social-btn--gap:hover      { background: #5C6BC0; border-color: #ffffff; }
.mbs-social-btn--rubika:hover   { background: #7B1FA2; border-color: #ffffff; }
.mbs-social-btn--igap:hover     { background: #F59E0B; border-color: #ffffff; }
.mbs-social-btn--whatsapp:hover { background: #25D366; border-color: #ffffff; }
.mbs-social-btn--signal:hover   { background: #3A76F0; border-color: #ffffff; }
.mbs-social-btn--facebook:hover { background: #1877F2; border-color: #ffffff; }

@media (max-width: 768px) {
    .mbs-footer__badges--dynamic {
        justify-content: center;
    }
    .mbs-footer__badge-slot {
        min-width: 60px;
        min-height: 60px;
    }
    .mbs-footer__badge-slot img {
        max-width: 50px;
        max-height: 50px;
    }
}
