/* ==============================================
   MOBILE BOTTOM NAVIGATION BAR
   - Replaces sidebar on screens < 768px
   - Uses iOS Safe Area Insets for Home Bar
   ============================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    /* Needs to be higher than most content but below modals */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body.in-live-room .mobile-bottom-nav {
        /* Hide when entering a live room to maximize screen space */
        display: none !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    min-height: 48px;
    /* Apple HIG Minimum hit area */
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-item.active {
    color: var(--gold);
}

.mobile-nav-item.active i {
    transform: scale(1.15);
}

/* Special styling for the middle "Create" button */
.mobile-nav-item.create-btn {
    position: relative;
    top: -15px;
}

.mobile-nav-item.create-btn .create-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    min-width: 50px;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(243, 194, 106, 0.4);
    color: #000;
    margin-bottom: 2px;
}

.mobile-nav-item.create-btn:active .create-icon-wrapper {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(243, 194, 106, 0.3);
}

.mobile-nav-item.create-btn i {
    font-size: 1.4rem;
}

/* User Avatar in Bottom Nav (YouTube-style) */
.mob-nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.mobile-nav-item.active .mob-nav-avatar {
    border-color: var(--gold);
}
