/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9998;
    padding-bottom: env(safe-area-inset-bottom);
    height: 60px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
    padding: 5px;
    width: 25%;
    height: 100%;
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    fill: currentColor;
    transition: 0.2s;
}

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

.bottom-nav-item.active svg {
    fill: var(--accent);
    transform: translateY(-2px);
}

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

/* Adjust layout for mobile to prevent content being hidden behind nav */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    /* Adjust Header */
    .header-inner {
        padding: 0 15px;
    }

    .header-mode-container {
        display: none !important;
        /* Move mode switch to sidebar or dedicated page */
    }
}