/* ==========================================================================
   Site search — additive styles only.
   This file does not redeclare or override any existing selector from
   styles.css. It reuses the same design tokens (with safe fallbacks) so
   the new results / empty-state panels look native to the existing
   search overlay.
   ========================================================================== */

/* ---- Results list ---- */
#searchResultsPanel .search-label {
  margin-bottom: 14px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-result-title {
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  font-family: var(--font-head, inherit);
}

.search-result-cat {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-500, #22d3d8);
  background: rgba(34, 211, 216, 0.12);
  padding: 3px 9px;
  border-radius: 20px;
}

.search-result-desc {
  color: var(--gray-400, #9aa4b2);
  font-size: 13px;
  line-height: 1.5;
}

/* ---- Empty / "No results" state ---- */
.search-empty-state {
  text-align: center;
  padding: 10px 4px 4px;
}

.search-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  /*border: 1px solid rgba(255, 255, 255, 0.12);*/
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500, #22d3d8);
}

.search-empty-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-head, inherit);
  margin: 0 0 8px;
  word-break: break-word;
}

.search-empty-sub {
  color: var(--gray-400, #9aa4b2);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 360px;
}

.search-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search-empty-actions .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.search-empty-actions .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-empty-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-empty-links a {
  font-size: 13px;
  color: var(--gray-400, #9aa4b2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-empty-links a:hover {
  color: var(--teal-500, #22d3d8);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .search-results-list {
    max-height: 50vh;
  }

  .search-empty-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-empty-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .search-empty-links {
    flex-direction: column;
    gap: 12px;
  }
}
