/* auth.css — BFF auth UI bits (topbar user + logout).
   Loaded via <link> in Components/App.razor. No inline / no scoped CSS (project rule). */

/* Kullanıcı adı + baş harfler → /hesap bağlantısı (tek tıklanabilir alan). */
.topbar__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 4px 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.topbar__account:hover {
    background: var(--va-elevated);
    border-color: var(--va-border);
}

.topbar__account:hover .topbar__user {
    color: var(--va-text);
}

.topbar__account:focus-visible {
    outline: 2px solid var(--va-accent);
    outline-offset: 2px;
}

.topbar__user {
    font-size: 13px;
    font-weight: 500;
    color: var(--va-text-dim);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--va-border);
    border-radius: 8px;
    background: transparent;
    color: var(--va-text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topbar__logout:hover {
    background: var(--va-elevated);
    color: var(--va-text);
    border-color: var(--va-border-strong);
}

.topbar__logout .material-symbols-outlined {
    font-size: 18px;
}

@media (max-width: 640px) {
    .topbar__logout-text,
    .topbar__user {
        display: none;
    }
}
