/* app-mobile.css - Optimization for PWA/App experience */

:root {
    --app-black: #000000;
    --app-accent: #0dcaf0; /* Info Blue - Matches current UI badge */
    --app-bg: #121212;
    --nav-height: 65px;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* Hide address bar UI elements if not standalone (optional meta already does most) */
@media screen and (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Mobile Bottom Nav Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-bottom));
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Only visible on mobile */
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 1050;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--app-accent);
    transform: scale(1.15);
}

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

/* UI Adjustments for Mobile */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--nav-height) + 20px);
    }

    .bottom-nav {
        display: flex;
    }

    /* Hide redundant top navbar info on mobile to save space */
    .navbar .user-chip, .navbar .btn-logout {
        display: none !important;
    }

    /* Adjust main container for space */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Card premium look on mobile */
    .card {
        border: none;
        background: #1e1e1e;
        color: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin-bottom: 20px;
    }
}

/* Premium Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(13, 202, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0); }
}

.active-pulse {
    animation: pulse 2s infinite;
}
