/* =========================================================
   NAVBAR CENTRAL — usado nos hubs (feed, telausuario, perfil, social, listas)
   Estrutura: <nav class="navcentral"> com <a class="nc-link"> e dropdown "Mais"
   ========================================================= */

.navcentral {
    flex: none;
    display: flex;
    gap: 4px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nc-link {
    background: none;
    border: none;
    color: #7a8298;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.18s;
}
.nc-link:hover { color: #c8a84b; background: rgba(200,168,75,0.13); }
.nc-link.active { color: #fff; background: rgba(255,255,255,0.04); }
.nc-link i { font-size: 0.92rem; }
.navcentral :is(a, button):focus-visible,
.nc-dropdown :is(a, button):focus-visible {
    outline: 2px solid #e8c96a;
    outline-offset: 2px;
}

.nc-more-wrap { position: relative; }
.nc-chevron { font-size: 0.7rem !important; margin-left: 2px; transition: transform 0.2s; }
.nc-more-wrap.open .nc-chevron { transform: rotate(180deg); }

.nc-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #11141d;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.18s;
    z-index: 50;
}
.nc-more-wrap.open .nc-dropdown,
.nc-user-wrap.open .nc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nc-dropdown-right { left: auto; right: 0; }

.nc-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cdd3e2;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}
.nc-drop-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nc-drop-item i { color: #c8a84b; width: 18px; text-align: center; font-size: 0.92rem; }
.nc-drop-section { padding: 8px 14px 4px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7a8298; font-weight: 600; }
.nc-drop-sep { height: 1px; background: rgba(255,255,255,0.05); margin: 6px 4px; }
.nc-drop-danger { color: #ff8a8a; }
.nc-drop-danger i { color: #ff8a8a; }
.nc-drop-danger:hover { background: rgba(255,80,80,0.08); }

.nc-theme-item { cursor: default; gap: 10px; }
.nc-theme-item:hover { color: inherit; }
.nc-theme-item > span { flex: 1; }
.nc-theme-switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.nc-theme-slider { position: absolute; inset: 0; cursor: pointer; border-radius: 999px; background: #596174; transition: background .18s; }
.nc-theme-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .18s; }
.nc-theme-switch.is-light .nc-theme-slider { background: #c8a84b; }
.nc-theme-switch.is-light .nc-theme-slider::before { transform: translateX(16px); }
.nc-theme-switch:focus-visible .nc-theme-slider { outline: 2px solid #e8c96a; outline-offset: 2px; }

/* Light theme */
body.light-theme .nc-link { color: #6a7080; }
body.light-theme .nc-link.active { background: rgba(0,0,0,0.04); color: #1a1a2e; }
body.light-theme .nc-dropdown { background: #fff; border-color: rgba(0,0,0,0.1); }
body.light-theme .nc-drop-item { color: #4a5060; }
body.light-theme .nc-drop-item:hover { background: rgba(0,0,0,0.04); color: #1a1a2e; }
html.light-theme-early .nc-link { color: #6a7080; }
html.light-theme-early .nc-link.active { background: rgba(0,0,0,0.04); color: #1a1a2e; }
html.light-theme-early .nc-dropdown { background: #fff; border-color: rgba(0,0,0,0.1); }
html.light-theme-early .nc-drop-item { color: #4a5060; }
html.light-theme-early .nc-drop-item:hover { background: rgba(0,0,0,0.04); color: #1a1a2e; }

:is(html.light-theme-early, body.light-theme) .nc-dropdown {
    box-shadow: 0 12px 32px rgba(30,41,59,.14);
}
:is(html.light-theme-early, body.light-theme) .nc-link { color: #526070; }
:is(html.light-theme-early, body.light-theme) .nc-link:hover {
    color: #806117;
    background: rgba(128,97,23,.09);
}
:is(html.light-theme-early, body.light-theme) .nc-drop-item i { color: #806117; }
:is(html.light-theme-early, body.light-theme) .nc-drop-section { color: #526070; }
:is(html.light-theme-early, body.light-theme) .nc-drop-sep { background: rgba(30,41,59,.14); }
:is(html.light-theme-early, body.light-theme) .nc-drop-danger,
:is(html.light-theme-early, body.light-theme) .nc-drop-danger i { color: #b42318; }
:is(html.light-theme-early, body.light-theme) .nc-drop-danger:hover { color: #912018; background: #fce8e6; }
:is(html.light-theme-early, body.light-theme) .nc-theme-switch.is-light .nc-theme-slider { background: #806117; }

/* Cabeçalhos completados por app-navbar.js: marca, menu e ações separados. */
.topbar.app-navbar-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-block: 0;
    gap: 24px;
}

.app-navbar-brand,
.app-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.app-navbar-brand { justify-self: start; }
.app-navbar-actions { justify-self: end; }
.app-navbar-header .navcentral {
    position: static;
    transform: none;
    justify-self: center;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}
.app-navbar-header .nc-link {
    min-height: 38px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 600;
}
.app-navbar-header .nc-link i {
    flex: 0 0 1em;
    width: 1em;
    text-align: center;
}
body.light-theme .app-navbar-header .navcentral,
html.light-theme-early .app-navbar-header .navcentral {
    border-color: rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.025);
}

@media (min-width: 741px) and (max-width: 1100px) {
    .topbar.app-navbar-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-inline: 20px;
        gap: 16px;
    }
}

/* Mobile: esconde nav central (atalhos voltam só no menu de cada página) */
@media (max-width: 740px) {
    .navcentral { display: none; }
    .topbar.app-navbar-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }
}
