/* topbar.css -- the sticky charcoal top bar Chat and Evolution share: the header band with its gold line, the back button, the second row, the list nav bar and the + box. Evolution imports it into its layout layer; Chat links it before its own file. */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-footer);
    border: 2px solid var(--dark-surface);
    margin-top: 10px;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent-gold);
}

.header-back-btn {
    text-decoration: none;
    color: var(--bg-footer);
    background: var(--accent-gold);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    padding: 6px 12px;
    border: 2px solid var(--dark-surface);
    border-radius: 0;
    transition: background 0.2s;
}

.header-back-btn:hover {
    background: var(--accent-gold-dark);
}

.header-row-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.content-area {
    padding: 8px 12px;
}

.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px 12px;
    background: var(--bg-footer);
    border: 2px solid var(--dark-surface);
}

.nav-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent-gold);
}

.nav-link-add:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 1px;
}

@media screen and (max-width: 480px) {
    .content-area {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .app-header {
        padding: 8px 2px 10px;
        gap: 4px;
        border-left: 0;
        border-right: 0;
    }
    .header-back-btn {
        font-size: 0.875rem;
        padding: 5px 10px;
    }
}
