/**
 * Bottom Navigation for Logged-In Users
 * Mobile-first design, works great on desktop too
 */

/* Bottom Nav Container */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    display: none; /* Hidden by default */
    z-index: 999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

body[data-theme*="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(255, 107, 53, 0.3);
}

/* Show bottom nav when user is logged in */
body.user-logged-in .bottom-nav {
    display: flex;
}

/* Bottom Nav Content */
.bottom-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Nav Items */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #9ca3af;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    min-width: 70px;
}

body[data-theme*="light"] .bottom-nav-item {
    color: #6b7280;
}

.bottom-nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--theme-primary);
}

.bottom-nav-item.active {
    color: var(--theme-primary);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* Notification Badge on Bottom Nav */
.bottom-nav-item .notification-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Add padding to body when bottom nav is shown */
body.user-logged-in {
    padding-bottom: 75px;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .bottom-nav {
        height: 60px;
    }
    
    .bottom-nav-content {
        max-width: 800px;
        padding: 0 32px;
    }
    
    .bottom-nav-item {
        min-width: 90px;
        padding: 8px 16px;
    }
    
    .bottom-nav-item svg {
        width: 26px;
        height: 26px;
    }
    
    .bottom-nav-item span {
        font-size: 12px;
    }
    
    body.user-logged-in {
        padding-bottom: 70px;
    }
}

/* Mobile - make it more prominent */
@media (max-width: 768px) {
    .bottom-nav {
        height: 70px;
        border-top-width: 2px;
    }
    
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 60px;
    }
    
    body.user-logged-in {
        padding-bottom: 80px;
    }
}

/* Ensure content doesn't hide behind bottom nav */
.bottom-nav-spacer {
    height: 75px;
    display: none;
}

body.user-logged-in .bottom-nav-spacer {
    display: block;
}
