/**
 * Mobile Mega Menu Styles
 * Komodo Luxury Theme
 *
 * @package KomodoLuxury
 * @author Marcell
 */

/* ==========================================
   MOBILE MEGA MENU STYLES
   ========================================== */

/* Mobile menu base */
.klux-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile nav item - level 0 */
.klux-mobile-nav-item {
    border-bottom: 1px solid rgba(230, 179, 30, 0.2);
}

.klux-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.klux-mobile-nav-link:hover {
    background: rgba(230, 179, 30, 0.1);
    color: #e6b31e;
}

.klux-mobile-nav-text {
    flex: 1;
}

.klux-mobile-nav-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.klux-mobile-nav-item.active > .klux-mobile-nav-link .klux-mobile-nav-arrow {
    transform: rotate(180deg);
}

/* ==========================================
   LEVEL 1 - MOBILE MEGA MENU
   ========================================== */

/* Mobile mega menu container - level 1 */
.klux-mobile-mega-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.klux-mobile-mega-menu.active {
    max-height: 2000px;
    padding: 0.5rem 0;
}

/* Mega menu item - level 1 */
.klux-mobile-mega-menu-item {
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    border-bottom: 1px solid rgba(230, 179, 30, 0.1);
}

.klux-mobile-mega-menu-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.klux-mobile-mega-menu-link {
    flex: 1;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.klux-mobile-mega-menu-link:hover {
    color: #e6b31e;
}

.klux-mobile-submenu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.klux-mobile-submenu-toggle:hover {
    color: #e6b31e;
}

.klux-mobile-submenu-toggle i {
    transition: transform 0.3s ease;
}

.klux-mobile-mega-menu-item.active .klux-mobile-submenu-toggle i {
    transform: rotate(180deg);
}

/* ==========================================
   LEVEL 2 - SUBMENU ITEMS
   ========================================== */

/* Submenu container - level 2 */
.klux-mobile-mega-menu-subitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, padding-left 0.4s ease;
    padding-left: 0;
}

.klux-mobile-mega-menu-subitems.active {
    max-height: 1500px;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Subitem - level 2 */
.klux-mobile-mega-menu-subitem {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(230, 179, 30, 0.05);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.klux-mobile-mega-menu-subitem:hover {
    border-left-color: #e6b31e;
    background: rgba(230, 179, 30, 0.1);
}

.klux-mobile-mega-menu-sublink {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.klux-mobile-mega-menu-subdescription {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   LEVEL 3 - SUB-SUBMENU ITEMS
   ========================================== */

/* Sub-submenu container - level 3 */
.klux-mobile-mega-menu-subsubitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, padding-left 0.4s ease;
    padding-left: 0;
}

.klux-mobile-mega-menu-subsubitems.active {
    max-height: 1000px;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

/* Sub-subitem - level 3 */
.klux-mobile-mega-menu-subsubitem {
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.klux-mobile-mega-menu-subsubitem:hover {
    border-left-color: #e6b31e;
    background: rgba(230, 179, 30, 0.08);
}

.klux-mobile-mega-menu-subsublink-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.klux-mobile-mega-menu-subsublink {
    flex: 1;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.klux-mobile-subsubsubmenu-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.2rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.klux-mobile-subsubsubmenu-toggle:hover {
    color: #e6b31e;
}

.klux-mobile-mega-menu-subsubdescription {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

/* ==========================================
   LEVEL 4 - SUB-SUB-SUBMENU ITEMS
   ========================================== */

/* Sub-sub-submenu container - level 4 */
.klux-mobile-mega-menu-subsubsubitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, padding-left 0.4s ease;
    padding-left: 0;
}

.klux-mobile-mega-menu-subsubsubitems.active {
    max-height: 800px;
    margin-top: 0.4rem;
    padding-left: 1rem;
}

/* Sub-sub-subitem - level 4 */
.klux-mobile-mega-menu-subsubsubitem {
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    border-left: 1px solid rgba(230, 179, 30, 0.3);
    transition: all 0.3s ease;
}

.klux-mobile-mega-menu-subsubsubitem:hover {
    border-left-color: #e6b31e;
    background: rgba(230, 179, 30, 0.05);
}

.klux-mobile-mega-menu-subsubsublink {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
}

.klux-mobile-mega-menu-subsubsubdescription {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    margin: 0.2rem 0 0 0;
    line-height: 1.3;
}

/* ==========================================
   DYNAMIC CONTENT ITEMS
   ========================================== */

/* Dynamic content items */
.klux-mobile-submenu-item {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(230, 179, 30, 0.05);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.klux-mobile-submenu-item:hover {
    border-left-color: #e6b31e;
    background: rgba(230, 179, 30, 0.1);
}

.klux-mobile-submenu-content {
    padding: 0;
}

.klux-mobile-submenu-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.klux-mobile-submenu-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}
