/* ============================================================
   SEARCH APP — Discovery utility. Focused, minimal, functional.
   Character: A smart librarian who gives you exactly what you need.
   ============================================================ */

.window.app-search .window-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf6, #f8f3e8);
}

.search-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Search bar */
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fffcf0, #f5eedc);
  border-bottom: 2px solid rgba(160,110,40,0.18);
}

.search-bar input {
  border: 1px solid rgba(160,110,40,0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #2e1a04;
  padding: 9px 14px;
  font-size: 0.90rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.search-bar input:focus {
  outline: none;
  border-color: rgba(160,110,40,0.60);
  box-shadow: 0 0 0 3px rgba(160,110,40,0.12);
}

.search-bar input::placeholder { color: rgba(160,110,40,0.50); }

.search-bar button {
  border: 1px solid rgba(160,110,40,0.40);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0d080, #d8a820);
  color: #2a1200;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 120ms ease;
}

.search-bar button:hover { filter: brightness(1.08); }

/* Results */
.search-results {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
}

.result-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5a3818;
  text-align: left;
  padding: 11px 14px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  transition: background 110ms ease, border-color 110ms ease;
  margin-bottom: 4px;
}

.result-button strong {
  display: block;
  color: #2a1200;
  font-size: 0.88rem;
  font-family: var(--sans);
}

.result-button span {
  display: block;
  color: #9a7040;
  font-size: 0.74rem;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-button:hover {
  background: rgba(220,170,60,0.14);
  border-color: rgba(160,110,40,0.28);
}

.search-results p { color: #9a7040; font-size: 0.84rem; margin: 14px 0; text-align: center; }

/* Fuzzy suggestion message */
.search-suggestion {
  color: #9a7040;
  font-size: 0.84rem;
  margin: 14px 0;
  text-align: center;
  padding: 12px 16px;
  background: rgba(160,110,40,0.07);
  border: 1px dashed rgba(160,110,40,0.24);
  border-radius: 8px;
}

.search-suggestion em {
  font-style: normal;
  color: #7a5020;
  font-family: var(--mono);
  font-size: 0.78rem;
}
