/* Custom Shared CSS */

/* Default Light Mode overrides */
[data-bs-theme="light"] {
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
}

/* Premium Dark Mode overrides */
[data-bs-theme="dark"] {
    --bs-body-color: #e0e0e0;
}

/* Use Bootstrap's variable for background so it toggles cleanly */
body {
    padding-top: 2rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.activity-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

[data-bs-theme="light"] .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.activity-card a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   PWA / Mobile Bottom Tab Bar
   Hidden on desktop, visible on mobile
   ========================================= */

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

/* Mobile: hide top navbar, show bottom tab bar */
@media (max-width: 991px) {
    /* Kill the top navbar */
    .navbar {
        display: none !important;
    }

    /* Adjust body spacing */
    body {
        padding-top: 0.5rem;
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    /* Show the bottom tab bar */
    .pwa-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999 !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #111111;
        border-top: 1px solid #2a2a2a;
        align-items: stretch;
    }

    [data-bs-theme="light"] .pwa-bottom-nav {
        background: #1a1a1a;
        border-top: 1px solid #333;
    }
}

/* Each tab button */
.pwa-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.pwa-nav-item:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pwa-nav-item i {
    font-size: 1.4rem;
    pointer-events: none;
}

/* Active state */
.pwa-nav-item.active {
    color: #4dabf7;
}


