/* ==================== MOBILE BOTTOM NAVIGATION ==================== */
/* Shared mobile bottom nav for all pages */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Hide floating buttons on mobile since they're in the bottom nav */
    .floating-premium-btn,
    .chat-button,
    .floating-bot-btn {
        display: none !important;
    }
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    min-width: 50px;
    min-height: 44px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.mobile-nav-item i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.mobile-nav-item span {
    white-space: nowrap;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #6366f1;
}

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

/* Premium button special styling */
.mobile-nav-item i.fa-crown {
    color: #f59e0b;
}

.mobile-nav-item:hover i.fa-crown,
.mobile-nav-item.active i.fa-crown {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Chat button styling */
.mobile-nav-item i.fa-comment-dots {
    color: #10b981;
}

.mobile-nav-item:hover i.fa-comment-dots {
    color: #34d399;
}

/* Software/Download button styling */
.mobile-nav-item i.fa-download {
    color: #8b5cf6;
}

.mobile-nav-item:hover i.fa-download {
    color: #a78bfa;
}

/* Center AI Button - The Cool Green Circle */
.mobile-nav-item.ai-center {
    position: relative;
    padding: 0;
}

.mobile-nav-item.ai-center .ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-12px);
    transition: all 0.3s ease;
}

.mobile-nav-item.ai-center .ai-btn i {
    font-size: 1.4rem;
    color: white;
}

.mobile-nav-item.ai-center:hover .ai-btn {
    transform: translateY(-16px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.5),
        0 0 30px rgba(16, 185, 129, 0.3);
}

/* Pulse animation for AI button */
.mobile-nav-item.ai-center .ai-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0.3;
    z-index: -1;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Light theme support */
:root:not(.dark) .mobile-bottom-nav,
body:not(.dark) .mobile-bottom-nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border-top-color: #e5e7eb;
}

:root:not(.dark) .mobile-nav-item,
body:not(.dark) .mobile-nav-item {
    color: #6b7280;
}

:root:not(.dark) .mobile-nav-item:hover,
:root:not(.dark) .mobile-nav-item.active,
body:not(.dark) .mobile-nav-item:hover,
body:not(.dark) .mobile-nav-item.active {
    color: #6366f1;
}

/* Admin page specific nav items */
.mobile-bottom-nav.admin-nav .mobile-nav-item.active {
    color: #f59e0b;
}

.mobile-bottom-nav.admin-nav .ai-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.4),
        0 0 20px rgba(245, 158, 11, 0.2);
}

.mobile-bottom-nav.admin-nav .ai-btn::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
