/* ===== Hotkeys Reference Gizmo ===== */

/* === Shared row/keycap styling (widget + full) === */
.hotkeys-group { margin-bottom: 0.75rem; break-inside: avoid; }
.hotkeys-group__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 0 0 0.35rem;
}
.hotkeys-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}
.hotkeys-row:hover, .hotkeys-row:focus-visible { background: var(--bg-secondary); outline: none; }
.hotkeys-row__action { font-size: 0.8125rem; color: var(--text-primary); }
.hotkeys-row__keys {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}
.hotkeys-empty { font-size: 0.8125rem; color: var(--text-secondary); padding: 0.5rem 0; }

/* Note: the dashboard card (widget.php) is self-contained with its own
   inline <style> (hkw-* classes) rather than reusing these — the combined
   dashboard CSS strips each widget's <link> tag, and widget.php must not
   depend on this file being present (see gizmos/periodic for precedent). */

/* === Full page === */
.hotkeys-full__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.hotkeys-full__apps { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.hotkeys-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.hotkeys-chip:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.hotkeys-chip--active { border-color: var(--accent-primary); background: var(--bg-primary); font-weight: 700; color: var(--accent-primary); }
.hotkeys-full__platform {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.hotkeys-full__platform:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.hotkeys-full__search {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    margin-bottom: 0.5rem;
}
.hotkeys-full__search:focus { outline: none; border-color: var(--accent-primary); }
.hotkeys-full__status { font-size: 0.75rem; color: var(--text-secondary); margin: 0 0 0.75rem; min-height: 1rem; }
.hotkeys-full__list { columns: 300px; column-gap: 1.5rem; }
.hotkeys-full__disclaimer { font-size: 0.75rem; color: var(--text-secondary); font-style: italic; text-align: center; margin-top: 0.75rem; }

/* === Copy toast === */
.hotkeys-full__toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 100;
    pointer-events: none;
}

@media (max-width: 575px) {
    .hotkeys-full__list { columns: 1; }
}
