/**
 * Bottom Navigation Mobile - Instagram Style
 * Barra di navigazione fissa in fondo alla pagina (solo mobile, solo utenti loggati)
 */

/* ============================================
   BOTTOM NAV - MOBILE ONLY
   ============================================ */

.bottom-nav-mobile {
    display: none; /* Nascosto su desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 20px;
    gap: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px;
    color: #000000;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 60px;
    border-radius: 50%;
    margin: 0;
}

.bottom-nav-item:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.bottom-nav-item:active {
    transform: scale(0.95);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Active state */
.bottom-nav-item.active {
    background-color: rgba(0, 0, 0, 0.08);
}

.bottom-nav-item.active .bottom-nav-icon {
    stroke-width: 2.5;
}

/* Primary button (Upload - center) - nessun effetto speciale */
.bottom-nav-item-primary {
    background-color: transparent;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bottom-nav-label {
    display: none; /* Nascondi label - solo icone */
}

/* Avatar link e immagine */
.bottom-nav-avatar-link {
    padding: 0 !important;
    border-radius: 50%;
}

.bottom-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.bottom-nav-avatar-link:hover .bottom-nav-avatar {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ============================================
   MOBILE ONLY - Show on mobile
   ============================================ */

@media (max-width: 767px) {
    .bottom-nav-mobile {
        display: block !important;
    }
    
    /* Add padding to body to prevent content being hidden under bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* ============================================
   DESKTOP - Hide completely
   ============================================ */

@media (min-width: 768px) {
    .bottom-nav-mobile {
        display: none !important;
    }
}
