/* ======================================== */
/*   FOOTER + MOBILE NAV — Premium 2026     */
/*   Complete | Final | Professional        */
/* ======================================== */

/* ---------- FOOTER ---------- */
.footer-section {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
    font-family: 'Vazirmatn', sans-serif !important;
    padding: 40px 0 20px !important;
    flex-shrink: 0;
}

.footer-section .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.footer-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 12px !important;
    position: relative;
    padding-bottom: 8px !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #7c3aed !important;
    border-radius: 2px;
}

.footer-text {
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    color: #cbd5e1 !important;
}

.footer-bold {
    font-size: 0.9rem !important;
    color: #e2e8f0 !important;
    margin-top: -15px !important;
    font-weight: 600 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 8px !important;
}

.footer-links a {
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-right 0.2s ease !important;
    display: inline-block !important;
}

.footer-links a:hover {
    color: #7c3aed !important;
    padding-right: 4px !important;
}

.social-icons {
    display: flex !important;
    gap: 14px !important;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.social-icons a:hover {
    background: #7c3aed !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3) !important;
}

.footer-section .d-flex.flex-column.gap-2 img {
    border-radius: 12px;
    max-width: 140px;
    transition: transform 0.2s ease;
}

.footer-section .d-flex.flex-column.gap-2 img:hover {
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 20px 0 !important;
}

.footer-copyright {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

/* ======================================== */
/*   DESKTOP — فاصله ستون‌ها                 */
/* ======================================== */
@media (min-width: 992px) {
    /* کم کردن فاصله لینک‌های سریع از شبکه‌های اجتماعی */
    .footer-section .col-lg-3 {
        padding-right: 5px !important;
    }

    .footer-section .col-lg-5 {
        padding-left: 5px !important;
    }
}

/* ======================================== */
/*   MOBILE BOTTOM NAVIGATION               */
/* ======================================== */
.mobile-nav {
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f0f0f5;
    padding: 0;
    height: 70px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 18px 18px 0 0;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 6px;
    height: 100%;
}

.nav-item {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 2px !important;
    padding: 4px 0;
}

.nav-link i {
    font-size: 1.3rem;
}

.nav-link.active {
    color: #1e293b !important;
}

.nav-link[href*="favorite"] span {
    margin-top: -2px !important;
}

.nav-item-plus .nav-link-plus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 2px;
    padding: 4px 0;
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    border-radius: 0;
    transform: none;
}

.nav-item-plus .nav-link-plus i {
    font-size: 1.5rem;
    color: #7c3aed;
}

.nav-item-plus .nav-link-plus:hover {
    background: none;
    color: #6d28d9;
}

.nav-item-plus .nav-link-plus:hover i {
    color: #6d28d9;
    transform: none;
}

.nav-link-plus::after {
    display: none;
}

/* ========== TABLET ========== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-nav {
        height: 68px;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .nav-link i {
        font-size: 1.25rem;
    }

    .nav-item-plus .nav-link-plus i {
        font-size: 1.45rem;
    }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 374.98px) {
    .mobile-nav {
        height: 62px;
        border-radius: 14px 14px 0 0;
    }

    .nav-link {
        font-size: 0.6rem;
    }

    .nav-link i {
        font-size: 1.15rem;
    }

    .nav-item-plus .nav-link-plus i {
        font-size: 1.3rem;
    }
}

/* Space for nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px !important;
    }
}

/* ======================================== */
/*   FOOTER — Mobile & Tablet               */
/*   Perfectly Centered | Professional 2026 */
/* ======================================== */

@media (max-width: 991.98px) {

    /* ========== تنظیمات کلی ========== */
    .footer-section {
        padding: 30px 0 16px !important;
    }

    .footer-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    /* ========== بخش اول: کارونیک (تمام عرض — وسط) ========== */
    .footer-section .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        order: 1 !important;
    }

    .footer-section .col-lg-4 .footer-title {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .footer-section .col-lg-4 .footer-title::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 36px !important;
    }

    .footer-bold {
        display: block !important;
        font-size: 0.75rem !important;
        color: #e2e8f0 !important;
        margin-top: -15px !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .footer-text {
        display: block !important;
        font-size: 0.68rem !important;
        line-height: 1.8 !important;
        color: #cbd5e1 !important;
        text-align: center !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    /* ========== لینک‌های سریع — وسط‌چین ========== */
    .footer-section .col-lg-3 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        order: 2 !important;
        text-align: center !important;
    }

    .footer-section .col-lg-3 .footer-title {
        text-align: center !important;
    }

    .footer-section .col-lg-3 .footer-title::after {
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    .footer-section .col-lg-3 .footer-links {
        text-align: right !important;
        padding: 0 !important;
		  margin-right: 15px !important;
    }

    .footer-section .col-lg-3 .footer-links a {
         display: inline-block !important;
        padding: 0 !important;
    }
.footer-section .col-lg-3 .footer-links li {
    margin-bottom: 0px !important;
}
    /* ========== شبکه اجتماعی + دانلود ========== */
    .footer-section .col-lg-5 {
        flex: 0 0 66% !important;
        max-width: 66% !important;
        padding: 0 6px !important;
        margin: 0 auto !important;
        order: 3 !important;
    }

    .footer-section .col-lg-5 .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .footer-section .col-lg-5 .col-lg-6,
    .footer-section .col-lg-5 .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 8px !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    /* شبکه اجتماعی — وسط‌چین */
    .footer-section .col-lg-5 .col-lg-6:first-child .footer-title,
    .footer-section .col-lg-5 .col-md-6:first-child .footer-title {
        text-align: center !important;
    }

    .footer-section .col-lg-5 .col-lg-6:first-child .footer-title::after,
    .footer-section .col-lg-5 .col-md-6:first-child .footer-title::after {
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    .footer-section .social-icons {
        justify-content: center !important;
    }

    /* دانلود — وسط‌چین */
    .footer-section .col-lg-5 .col-lg-6:last-child .footer-title,
    .footer-section .col-lg-5 .col-md-6:last-child .footer-title {
        text-align: center !important;
    }

    .footer-section .col-lg-5 .col-lg-6:last-child .footer-title::after,
    .footer-section .col-lg-5 .col-md-6:last-child .footer-title::after {
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    .footer-section .d-flex.flex-column.gap-2 {
        align-items: center !important;
    }

    /* ========== تایتل‌ها ========== */
    .footer-title {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
        padding-bottom: 5px !important;
    }

    .footer-title::after {
        width: 22px !important;
        height: 2px !important;
    }

    /* ========== لینک‌های سریع ========== */
    .footer-links li {
        margin-bottom: 4px !important;
    }

    .footer-links a {
        font-size: 0.7rem !important;
    }

    /* ========== شبکه‌های اجتماعی ========== */
    .social-icons {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .social-icons a {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
    }

    /* ========== دکمه‌های دانلود ========== */
    .footer-section .d-flex.flex-column.gap-2 {
        gap: 5px !important;
    }

    .footer-section .d-flex.flex-column.gap-2 img {
        max-width: 90px !important;
        border-radius: 8px !important;
    }

    /* ========== دیوایدر و کپی‌رایت ========== */
    .footer-divider {
        margin: 14px 0 8px !important;
        order: 4 !important;
        width: 100% !important;
    }

    .footer-copyright {
        font-size: 0.68rem !important;
        text-align: center !important;
        order: 5 !important;
        width: 100% !important;
    }
}

/* ========== TABLET ========== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-section {
        padding: 36px 0 20px !important;
    }

    .footer-bold {
        font-size: 0.82rem !important;
    }

    .footer-text {
        font-size: 0.75rem !important;
    }

    .footer-links a {
        font-size: 0.78rem !important;
    }

    .social-icons a {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .footer-section .d-flex.flex-column.gap-2 img {
        max-width: 110px !important;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 767.98px) {
    .footer-section {
        padding: 24px 0 12px !important;
    }

    .footer-section .col-lg-3 {
        flex: 0 0 28% !important;
        max-width: 28% !important;
        padding: 0 6px !important;
    }

    .footer-section .col-lg-5 {
        flex: 0 0 68% !important;
        max-width: 68% !important;
    }

    .footer-bold {
        font-size: 0.68rem !important;
    }

    .footer-text {
        font-size: 0.62rem !important;
        line-height: 1.7 !important;
    }

    .footer-links a {
        font-size: 0.65rem !important;
    }

    .footer-links li {
        margin-bottom: 3px !important;
    }

    .social-icons {
        gap: 5px !important;
    }

    .social-icons a {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .footer-section .d-flex.flex-column.gap-2 {
        gap: 4px !important;
    }

    .footer-section .d-flex.flex-column.gap-2 img {
        max-width: 75px !important;
    }

    .footer-copyright {
        font-size: 0.62rem !important;
    }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 374.98px) {
    .footer-section {
        padding: 20px 0 10px !important;
    }

    .footer-section .col-lg-3 {
        flex: 0 0 26% !important;
        max-width: 26% !important;
        padding: 0 4px !important;
    }

    .footer-section .col-lg-5 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }

    .footer-title {
        font-size: 0.65rem !important;
        margin-bottom: 4px !important;
        padding-bottom: 3px !important;
    }

    .footer-title::after {
        width: 16px !important;
        height: 2px !important;
    }

    .footer-bold {
        font-size: 0.6rem !important;
        margin-bottom: 4px !important;
    }

    .footer-text {
        font-size: 0.56rem !important;
        line-height: 1.6 !important;
    }

    .footer-links a {
        font-size: 0.58rem !important;
    }

    .footer-links li {
        margin-bottom: 2px !important;
    }

    .social-icons {
        gap: 4px !important;
    }

    .social-icons a {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
    }

    .footer-section .d-flex.flex-column.gap-2 {
        gap: 3px !important;
    }

    .footer-section .d-flex.flex-column.gap-2 img {
        max-width: 60px !important;
        border-radius: 6px !important;
    }

    .footer-divider {
        margin: 8px 0 4px !important;
    }

    .footer-copyright {
        font-size: 0.55rem !important;
    }
}

/* ========== Badge چت فوتر موبایل ========== */
.footer-unread-badge {
    display: none;
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    width: 18px;
    height: 18px;
    background: #f94144;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    z-index: 10;
}
