/* ==================== دکمه همبرگر ==================== */
.mobile-menu-toggle {
    display: none;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    padding: 0;
}
.mobile-menu-toggle:hover {
    background-color: aliceblue !important;
}


.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

/* تبدیل به ضربدر */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.mobile-menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ==================== Overlay ==================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== پنل منو ==================== */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 100px 32px 50px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* ==================== دکمه بستن ==================== */
.mobile-menu-close , .mobile-menu-content button {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: none;
    border-radius: 14px;
    font-size: 26px !important;
    color: #0f172a !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.mobile-menu-close:hover {
    background: #0d9488;
    color: white;
    transform: rotate(90deg);
}

/* ==================== لیست منو ==================== */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    margin-bottom: 6px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-list > li {
    opacity: 1;
    transform: translateX(0);
}

/* تأخیر انیمیشن آیتم‌ها */
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu-list > li:nth-child(8) { transition-delay: 0.45s; }

.mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    color: #1e293b;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
    background: linear-gradient(90deg, #f0fdfa, #ccfbf1);
    color: #0d9488;
    padding-right: 26px;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.1);
}

/* خط تزئینی کنار لینک */
.mobile-menu-list a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: #0d9488;
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.mobile-menu-list a:hover::before,
.mobile-menu-list .current-menu-item > a::before {
    width: 4px;
}

/* ==================== زیر‌منو ==================== */
.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 4px 0 12px 18px;
    padding: 0;
    border-right: 2px solid #e2e8f0;
}

.mobile-menu-list .sub-menu a {
    font-size: 15px;
    padding: 11px 16px;
    color: #64748b;
    font-weight: 400;
}

.mobile-menu-list .sub-menu a:hover {
    color: #0d9488;
    background: #f8fafc;
    padding-right: 22px;
}

/* ==================== فقط موبایل ==================== */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
}
/* خط‌چین بین آیتم‌های منو */
.mobile-menu-list > li {
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 0;
    padding-bottom: 4px;
}

.mobile-menu-list > li:last-child {
    border-bottom: none;
}

/* کمی فاصله بهتر */
.mobile-menu-list a {
    margin: 4px 0;
}

