/* Modern Mobile Menu System */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item.active {
    color: #1e40af;
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

.mobile-bottom-nav .nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item .badge {
    position: absolute;
    top: 5px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Hamburger Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 85%;
    max-width: 350px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    left: 0;
}

/* Menu Header */
.mobile-menu-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* User Info in Menu */
.mobile-menu-user {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-user .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-user .user-name {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.mobile-menu-user .user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Menu Items */
.mobile-menu-items {
    padding: 10px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.mobile-menu-item i {
    width: 30px;
    font-size: 20px;
    margin-right: 15px;
}

.mobile-menu-item span {
    font-weight: 600;
    font-size: 16px;
}

.mobile-menu-item .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-item.expanded .arrow {
    transform: rotate(90deg);
}

/* Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 65px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
    padding-left: 70px;
}

/* Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

/* Menu Footer */
.mobile-menu-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-menu-footer .social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mobile-menu-footer .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-menu-footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Category Menu (Mega Menu Style) */
.category-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px 20px;
}

.category-menu-title {
    font-weight: 700;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.category-item:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateX(5px);
}

.category-item .icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.category-item .name {
    font-weight: 600;
    font-size: 15px;
}

.category-item .count {
    margin-left: auto;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-sidebar.active {
    animation: slideInLeft 0.3s ease-out;
}

/* Touch Optimizations */
@media (hover: none) {
    .mobile-menu-item:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .category-item:active {
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    }
}

/* Search in Mobile Menu */
.mobile-menu-search {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-search input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
}

.mobile-menu-search input::placeholder {
    color: #9ca3af;
}

.mobile-menu-search input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

