/* Resultados da pesquisa global */
.search-results {
  margin-top: 1.25rem;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 214, 10, 0.45) transparent;
}

.search-results--visible {
  opacity: 1;
  transform: translateY(0);
}

.search-results__count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.65rem;
}

.search-results__empty {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.search-results__empty strong {
  color: #ffd60a;
}

.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-results__item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 214, 10, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.search-results__item:hover {
  background: rgba(255, 214, 10, 0.1);
  border-color: rgba(255, 214, 10, 0.35);
  transform: translateX(4px);
}

.search-results__cat {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffd60a;
  margin-bottom: 0.2rem;
}

.search-results__title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.search-results__excerpt {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.search-results__title mark,
.search-results__excerpt mark {
  background: rgba(255, 214, 10, 0.35);
  color: #fff;
  padding: 0 0.15em;
  border-radius: 2px;
}

.search-modal-content:has(.search-results--visible) .search-suggestions {
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .search-results {
    max-height: 38vh;
  }
}
