/* Nelx Mobile Menu Base Styles - No default colors */
.nelx-mobi-menu {
    position: fixed;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.nelx-mobi-position-bottom {
    bottom: 0;
}

.nelx-mobi-position-top {
    top: 0;
}

.nelx-mobi-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.nelx-mobi-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.nelx-mobi-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.nelx-mobi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    width: 100%;
}

.nelx-mobi-icon {
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

.nelx-mobi-icon svg {
    transition: all 0.3s ease;
}

.nelx-mobi-image img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nelx-mobi-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.nelx-mobi-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Active Indicators */
.nelx-mobi-active-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: absolute;
    bottom: -8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nelx-mobi-active-line {
    width: 20px;
    height: 2px;
    border-radius: 1px;
    position: absolute;
    bottom: -8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nelx-mobi-item.nelx-mobi-active .nelx-mobi-active-dot,
.nelx-mobi-item.nelx-mobi-active .nelx-mobi-active-line {
    opacity: 1;
}

/* Visibility States */
.nelx-mobi-visible {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nelx-mobi-hidden {
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
}

.nelx-mobi-position-top.nelx-mobi-hidden {
    transform: translateY(-100%);
}

/* Sticky Behavior States */
.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="always-visible"] {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-appear"] {
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-appear"].nelx-mobi-scrolled {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-up"] {
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-up"].nelx-mobi-scroll-up {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-hide"] {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nelx-mobi-menu.nelx-mobi-sticky[data-sticky-behavior="scroll-hide"].nelx-mobi-scrolled {
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
}

/* Responsive - Hide on desktop */
@media (min-width: 769px) {
    .nelx-mobi-menu {
        display: none;
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .nelx-mobi-text {
        font-size: 11px;
    }
    
    .nelx-mobi-icon {
        font-size: 18px;
    }
    
    .nelx-mobi-link {
        padding: 6px 4px;
    }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    .nelx-mobi-position-bottom {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    .nelx-mobi-position-top {
        padding-top: max(8px, env(safe-area-inset-top));
    }
}

/* Performance optimizations */
.nelx-mobi-menu {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nelx-mobi-menu,
    .nelx-mobi-link,
    .nelx-mobi-icon {
        transition: none;
    }
}

/* Force visibility in Elementor editor but only on mobile breakpoint */
@media (max-width: 768px) {
    .elementor-editor-active .nelx-mobi-menu,
    .elementor-editor-preview .nelx-mobi-menu,
    .nelx-mobi-menu.nelx-mobi-editor-mode {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
}

/* Ensure menu is hidden on desktop in Elementor editor */
@media (min-width: 769px) {
    .elementor-editor-active .nelx-mobi-menu,
    .elementor-editor-preview .nelx-mobi-menu,
    .nelx-mobi-menu.nelx-mobi-editor-mode {
        display: none !important;
    }
}

/* Short content override - only applies when specifically detected */
.nelx-mobi-menu.nelx-mobi-short-content {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}