/* ESTILO GERAL */
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

.container {
  padding: 20px;
  max-width: 600px;
  margin: auto;
  padding-bottom: 160px; /* 👈 espaçamento extra para não tapar botões */
}

/* TÍTULOS */
h1, h2, h3 {
  color: red;
  text-align: center;
}

/* SUBTEXTO CENTRALIZADO */
p.subtexto {
  text-align: center;
  margin-bottom: 20px;
  color: #ccc;
}

/* FORMULÁRIO */
input, select {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border-radius: 10px;
  border: 2px solid red;
  background: #111;
  color: #fff;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* BOTÕES */
button {
  width: 100%;
  padding: 15px;
  background: red;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #cc0000;
}

button:focus,
button:active,
a:focus,
a:active,
a:visited {
  outline: none;
  box-shadow: none;
  border: none;
  text-decoration: none;
}

/* BOTÃO DE VOLTAR */
.botao-voltar {
  background: red;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  margin: 20px 0;
  cursor: pointer;
}

.botao-voltar:hover {
  background: #cc0000;
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  font-size: 2rem;
  z-index: 9999;
}

/* MENU INFERIOR FIXO */
.bottom-nav, .menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #333;
  z-index: 9999;
}

.bottom-nav a,
.menu a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-nav a.ativo,
.menu a.ativo {
  color: red;
  font-weight: bold;
}

/* CAIXA DE RECEITA */
.receita-box {
  background-color: #111;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.receita-box h2 {
  margin-bottom: 15px;
}

.ingredientes li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #333;
  font-size: 1rem;
}

/* IMAGENS DE RECEITA E EXERCÍCIO */
.imagem-receita,
.imagem-topo {
  width: 100%;
  max-width: 400px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 20px auto;
}

/* INSTRUÇÕES */
.instrucao {
  margin-top: 15px;
  line-height: 1.6;
  font-size: 1rem;
  color: #ccc;
}

/* BOTÃO PULSANTE DE PREPARAR */
.botao-preparar {
  background-color: red;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
  animation: pulse 1.5s infinite;
}

.botao-preparar:focus,
.botao-preparar:active {
  outline: none;
  box-shadow: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255,0,0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0, 0); }
}

/* PROGRESSO - BOTÕES 1 A 31 */
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.grid button {
  padding: 15px;
  background: #222;
  border: 1px solid #555;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.grid button.ativo {
  background: red;
}

/* EXERCÍCIOS - CAIXAS DE VÍDEO */
.box-video {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 40px; /* 👈 espaçamento aumentado para não tapar botões */
  text-align: center;
  color: #000;
}

.box-video h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.box-video iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: none;
}

/* BOX COM EFEITO PULSANTE (EX: dicas, alertas) */
.box {
  background: #222;
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.box:hover {
  background-color: #333;
}

.box img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* AJUSTES EXTRAS PARA RESPONSIVIDADE */
@media (max-width: 400px) {
  h1, h2, h3 {
    font-size: 1.2rem;
  }

  .grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .bottom-nav a,
  .menu a {
    font-size: 0.7rem;
  }
}

/* REMOVER OUTLINE AZUL EM LINKS E BOTÕES */
a, a:focus, a:active, a:visited,
button, button:focus, button:active,
.botao-preparar:focus, .botao-preparar:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  text-decoration: none !important;
  color: inherit;
}
