/* Command Palette Styles */
/* Using CSS Variables */

.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
}

.command-palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.command-palette-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: var(--bp-smm);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.command-palette-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.command-palette-header input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-family: var(--font-family-primary);
    background: var(--color-surface);
    color: var(--color-text-primary);
}

.command-palette-header input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-info-bg);
}

.command-palette-results {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.command-item:hover,
.command-item.selected {
    background: var(--color-surface-hover);
}

.command-item:last-child {
    border-bottom: none;
}

.command-keys {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    background: var(--color-surface-hover);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.command-description {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    margin-left: var(--spacing-md);
    flex: 1;
}

/* Keyboard shortcut hints */
.keyboard-hint {
    display: inline-block;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    margin-left: var(--spacing-xs);
}

