/* ========================================
   COMPONENTE: MODAL DE BUSCA
   ======================================== */

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal__container {
  width: 90%;
  max-width: 800px;
  position: relative;
}

/* Botão de fechar */
.search-modal__close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.search-modal__close:hover {
  transform: rotate(90deg);
}

/* Formulário de busca */
.search-modal__form {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.search-modal__input-wrapper {
  position: relative;
  flex: 1;
}

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

.search-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal__input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.search-modal__button {
  padding: 1.5rem 3rem;
  font: 700 1.25rem/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-modal__button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 201, 65, 0.4);
}

.search-modal__button:active {
  transform: translateY(0);
}

/* Sugestões de busca (opcional) */
.search-modal__suggestions {
  margin-top: 2rem;
  text-align: center;
}

.search-modal__suggestions-title {
  font: 600 1rem/1.4 var(--secondary-font);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.search-modal__suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.search-modal__suggestion {
  padding: 0.5rem 1rem;
  font: 400 0.875rem/1 var(--secondary-font);
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ========================================
   TABLET - 768px+
   ======================================== */
@media (min-width: 768px) {
  .search-modal__container {
    width: 80%;
  }

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

  .search-modal__input {
    font-size: 2rem;
    padding: 2rem 2.5rem;
  }

  .search-modal__button {
    font-size: 1.5rem;
    padding: 2rem 4rem;
    white-space: nowrap;
  }

  .search-modal__close {
    top: -80px;
    font-size: 4rem;
  }
}

/* ========================================
   DESKTOP - 1024px+
   ======================================== */
@media (min-width: 1024px) {
  .search-modal__container {
    max-width: 1000px;
  }

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

  .search-modal__suggestions-title {
    font-size: 1.125rem;
  }

  .search-modal__suggestion {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
