/* Mobile Bottom Navigation Styles */

/* Main bottom navigation container */
#mobile-bottom-nav {
    height: 70px;
    z-index: 10000;
}

/* Navigation background with gradient */
.mobile-nav-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f472b6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(168, 85, 247, 0.3);
    border-radius: 20px 20px 0 0;
}

/* Navigation container */
.mobile-nav-container {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 12px 10px;
}

/* Regular navigation items */
.mobile-nav-item {
    position: relative;
    text-decoration: none;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    min-width: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
}

.mobile-nav-item:focus {
    outline: none;
}

/* Regular icon containers */
.mobile-nav-item .icon-container {
    width: 35px;
    height: 35px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 4px auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Regular icons */
.mobile-nav-item i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Regular text labels */
.mobile-nav-item span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Center button (same level as other items) */
.mobile-nav-center {
    position: relative;
    text-decoration: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
}

.mobile-nav-center:focus {
    outline: none;
}

/* Center icon container */
.center-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d28d9, #7c3aed, #5b21b6);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 4px auto;
}

/* Center icon */
.mobile-nav-center i {
    font-size: 24px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Center text label */
.mobile-nav-center span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Active state for regular items */
.mobile-nav-item.active .icon-container {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-nav-item.active i {
    color: white;
    transform: scale(1.1);
}

.mobile-nav-item.active span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Active state for center button */
.mobile-nav-center.active .center-icon-container {
    background: linear-gradient(135deg, #5b21b6, #6d28d9, #4c1d95);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
    transform: scale(1.05);
}

.mobile-nav-center.active span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hover effects for regular items */
.mobile-nav-item:hover:not(.active) .icon-container {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mobile-nav-item:hover:not(.active) i {
    color: white;
    transform: scale(1.05);
}

.mobile-nav-item:hover:not(.active) span {
    color: white;
}

/* Hover effect for center button */
.mobile-nav-center:hover:not(.active) .center-icon-container {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6, #6d28d9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.mobile-nav-center:hover:not(.active) i {
    transform: scale(1.05);
}

.mobile-nav-center:hover:not(.active) span {
    color: white;
}

/* Active press animation */
.mobile-nav-item:active {
    transform: scale(0.95);
}

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



/* Safe area for devices with notches */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    @media (max-width: 767px) {
        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    #mobile-bottom-nav {
        background: rgba(17, 24, 39, 0.95);
        border-top: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .mobile-nav-item:not(.active) i,
    .mobile-nav-item:not(.active) span {
        color: #9CA3AF;
    }
    
    .mobile-nav-item:hover:not(.active) .icon-container {
        background-color: #374151;
    }
    
    #mobile-search-overlay .bg-white,
    #mobile-account-menu {
        background-color: #1F2937;
        color: white;
    }
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    .mobile-nav-item .icon-container {
        width: 36px;
        height: 36px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    #mobile-bottom-nav,
    #mobile-search-overlay,
    #mobile-account-menu {
        display: none !important;
    }
}

/* Live Chat Widget positioning adjustments for mobile */
@media (max-width: 767px) {
    /* Move live chat widget up when mobile navigation is visible */
    #livechat-widget {
        bottom: 90px !important; /* Move above mobile navigation */
    }
    
    /* Alternatively, target the chat button directly if the above doesn't work */
    .chat-button,
    #chat-button {
        bottom: 90px !important;
        right: 15px !important;
    }
    
    /* Chat window positioning adjustment */
    .chat-window,
    #chat-window {
        bottom: 90px !important;
        right: 15px !important;
    }
}

/* Extra small screens adjustment */
@media (max-width: 320px) {
    #livechat-widget {
        bottom: 100px !important;
    }
    
    .chat-button,
    #chat-button {
        bottom: 100px !important;
        right: 10px !important;
        padding: 12px 18px !important;
        min-width: 120px !important;
    }
    
    .chat-window,
    #chat-window {
        bottom: 100px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 300px !important;
    }
    
    /* Adjust navigation for very small screens */
    .center-icon-container {
        width: 55px;
        height: 55px;
    }
    
    .mobile-nav-center i {
        font-size: 20px;
    }
    
    .mobile-nav-item span,
    .mobile-nav-center span {
        font-size: 9px;
    }
    
    .mobile-nav-item .icon-container {
        width: 30px;
        height: 30px;
    }
    
    .mobile-nav-item i {
        font-size: 14px;
    }
} 