/* Commands Block */
.commands {
  /* No specific styles for the block itself */
}

/* Commands Trigger Element */
.commands__trigger {
  display: flex;
  align-items: center;
  gap: var(--size-1);
  background: var(--dark);
  color: var(--light);
  padding-block: var(--size-1);
  padding-inline: var(--size-4);
  border-radius: var(--radius-2);
  font-weight: var(--font-weight-6);
  box-shadow: var(--shadow-4);
  cursor: pointer;
  transition: box-shadow var(--ease-2) 150ms;

  &:hover {
    box-shadow: var(--shadow-5);
  }

  &:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
}

/* Commands Trigger Image Element */
.commands__trigger-image {
  filter: invert();
}

/* Command Palette Block */
.command-palette {
  /* Inherits dialog styles */
}

/* Command Palette Search Element */
.command-palette__search {
  padding: var(--size-3);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--surface-4);
  width: 100%;
  outline: 0;
  transition: border-color var(--ease-2) 150ms;

  &:focus {
    border-bottom-color: var(--brand);
  }
}

/* Command Palette Results Element */
.command-palette__results {
  margin-top: var(--size-2);
  padding-inline: var(--size-2);
  border-radius: var(--radius-2);
  overflow: auto;
  max-height: 60vh;
}

/* Command Group Block */
.command-group {
  /* No specific styles needed */
}

/* Command Group Title Element */
.command-group__title {
  font-size: var(--font-size-1);
  color: var(--app-muted);
  padding: var(--size-2) var(--size-3);
}

/* Command Link Block */
.command-link {
  display: block;
  padding: var(--size-2) var(--size-3);
  border-radius: var(--radius-2);
  background-color: transparent;
  text-decoration: none;
  color: var(--text-1);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-5);
  /* Removed transition for instant keyboard navigation */

  &:hover,
  &:focus-visible {
    background-color: var(--surface-3);
    color: var(--text-1);
    outline: none;
  }
}
