/* ============================================================
   menu.css - منوی مدرن با تم صورتی (بهبود یافته)
   ============================================================ */

.menu-wrapper {
    background: linear-gradient(135deg, #ffe8ee 0%, #ffd6e0 50%, #fec8d6 100%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #fec8d6, #ffd6e0) 1;
    box-shadow: 0 4px 20px rgba(254, 200, 214, 0.3);
    position: relative;
    z-index: 100;
}

.menu-wrapper::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #fec8d6, #ffd6e0);
    opacity: 0.3;
    filter: blur(4px);
}

.menu-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    min-height: 56px;
}

.menu-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
}

.menu-mobile-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.menu-toggle-text {
    font-size: 15px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle-icon span:nth-child(2) {
    width: 14px;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: wrap;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.menu-link:hover::after {
    width: 60%;
}

.menu-link:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.5);
}

.menu-link .fa-home,
.menu-link .fa-phone {
    font-size: 17px;
    color: #a0aec0;
    transition: color 0.25s ease;
}

.menu-link:hover .fa-home,
.menu-link:hover .fa-phone {
    color: #667eea;
}

.menu-arrow {
    font-size: 13px;
    color: #a0aec0;
    transition: transform 0.3s ease;
}

.menu-item-dropdown:hover .menu-arrow {
    transform: rotate(180deg);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: #ffe8ee;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid #fce8ec;
}

.menu-item-dropdown:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 0 8px;
}

.menu-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
    flex: 1;
}

.menu-dropdown-list li {
    padding: 2px 0;
}

.menu-dropdown-link {
    display: block;
    padding: 8px 16px;
    color: #4a5568;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-dropdown-link:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-4px);
}

.menu-see-all {
    display: block;
    margin: 8px 12px 0;
    padding: 10px 16px;
    color: #667eea;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid #fce8ec;
    border-radius: 0 0 12px 12px;
    transition: all 0.2s ease;
}

.menu-see-all:hover {
    color: #5a67d8;
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   ریسپانسیو
   ============================================================ */

@media (max-width: 991px) {
    .menu-header {
        display: flex;
    }

    .menu-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        min-height: auto;
    }

    .menu-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        display: none;
    }

    .menu-list.open {
        display: flex;
    }

    .menu-item {
        width: 100%;
    }

    .menu-link {
        padding: 12px 16px;
        border-radius: 10px;
        justify-content: flex-start;
        gap: 12px;
        white-space: normal;
        font-size: 17px;
        font-weight: 600;
    }

    .menu-link::after {
        display: none;
    }

    .menu-link:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* ===== ترتیب صحیح آیکون و نام در موبایل ===== */
    .menu-link .fa-home,
    .menu-link .fa-phone,
    .menu-link .fa-icon {
        order: 1;
        font-size: 18px;
        min-width: 24px;
        flex-shrink: 0;
    }

    .menu-link .menu-text {
        order: 2;
        flex: 1;
        text-align: right;
        font-size: 17px;
        font-weight: 600;
    }

    .menu-link .menu-arrow {
        order: 3;
        margin-right: 8px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .menu-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(255, 255, 255, 0.2);
        border: none;
    }

    .menu-item-dropdown.open .menu-dropdown {
        max-height: 600px;
    }

    .menu-item-dropdown:hover .menu-dropdown {
        max-height: 0;
    }

    .menu-item-dropdown.open .menu-dropdown {
        max-height: 600px;
    }

    .menu-dropdown-inner {
        flex-direction: column;
        padding: 0 8px 0 20px;
    }

    .menu-dropdown-list {
        min-width: unset;
        flex: 1;
    }

    .menu-dropdown-link {
        padding: 8px 16px;
        font-size: 16px;
        font-weight: 500;
        text-align: right;
        display: block;
    }

    .menu-dropdown-link:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.3);
    }

    .menu-see-all {
        margin: 4px 8px 8px 20px;
        border-top: none;
        text-align: right;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
    }

    .menu-see-all:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: none;
    }

    .menu-mobile-title {
        font-size: 20px;
        font-weight: 700;
    }

    .menu-toggle {
        padding: 10px 20px;
        font-size: 16px;
    }

    .menu-toggle-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .menu-nav {
        padding: 0 12px;
    }

    .menu-link {
        font-size: 16px;
        padding: 10px 14px;
        gap: 10px;
    }

    .menu-link .fa-home,
    .menu-link .fa-phone,
    .menu-link .fa-icon {
        font-size: 16px;
        min-width: 20px;
    }

    .menu-link .menu-text {
        font-size: 16px;
    }

    .menu-toggle {
        padding: 8px 16px;
        font-size: 14px;
    }

    .menu-toggle-text {
        font-size: 14px;
    }

    .menu-mobile-title {
        font-size: 18px;
    }

    .menu-dropdown-link {
        font-size: 15px;
        padding: 6px 14px;
    }

    .menu-see-all {
        font-size: 15px;
        padding: 8px 14px;
    }
}