/* ============================================
   MOBILE MENU STYLES - Simple Version
   ============================================ */

/* Base Menu Styles */
.luxstage-mobile-menu {
    list-style: none;
    padding: 30px 0;
    margin: 0;
}

.luxstage-mobile-menu > li {
    position: relative;
    border-bottom: 1px solid #ffffff80;
    padding: 20px 0;
    text-align: left;
}

.luxstage-mobile-menu > li > a {
    display: block;
    padding: 20px 0;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.luxstage-mobile-menu > li > a:hover {
    color: var(--luxstage-home-accent, #fcefc9);
}

/* Item có submenu - thêm icon mũi tên */
.luxstage-mobile-menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.luxstage-mobile-menu > li.menu-item-has-children > a::after {
    content: '\f345'; /* dashicons-arrow-right-alt2 */
    font-family: dashicons;
    font-size: 20px;
    transition: transform 0.3s;
}

/* Submenu Styles */
.luxstage-mobile-menu .sub-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3a3a3a;
    z-index: 1000;
    list-style: none;
    padding: 20px;
    margin: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.luxstage-mobile-menu .sub-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}

/* Submenu Header */
.luxstage-submenu-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0 30px 0;
    background: #3a3a3a;
    border-bottom: none;
    z-index: 1001;
}

.luxstage-submenu-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.luxstage-submenu-back:hover {
    color: var(--luxstage-home-accent, #fcefc9);
}

.luxstage-submenu-back .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.luxstage-submenu-title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    flex: 1;
    width: 100%;
    text-align: center;
    text-transform: capitalize;
    margin-left: -44px;
}
/* Submenu Items */
.luxstage-mobile-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.luxstage-mobile-menu .sub-menu li a {
    display: block;
    padding: 0;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.luxstage-mobile-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--luxstage-home-accent, #fcefc9);
}

/* Term Links with Images */
.luxstage-mobile-menu .sub-menu li.has-term-image a.luxstage-term-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 20px 0;
}

.luxstage-term-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    order: 2;
}

.luxstage-term-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block;
}

.luxstage-term-name {
    flex: 1;
}

/* Hidden class for elements */
.luxstage-hide {
    display: none !important;
}

/* Fixed Close Button - Always visible in top right */
.luxstage-mobile-close-fixed {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.luxstage-mobile-close-fixed:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--luxstage-home-accent, #fcefc9);
    color: var(--luxstage-home-accent, #fcefc9);
    transform: rotate(90deg);
}

.luxstage-mobile-close-fixed .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}
