/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #000;
}

.mobile-logo {
    color: #f2f2f2;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.mobile-nav-toggle {
    background: transparent;
    border: none;
    color: #f2f2f2;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-nav-toggle:hover {
    color: #ccc;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #242526;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #000;
    border-bottom: 1px solid #3A3B3C;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #f2f2f2;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: #ccc;
}

.mobile-search-container {
    padding: 20px;
    border-bottom: 1px solid #3A3B3C;
    background: #242526;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #3A3B3C;
    background: #000;
    color: #f2f2f2;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #f2f2f2;
}

.mobile-search-input::placeholder {
    color: #999;
}

.mobile-search-btn {
    padding: 12px 20px;
    background: #f2f2f2;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn:hover {
    background: #e0e0e0;
}

.mobile-menu-categories {
    padding: 20px 0;
    background: #242526;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #f2f2f2;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #3A3B3C;
    transition: all 0.3s ease;
}

.mobile-category-item:hover {
    background: #3A3B3C;
    color: #fff;
    padding-left: 30px;
}

.mobile-category-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #3A3B3C;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f2f2f2;
    text-decoration: none;
    font-size: 11px;
    padding: 8px 4px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    border-radius: 8px;
}

.mobile-nav-item:hover {
    color: #fff;
    background: #242526;
}

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

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-nav-badge:empty {
    display: none !important;
}

/* Dropdown styles for mobile profile */
.mobile-nav-item.dropdown .dropdown-menu {
    background: #242526 !important;
    border: 1px solid #3A3B3C !important;
    border-radius: 8px;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 160px;
}

.mobile-nav-item.dropdown .dropdown-item {
    color: #f2f2f2 !important;
    padding: 12px 16px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.mobile-nav-item.dropdown .dropdown-item:hover {
    background: #3A3B3C !important;
    color: #fff !important;
}

.mobile-nav-item.dropdown .dropdown-divider {
    border-color: #3A3B3C !important;
    margin: 8px 0;
}

/* Hide desktop navigation on mobile */
@media screen and (max-width: 768px) {
    .desktop-navigation {
        display: none !important;
    }
    
    .mobile-nav {
        display: block;
    }
    
    body {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    /* Adjust main content area for mobile */
    main {
        margin-top: 0;
    }
    
    /* Ensure footer is above bottom nav */
    footer {
        margin-bottom: 70px;
    }
}

/* Show desktop navigation on tablet and desktop */
@media screen and (min-width: 769px) {
    .mobile-nav,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Smooth scroll behavior for mobile */
@media screen and (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
    }
}

/* Animation for menu items */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-menu.active .mobile-category-item {
    animation: slideInLeft 0.3s ease forwards;
}

.mobile-nav-menu.active .mobile-category-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-menu.active .mobile-category-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-menu.active .mobile-category-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-menu.active .mobile-category-item:nth-child(4) { animation-delay: 0.4s; } 