/* Estilizar informações sobre frutas em frutas.html - criado em 19/05/2026 */

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

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

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

#buscaFruta {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #2f8f83;
  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: #f0fdf4;
  color: #2f8f83;
}

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

/* Painel de Resultados */
.fruta-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) {
  .fruta-card-topo { grid-template-columns: 1fr 320px; }
  .fruta-grid-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
}

.sub-identidade {
  font-style: italic;
  color: #6b7280;
  margin: 4px 0 15px 0;
}

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

/* Rótulo Nutricional */
.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;
}

/* Blocos de Grid */
.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 #2f8f83;
  padding-left: 10px;
}

.verde-suave h3 { border-color: #10b981; }
.vermelho-suave h3 { border-color: #ef4444; }

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

/* Micronutrientes Split */
.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 #6b7280;
}

/* Animação de Entrada */
.painel-fruta {
  animation: surgimento 0.4s ease-out;
}
@keyframes surgimento {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* painel de legumes - criado 21/05/2026 */

/* Botão para abrir listagem completa */
.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;
}

/* Container que envolve os 5 botões e controle */
.paginacao-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto 25px auto;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Grid com os botões das frutas da página ativa */
.grid-botoes-frutas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.btn-fruta-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-fruta-item:hover {
  border-color: #0891b2;
  background: #ecfeff;
  color: #0891b2;
  transform: translateX(4px);
}

/* Área de controle (Voltar, Avançar e Contador) */
.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;
}
