/* MLM Navigation Styles */
.mlm-main-menu {
    background: url('../images/1.png') center center/cover no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.mlm-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.mlm-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.mlm-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mlm-logo img {
    max-height: 50px;
    width: auto;
}

.mlm-site-title {
    margin-left: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.mlm-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.mlm-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.mlm-menu-item {
    position: relative;
    margin: 0;
}

.mlm-menu-link {
    display: block;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 80px;
    transition: all 0.3s ease;
}

.mlm-menu-link:hover,
.mlm-menu-item.current-menu-item .mlm-menu-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menus */
.mlm-menu-item-has-children {
    position: relative;
}

.mlm-menu-item-has-children > .mlm-menu-link:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
}

.mlm-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #1a1a2e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 100;
}

.mlm-menu-item-has-children:hover > .mlm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mlm-submenu-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mlm-submenu-link:hover,
.mlm-submenu-item.current-menu-item .mlm-submenu-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

/* Member Menu */
.mlm-member-nav {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.mlm-login-buttons {
    display: flex;
    align-items: center;
}

.mlm-login-link,
.mlm-register-link {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mlm-login-link {
    color: #fff;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 10px;
}

.mlm-login-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mlm-register-link {
    color: #1a1a2e;
    background-color: #2461FF;
}

.mlm-register-link:hover {
    background-color: #1a4cd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 97, 255, 0.3);
}

/* User Menu - Logged In */
.mlm-user-menu {
    position: relative;
}

.mlm-user-toggle {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mlm-user-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mlm-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
}

.mlm-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mlm-user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.mlm-user-menu-icon {
    color: #fff;
    font-size: 12px;
}

.mlm-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: #1a1a2e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

.mlm-user-menu:hover .mlm-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mlm-user-menu-item {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mlm-user-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mlm-user-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.mlm-user-menu-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #2461FF;
}

/* Mobile Menu Toggle */
.mlm-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.mlm-mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mlm-mobile-toggle {
        display: flex;
    }
    
    .mlm-nav {
        flex-basis: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #1a1a2e;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mlm-nav.active {
        max-height: 1000px;
    }
    
    .mlm-menu {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    
    .mlm-menu-item {
        width: 100%;
    }
    
    .mlm-menu-link {
        line-height: 1;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mlm-submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
    }
    
    .mlm-menu-item-has-children.active > .mlm-submenu {
        display: block;
    }
    
    .mlm-menu-item-has-children > .mlm-menu-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mlm-menu-item-has-children > .mlm-menu-link:after {
        content: "\f107";
    }
    
    .mlm-menu-item-has-children.active > .mlm-menu-link:after {
        content: "\f106";
    }
    
    .mlm-submenu-link {
        padding-left: 30px;
    }
    
    .mlm-submenu-link:hover {
        padding-left: 35px;
    }
    
    .mlm-member-nav {
        width: 100%;
        margin: 15px 20px;
    }
    
    .mlm-login-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .mlm-login-link,
    .mlm-register-link {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    
    .mlm-login-link {
        margin-bottom: 10px;
    }
    
    .mlm-user-menu {
        width: 100%;
    }
    
    .mlm-user-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .mlm-user-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .mlm-user-menu.active .mlm-user-dropdown {
        display: block;
    }
}

@media (max-width: 576px) {
    .mlm-nav-container {
        height: 70px;
    }
    
    .mlm-logo img {
        max-height: 40px;
    }
    
    .mlm-site-title {
        font-size: 18px;
    }
    
    .mlm-menu-link {
        padding: 12px 15px;
    }
    
    .mlm-nav {
        top: 70px;
    }
}
