/* Criado em 20/05/2026 - página legumes.html */

.container-legumes {
  /*max-width: 1000px;
  margin: 0 auto; */
  padding: 30px 15px;
  font-family: sans-serif;
  color: #1f2937;
}

.busca-header {
  text-align: center;
  margin-bottom: 40px;
}

.search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 20px auto 0 auto;
}

#buscaLegume {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #0891b2;
  border-radius: 30px;
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sugestoes-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.sugestao-item {
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
}
.sugestao-item:hover {
  background-color: #ecfeff;
  color: #0891b2;
}

.estado-vazio {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 16px;
  border: 2px dashed #e5e7eb;
}

.legume-card-topo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  background: white;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .legume-card-topo { grid-template-columns: 1fr 320px; }
  .legume-grid-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
}

.sub-identidade {
  font-style: italic;
  color: #4b5563;
  margin: 4px 0 12px 0;
}

.box-variedades {
  font-size: 13.5px;
  background: #f3f4f6;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #374151;
}

.box-descricao p {
  line-height: 1.6;
  margin-bottom: 10px;
  color: #4b5563;
}

/* Rótulo Nutricional Fiel */
.tabela-nutricional-rotulo {
  border: 2px solid #111827;
  padding: 15px;
  background: #fff;
}
.tabela-nutricional-rotulo h3 {
  border-bottom: 6px solid #111827;
  padding-bottom: 6px;
  margin: 0 0 10px 0;
  font-size: 18px;
}
.linha-rotulo {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #111827;
  padding: 6px 0;
  font-size: 14px;
}

.bloco-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
}
.bloco-card h3 {
  margin-top: 0;
  font-size: 16px;
  border-left: 4px solid #0891b2;
  padding-left: 10px;
}

.verde-escuro h3 { border-color: #155e75; }
.laranja-suave h3 { border-color: #ea580c; }

.bloco-card ul {
  padding-left: 20px;
  line-height: 1.6;
}
.bloco-card li { margin-bottom: 8px; }

.micronutrientes-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .micronutrientes-flex { grid-template-columns: 1fr 1fr; } }

.lista-detalhada {
  list-style: none !important;
  padding-left: 0 !important;
}
.lista-detalhada li {
  font-size: 13px;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #0891b2;
  margin-bottom: 6px;
}

.painel-legume {
  animation: surgimento 0.4s ease-out;
}
@keyframes surgimento {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* para criar opção de busa geral - 21/05/2026 */
/* Estilo do botão de alternância principal */
.btn-alternativo {
  background: transparent;
  border: 2px solid #0891b2;
  color: #0891b2;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-alternativo:hover {
  background: #0891b2;
  color: white;
}

/* Caixa que segura a lista paginada */
.paginacao-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto 0 auto;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Grid com os botões dos legumes de 5 em 5 */
.grid-botoes-legumes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.btn-legume-item {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  text-align: left;
  border-radius: 8px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-legume-item:hover {
  border-color: #0891b2;
  background: #ecfeff;
  color: #0891b2;
  transform: translateX(4px);
}

/* Controles de navegação (Anterior, Próximo) */
.controles-paginacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.btn-nav {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-nav:hover:not(:disabled) {
  border-color: #0891b2;
  color: #0891b2;
}
.btn-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
