.search {
  display: none; /* Inicia oculta */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  
  /* 🔥 Efeito de fade-in / fade-out */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.search.active {
  display: flex;
  opacity: 1;
}

.search.hidden {
  opacity: 0;
}

#searchInput {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 0px;
  color: #fff;
  border-left: none;
  background-color: #ffffff29;
  width:100%;

  border-bottom: 3px solid #fff;
  outline: none;
  border-right: none;
}
#searchInput:focus {
  padding: 10px;
  font-size: 16px;
  color: #fff;
  border-left: none;
  border-top: none;
  background-color: #ffffff29;
  width:100%;

  border-bottom: 3px solid transparent; /* Torna a borda invisível */
  border-image: linear-gradient(to right,#ff9ded, #17d4ff, #0078c9) 1; /* Aplica o degradê à borda */

  outline: none;
  border-right: none;
}
.align-search{
  width: 700px;
}
#searchInput.show {
  opacity: 1;
  transform: translateY(0);
}

/* 🔥 Animação de fade-in para os resultados */
.suggestion-item {
  opacity: 0;
 
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.suggestion-item.show {
  opacity: 1;
 
}

  #searchInput {
    padding: 10px;
    font-size: 16px;
    width: 100%;
  
  }
  
  .dropdown {
    margin-top: 20px;
    background-color: #333;
    width: 100%;
    
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .suggestion-item {
    margin-bottom: 15px;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .suggestion-item:hover {
    background-color: #444;
    padding: 20px;
    transition: 0.2s;
    border-radius: 8px;
  }
  .suggestion-item:hover h2 {
   color: #0dcaf0;
  }
  
  .suggestion-item h2 {
    margin: 0;
    font-size: 18px;
  }
  
  .suggestion-item p {
    margin: 5px 0 0;
    font-size: 14px;
  }
  
  .open-search {
    padding: 10px 20px;
    background-color: #ffffff2a;
    cursor: pointer;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 50px;
    border: none;
    color: #fff;
    transition: 0.2s;

  }
  .open-search i {
    transition: 0.2s;
    color: #0dcaf0;
    
  }  .open-search:hover i{
  
   transition: 0.2s;
     
   }
  .open-search:hover {
   transition: 0.2s;
 color: #b1b1b1;
   
    
  } 
  @media (max-width: 1200px) {
    .open-search:hover i {
      font-size: 15px;
      transition: 0.2s;
  }
  #searchInput {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    background-color: #373b3e;
    color: #000;
    max-width: 500px;
}
.search-container {
  width: 250px;
}.suggestion-item h2 {
  margin: 0;
  color: #0dcaf0;
  font-size: 18px;
}
  .align-search {
    width: 100%;
    display: inline-grid
;
    justify-content: center;
    align-items: center;
    text-align: center;
}#searchInput:focus {
  padding: 10px;
  font-size: 16px;
  color: #ffffff;
  border-left: none;
  border-top: none;
  background-color: #373b3e;
  width: 300px;
  max-width: 500px;
  border-bottom: 3px solid transparent; /* Torna a borda invisível */
  border-image: linear-gradient(to right,#ff9ded, #17d4ff, #0078c9) 1; /* Aplica o degradê à borda */

  outline: none;
  border-right: none;
}
.open-search {
  padding: 10px;
  background-color: #ffffff2a;
  cursor: pointer;
  border-top: none;
  width: 100%;
  border-radius: 0px;
  border-left: none;
  font-size: 9px;
  border-right: none;
  border-bottom: 4px solid #fff;
  color: #fff;
  transition: 0.2s;
} }