/* =========================================================================================================================== */
/*                                            📱 NAVIGATION MOBILE (ROBUST)                                                    */
/*                                            📍 static/css/base/navigation_mobile.css                                         */
/* =========================================================================================================================== */

@media (max-width: 1024px) {

/* =========================================================================================================================== */
/* MAIN NAV                                                                                                                   */
/* =========================================================================================================================== */

nav,
.main-navbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.4rem 0.4rem;
    position: relative;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

nav::-webkit-scrollbar,
.main-navbar::-webkit-scrollbar {
    display: none;
}

nav a,
nav button,
.main-navbar a,
.main-navbar button {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;

    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.2;

    color: #d7d7d7;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;

    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

nav a.active,
nav button.active,
.main-navbar a.active,
.main-navbar button.active {
    color: #f7931a;
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.45);
    box-shadow: none;
    text-shadow: none;
}

nav a.active::after,
nav button.active::after,
.main-navbar a.active::after,
.main-navbar button.active::after {
    content: none;
}

/* =========================================================================================================================== */
/* SUBNAV                                                                                                                     */
/* =========================================================================================================================== */

.subnav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    position: relative;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav a,
.subnav button {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;

    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.2;

    color: #c6c6c6;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;

    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.subnav a.active,
.subnav button.active {
    color: #f7931a;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.55);
    box-shadow: none;
    text-shadow: none;
}

.subnav a.active::after,
.subnav button.active::after {
    content: none;
}

/* =========================================================================================================================== */
/* EDGE FADE                                                                                                                  */
/* =========================================================================================================================== */

nav::before,
nav::after,
.subnav::before,
.subnav::after {
    content: "";
    position: absolute;
    top: 0;
    width: 14px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

nav::before,
.subnav::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95), transparent);
}

nav::after,
.subnav::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.95), transparent);
}

}

