/* === Estilo isolado para o módulo CLIMA === */

body {
  background-color: #121212;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
}

a {
  color: #80cbc4;
}

.categoria {
  background-color: #1e1e1e;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px;
}

h1, h2, h3 {
  color: #ffffff;
}



.clima-wrapper {
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  max-width: 100%;
}

.clima-titulo {
  display: flex;
  align-items: center;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 1rem;
  color: #333;
}

.clima-icon {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

/* 🔧 Bloco de busca com alinhamento horizontal */
.clima-busca {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.clima-busca input,
.clima-busca select,
.clima-busca button {
  flex: 1;
  min-width: 200px;
  max-width: 350px;
  box-sizing: border-box;
}

/* 🔍 Campo de busca */
#climaBusca {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #222;
}

#climaBusca::placeholder {
  color: #666;
}

/* 🔘 Botão de busca */
#climaBotaoBusca {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#climaBotaoBusca:hover {
  background-color: #005fa3;
}

/* 📦 Container de resultados */
#climaContainer {
  margin-top: 1rem;
}

/* UF Acordeões */
#climaContainer .estado {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.estado-header {
  background-color: #eee;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #333;
}

.estado-content {
  padding: 0.5rem 1rem;
  display: none;
}

.estado.active .estado-content {
  display: block;
}

/* Municípios */
.municipio {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid #ddd;
}

.municipio-header {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.3rem;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: #444;
}

.municipio-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  margin-top: 0.5rem;
}

/* 🔗 Créditos do Windy */
.credit {
  font-size: clamp(10px, 1vw, 12px);
  text-align: center;
  margin-top: 8px;
  color: #555;
}

/* 🎥 Estilo para títulos de vídeo do canal */
.channel-info h2 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

/* 📌 Aviso abaixo do Windy */
.aviso-clima {
  font-size: 0.9rem;
  color: #333;
  margin-top: 8px;
  text-align: center;
}

/* 🔙 Botão de retorno */
.voltar-pesquisa {
  text-align: right;
  margin-top: 12px;
}

.btn-voltar {
  background-color: #c62828;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-voltar:hover {
  background-color: #b71c1c;
  transform: scale(1.03);
}

/* 📱 Responsividade extra */
@media (max-width: 600px) {
  .clima-titulo {
    flex-direction: column;
    align-items: flex-start;
  }

  .clima-icon {
    margin-bottom: 0.5rem;
  }

  .clima-busca {
    flex-direction: column;
    align-items: stretch;
  }

  .clima-busca input,
  .clima-busca select,
  .clima-busca button,
  #climaBotaoBusca {
    width: 100%;
    max-width: none;
  }
}

/* ====== Variante translúcida do botão de compartilhamento (clima) ====== */

.compartilhar-clima {
  margin-top: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}

/* botão translúcido com borda suave */
.btn-compartilhar-clima {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06); /* translúcido sobre fundo escuro */
  color: #e6f7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease, background 160ms ease, border-color 160ms ease;
}

/* hover / foco */
.btn-compartilhar-clima:hover,
.btn-compartilhar-clima:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  outline: none;
}

/* active */
.btn-compartilhar-clima:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.32);
}

/* ícone à esquerda se usado */
.btn-compartilhar-clima > img,
.btn-compartilhar-clima > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* contraste para blocos claros (caso .clima-wrapper mude para fundo claro) */
.clima-wrapper .btn-compartilhar-clima {
  background: rgba(0, 120, 204, 0.12);
  color: #01263a;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* responsividade */
@media (max-width: 480px) {
  .compartilhar-clima { justify-content: center; }
  .btn-compartilhar-clima {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* pequeno espaçamento entre aviso e controles */
.aviso-clima + .compartilhar-clima { margin-top: 6px; }

/* 🔧 Mural de recados */
.mural-wrapper {
  margin-top: 20px;
  padding: 12px;
  background-color: #f1f1f1;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.mural-recados {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mural-recados li {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.mural-recados li strong {
  color: #000;
  font-weight: bold;
}

.mural-recados li br + span,
.mural-recados li span.avaliacao {
  display: block;
  margin-top: 6px;
  font-weight: bold;
  color: #444;
}

.player-wrapper .mural-recados li {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  margin-bottom: 10px !important;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.player-wrapper .mural-recados li strong {
  color: #000 !important;
  font-weight: bold !important;
}