/* Keyboard Navigation Plugin — Hint Toast */

.kbd-nav-hint {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--fb-bg-surface, #1e1e2e);
    border: 1px solid var(--fb-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--fb-radius-lg, 0.75rem);
    box-shadow: var(--fb-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.25));
    color: var(--fb-text-muted, #a1a1aa);
    font-size: 0.8rem;
    font-family: var(--fb-font-system, system-ui, sans-serif);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kbd-nav-hint.visible {
    opacity: 1;
    pointer-events: auto;
}

.kbd-nav-hint__keys {
    display: flex;
    gap: 0.25rem;
}

.kbd-nav-hint__key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    background: var(--fb-bg-muted, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--fb-border, rgba(255, 255, 255, 0.15));
    border-radius: var(--fb-radius-sm, 0.25rem);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fb-text, #e4e4e7);
    line-height: 1;
}

/* Light theme */
:root:not(.dark) .kbd-nav-hint {
    background: var(--fb-bg-surface, #ffffff);
    border-color: var(--fb-border, rgba(0, 0, 0, 0.1));
    box-shadow: var(--fb-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.1));
    color: var(--fb-text-muted, #6b7280);
}

:root:not(.dark) .kbd-nav-hint__key {
    background: var(--fb-bg-muted, #f3f4f6);
    border-color: var(--fb-border, rgba(0, 0, 0, 0.15));
    color: var(--fb-text, #1f2937);
}

/* Nav link flash highlight on keyboard navigation */
.nav-link.kbd-nav-active {
    outline: 2px solid var(--fb-primary, #6366f1);
    outline-offset: 2px;
    border-radius: var(--fb-radius-md, 0.5rem);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .kbd-nav-hint {
        transition: none;
    }
}
