/* EmptyOS Keyboard Shortcuts — palette + help overlay styles */

/* Palette overlay */
#eos-palette-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: none; justify-content: center; align-items: flex-start;
    padding-top: min(20vh, 120px);
    backdrop-filter: blur(4px);
}
#eos-palette-overlay.show { display: flex; }

#eos-palette {
    width: min(560px, 92vw);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 200%, transparent);
    overflow: hidden;
    animation: paletteIn 0.15s ease;
}
@keyframes paletteIn { from { opacity: 0; transform: translateY(-12px) scale(0.97); } }

#eos-palette-input {
    width: 100%; padding: 16px 20px;
    background: transparent; border: none; border-bottom: 1px solid var(--border);
    color: var(--text); font-size: 16px; font-family: inherit;
    outline: none;
}
#eos-palette-input::placeholder { color: var(--text-muted); }

#eos-palette-results {
    max-height: min(50vh, 400px); overflow-y: auto;
}

.pr-item {
    padding: 10px 20px; cursor: pointer;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    transition: background 0.08s;
    display: flex; flex-direction: column; gap: 1px;
}
.pr-item:last-child { border-bottom: none; }
.pr-item:hover, .pr-item.selected { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pr-item.selected { border-left: 3px solid var(--accent); padding-left: 17px; }

.pr-name {
    font-size: 14px; font-weight: 600; color: var(--text-heading);
    display: flex; align-items: center; gap: 8px;
}
.pr-desc { font-size: 12px; color: var(--text-muted); }
.pr-badge {
    font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px;
}
.pr-shortcut {
    font-size: 11px; color: var(--text-muted); margin-left: auto;
    font-family: var(--mono, monospace);
}
.pr-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

#eos-palette-footer {
    padding: 8px 20px; border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-muted);
    display: flex; gap: 16px;
}
.pf-key {
    display: inline-block; padding: 1px 5px; border-radius: 3px;
    background: var(--border); font-family: var(--mono, monospace);
    font-size: 10px; margin-right: 3px;
}

/* Help overlay */
#eos-help-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9998;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
#eos-help-overlay.show { display: flex; }

#eos-help-panel {
    width: min(600px, 92vw); max-height: 80vh; overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 200%, transparent);
    padding: 24px;
    animation: paletteIn 0.15s ease;
}

.help-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.help-header h2 { font-size: 18px; font-weight: 700; color: var(--text-heading); margin: 0; }
.help-header button {
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer; padding: 0 4px;
}
.help-header button:hover { color: var(--text); }

.help-section { margin-bottom: 16px; }
.help-section h3 {
    font-size: 13px; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.help-section table { width: 100%; border-collapse: collapse; }
.help-section td {
    padding: 4px 8px; font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.help-section td:first-child {
    width: 140px; white-space: nowrap; color: var(--text);
}

kbd {
    display: inline-block; padding: 2px 6px; border-radius: 4px;
    background: var(--border); border: 1px solid color-mix(in srgb, var(--text-muted) 20%, var(--border));
    font-family: var(--mono, monospace); font-size: 11px;
    color: var(--text); min-width: 18px; text-align: center;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
