/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #4b1c2f;
  color: #f5f5dc;
  min-height: 100vh;
}

header {
  background-color: #330f1e;
  padding: 1rem;
  text-align: right;
}

header button {
  background-color: #d4b483;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

/* Card do post */
.post-card {
  background-color: #330f1e;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 280px;
  overflow: hidden;
  border: 1px solid #d4b483;
}

.post-card strong {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.post-card p {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card img,
.post-card video {
  max-width: 100%;
  max-height: 120px;
  border-radius: 5px;
  margin-top: 10px;
  object-fit: cover;
}

/* Modal comum */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(75, 28, 47, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 1000;
}

/* Escondido */
.escondido {
  display: none;
}

/* Conteúdo do modal */
.modal-conteudo {
  background: #330f1e;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: #f5f5dc;
}

/* Botão fechar */
.btn-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d4b483;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

/* Formulário */
.form-publicar input[type="text"],
.form-publicar textarea,
.form-publicar input[type="file"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  border: none;
}

/* Botão enviar */
.form-publicar button[type="submit"] {
  background-color: #d4b483;
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

/* Mensagem sucesso */
.mensagem-sucesso {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 20px;
}

.mensagem-sucesso button {
  margin-top: 15px;
  background-color: #d4b483;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  color: #000;
}
body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url(assets/Ativo\ 10.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 360px auto;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}





/* Garante que o resto do conteúdo fique acima da logo */
body > *:not(.logo-fundo) {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;      /* alinha verticalmente */
  justify-content: center;  /* centraliza o conteúdo horizontalmente */
  position: relative;
  padding: 20px;
}

/* Ajusta o botão para ficar no canto superior direito */
.top-bar {
  position: absolute;
  right: 20px;
  top: 20px;
}
/* Responsividade para telas até 600px (celulares) */
/* Novo container do topo */
.topo-container {
  position: relative;
}

/* Estilo do botão em desktop */
@media (min-width: 769px) {
  .btn-abrir {
    position: absolute;
    top: 20px;
    right: 20px;
  }
}
