/* ===============================
   FIXED NAVBAR
================================ */

.navbar .inner.static {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0;
    max-width: none;
    opacity: .95;
    will-change: transform, opacity;
    transform: translateY(0);
    animation: slideDown .25s ease-out;
    transition: opacity .2s ease;
}

.navbar .inner.static:hover {
    opacity: 1;
}

/* ===============================
   STRUCTURE
================================ */

.static-inner {
    box-sizing: border-box;
    margin-inline: auto;
    min-width: 625px;
}

.not-static .static-inner {
    padding: 0;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1176px) {
    .static-inner {
        margin-inline: 12px;
    }
}

@media (max-width: 700px) {
    .page-width,
    .static-inner {
        min-width: 290px;
        margin: 0;
    }
}

/* ===============================
   ANIMATION
================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===============================
   TOP NAVBAR - MODERN LOOK (SAFE)
================================ */

.navbar .inner.static {
    background: transparent;
    box-shadow: none;
    border: none;
}

.navbar .inner.static .static-inner {

    background: var(--body-bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border-radius: 0 0 12px 12px;
    padding: 8px 15px;
    transition: box-shadow .2s ease, background .2s ease;
}

/* ==================================
   Toggle Dark/Light mode by stoker
=================================== */

html.phpbb-dark-mode .navbar { background-color: #1e2c3d!important }
