/* =====================================================
   IQRANIX — SHARED COMMUNITY NAVIGATION
   Used by Home, Search, Reels, Messages and Account
===================================================== */

:root {
    --community-nav-height: 68px;
}

/* NAVIGATION BAR */

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: calc(
        var(--community-nav-height) +
        env(safe-area-inset-bottom)
    );

    padding: 0 10px env(safe-area-inset-bottom);

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(0, 0, 0, 0.09);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 500;
}

/* NAVIGATION ITEMS */

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;
    color: #171717;

    font-size: 22px;
    text-decoration: none;

    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* ICONS */

.mobile-bottom-nav a > i,
.mobile-bottom-nav button > i {
    display: block;
    font-size: 22px;
    line-height: 1;
}

/* ACTIVE PAGE */

.mobile-bottom-nav a.active,
.mobile-bottom-nav button.active {
    color: #16a36a;
}

/* ACCOUNT PHOTO */

.mobile-bottom-nav .nav-profile {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 2px solid #16a36a;
    border-radius: 50%;

    background: #ffffff;
}

.mobile-bottom-nav .nav-profile img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 50%;
}

.mobile-bottom-nav .nav-profile i {
    font-size: 18px;
    color: #777777;
}

/* SMALL SCREENS */

@media (max-width: 360px) {
    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        width: 42px;
        font-size: 20px;
    }

    .mobile-bottom-nav a > i,
    .mobile-bottom-nav button > i {
        font-size: 20px;
    }
}

/* TABLET AND DESKTOP */

@media (min-width: 768px) {
    .mobile-bottom-nav {
        left: 50%;
        right: auto;

        width: 100%;
        max-width: 700px;

        transform: translateX(-50%);
    }
}
