/*
 * Platform mobile bottom navigation.
 */

.platform-mobile-bottom-nav {
    display: none;
}

.platform-mobile-drawer {
    display: none;
}

@media (max-width: 760px) {
    body {
        padding-bottom: 70px !important;
    }

    .platform-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1070;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.12);
        background: #ffffff;
        box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
    }

    .platform-mobile-bottom-nav a,
    .platform-mobile-bottom-nav button {
        min-height: 58px;
        border: 0;
        background: transparent;
        color: #334155;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
    }

    .platform-mobile-bottom-nav i {
        font-size: 1.15rem;
        color: #2563eb;
    }

    .platform-mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 1080;
        display: block;
    }

    .platform-mobile-drawer[hidden] {
        display: none;
    }

    .platform-mobile-drawer__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.38);
    }

    .platform-mobile-drawer__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(78vh, 620px);
        overflow: auto;
        border-radius: 16px 16px 0 0;
        background: #ffffff;
        box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.22);
        padding: 1rem;
    }

    .platform-mobile-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.85rem;
    }

    .platform-mobile-drawer__header strong {
        color: #0f172a;
        font-size: 1rem;
    }

    .platform-mobile-drawer__header button {
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 8px;
        background: #ffffff;
        color: #0f172a;
        width: 2.25rem;
        height: 2.25rem;
    }

    .platform-mobile-drawer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .platform-mobile-drawer__links[hidden] {
        display: none;
    }

    .platform-mobile-drawer__links a {
        min-height: 68px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 8px;
        background: #f8fafc;
        color: #0f172a;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.75rem;
        text-decoration: none;
        font-weight: 800;
    }

    .platform-mobile-drawer__links a.platform-mobile-drawer__subitem {
        min-height: 54px;
        margin-left: 0.5rem;
        background: #ffffff;
        border-style: dashed;
        color: #334155;
        font-size: 0.82rem;
    }

    .platform-mobile-drawer__links i {
        color: #2563eb;
        font-size: 1.2rem;
    }
}
