/* Search boxes with a drop-down list of matches (createSearchBox() in
   js/util.js): the operator page's "Jump to operator" box and the
   planner's "Add operator" / "Add material" boxes. */

.searchBox {
  position: relative;
}

.searchBoxInput {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #1c1c1c;
  color: #eee;
  font-size: 0.95rem;
}

.searchBoxResults {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #2c2c2c;
  border: 1px solid #555;
  border-radius: 6px;
  z-index: 20;
}

.searchBoxResults.hidden {
  display: none;
}

/* One match: icon, name, then tags/rarity pushed to the right. */
.operatorSearchResult {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.operatorSearchResult:hover,
.operatorSearchResult.highlighted {
  background: rgba(255, 255, 255, 0.08);
}

.operatorSearchResultIcon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.operatorSearchResultName {
  font-size: 0.88rem;
  color: #eee;
}

.operatorSearchResultRarity {
  margin-left: auto;
  font-size: 0.75rem;
  color: #999;
}
