/* ========================================
   TEMPLATE: SEARCH (RESULTADOS DE BUSCA)
   ======================================== */

/* Hero de Busca */
.search-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
  padding: 4rem 1.5rem 3rem;
  margin-bottom: 3rem;
}

.search-hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-hero__title {
  font: 800 2rem/1.2 var(--primary-font);
  color: #fff;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.search-hero__term {
  color: var(--primary-color);
  display: block;
  margin-top: 0.5rem;
}

.search-hero__count {
  font: 400 1.125rem/1.4 var(--secondary-font);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem 0;
}

.search-hero__count strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Formulário de busca no hero */
.search-hero__form {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

.search-hero__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font: 400 1rem/1.4 var(--secondary-font);
  color: var(--secondary-color);
  background-color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.search-hero__input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(180, 201, 65, 0.2);
}

.search-hero__button {
  padding: 1rem 2rem;
  font: 700 1rem/1 var(--primary-font);
  color: #000;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-hero__button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 201, 65, 0.4);
}

/* Resultados */
section.search-results {
  max-width: 1200px;
  margin: 0 auto;
}
.search-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 1.5rem;
}

/* Destaque do termo de busca */
.search-highlight {
  background-color: var(--primary-color);
  color: #000;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-weight: 700;
}

/* Estado vazio (sem resultados) */
.search-results__empty {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.search-results__empty-title {
  font: 700 1.75rem/1.2 var(--primary-font);
  color: var(--secondary-color);
  margin: 0 0 1rem 0;
}

.search-results__empty-text {
  font: 400 1.125rem/1.6 var(--secondary-font);
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 2rem 0;
}

/* Categorias sugeridas */
.search-results__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.search-results__category {
  padding: 0.75rem 1.5rem;
  font: 600 1rem/1 var(--secondary-font);
  color: var(--secondary-color);
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.search-results__category:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

.search-results__category-count {
  font-weight: 400;
  opacity: 0.7;
}

/* ========================================
   TABLET - 768px+
   ======================================== */
@media (min-width: 768px) {
  .search-hero {
    padding: 5rem 2rem 4rem;
  }

  .search-hero__title {
    font-size: 2.5rem;
  }

  .search-hero__term {
    display: inline;
    margin-top: 0;
  }

  .search-hero__count {
    font-size: 1.25rem;
  }

  .search-hero__form {
    flex-direction: row;
  }

  .search-hero__input {
    font-size: 1.125rem;
  }

  .search-hero__button {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .search-results__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .search-results__empty-title {
    font-size: 2rem;
  }
}

/* ========================================
   DESKTOP - 1024px+
   ======================================== */
@media (min-width: 1024px) {
  .search-hero {
    padding: 6rem 2rem 5rem;
  }

  .search-hero__title {
    font-size: 3rem;
  }

  .search-hero__count {
    font-size: 1.5rem;
  }

  .search-results__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .search-results__empty-title {
    font-size: 2.5rem;
  }

  .search-results__empty-text {
    font-size: 1.25rem;
  }
}
