/* ═══════════════════════════════════════════════════════
   WEBNATE — command-palette.css
   Elite Search & Action Command Palette (Cmd+K)
   ═══════════════════════════════════════════════════════ */

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-palette.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(12px);
}

.command-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: scale(0.95) translateY(-20px);
  transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.command-palette.active .command-box {
  transform: scale(1) translateY(0);
}

/* ─── INPUT AREA ─── */
.command-input-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.command-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-family: inherit;
  width: 100%;
}

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

.command-k-hint {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ─── RESULTS AREA ─── */
.command-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.command-group-label {
  padding: 12px 16px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.command-item.selected {
  background: var(--bg-secondary);
  color: var(--accent);
}

.command-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: 8px;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.command-item.selected .icon {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-light);
}

.command-item .label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.command-item .shortcut {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ─── FOOTER ─── */
.command-footer {
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
}

.footer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-hint kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: inherit;
}
