/* ==========================================================================
   Mobile Bottom Tab Bar (App-like Navigation)
   DailyArchive - Mobile UX Optimization
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border, rgba(226, 232, 240, 0.8));
        z-index: 9998;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
        justify-content: space-around;
        align-items: center;
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.92);
        border-top-color: rgba(51, 65, 85, 0.7);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--text-muted, #64748b);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
        background: none;
        padding: 4px 0;
    }

    .bottom-nav-item:active,
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--primary, #2563eb);
    }

    .bottom-nav-icon {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item:active .bottom-nav-icon {
        transform: scale(0.9);
    }

    /* Keep Share FAB above bottom nav on mobile */
    .floating-share-btn,
    .share-fab {
        bottom: 74px !important;
        transition: bottom 0.2s ease;
    }

    /* Keep smart recommend floating bar above bottom nav on mobile */
    .smart-floating-bar {
        bottom: 68px !important;
    }
}
