/**
 * Command Palette Styles
 */

.command-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.command-palette-overlay.active {
  display: flex;
}

.command-palette-content {
  width: min(600px, 95vw);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-light);
  overflow: hidden;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.command-palette-search-wrapper {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-hover);
}

.command-palette-search-wrapper svg {
  color: var(--muted-light);
  margin-right: 16px;
}

.command-palette-input {
  width: 100%;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  background: transparent;
}

.command-palette-input::placeholder {
  color: var(--muted-light);
}

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

.command-palette-group-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
  letter-spacing: 0.05em;
}

.command-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
  text-decoration: none;
}

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

.command-palette-item svg {
  width: 18px;
  height: 18px;
  color: var(--ink-secondary);
}

.command-palette-item:hover svg,
.command-palette-item.selected svg {
  color: var(--accent);
}

.command-palette-item-label {
  font-size: 14px;
  font-weight: 600;
}

.command-palette-item-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-light);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-light);
}

.command-palette-footer {
  padding: 12px 24px;
  background: var(--surface);
  border-top: 1px solid var(--surface-hover);
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.command-palette-footer kbd {
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: sans-serif;
  margin-right: 4px;
}
