/* thread-search.css -- OCA Team Dashboard v2
   Styles for the threads column search input, filter highlight, and Cmd+K hint.
   No em-dashes.
*/

/* ---- Search wrap ---- */
.threads-col__search-wrap {
  padding: 10px 12px 6px;
  flex-shrink: 0;
}

.threads-col__search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.threads-col__search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(23, 163, 152, 0.14);
}

.threads-col__search svg,
.threads-col__search [data-icon-pending] {
  color: var(--ink-3);
  flex-shrink: 0;
}

/* ---- Input ---- */
.threads-col__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.4;
}

.threads-col__search-input::placeholder {
  color: var(--ink-3);
}

/* ---- Cmd K hint chip ---- */
.threads-col__search-kbd {
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  /* Hide when the input is focused or has a value */
  transition: opacity 0.15s;
}

.threads-col__search:focus-within .threads-col__search-kbd {
  opacity: 0;
  pointer-events: none;
}

/* ---- No-results message (injected by ThreadSearch.filterThreads consumer) ---- */
.threads-col__no-results {
  padding: 24px 16px;
  text-align: center;
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
  color: var(--ink-3);
  font-style: italic;
}

/* ---- Thread item highlight when search term matches ---- */
.thread-item.is-search-match .thread-item__title {
  /* Subtle background highlight behind matching title */
  background: linear-gradient(transparent, transparent);
  /* The consumer may wrap matched text in <mark class="search-hl">; style it: */
}

mark.search-hl {
  background: rgba(23, 163, 152, 0.18);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
