@import url('https://fonts.googleapis.com/css2?family=Fauna+One&family=Syne:wght@400;700;800&display=swap');

html { font-size: 110%; }

:root {
  --cor-fundo: #F7EFE0;
  --cor-oliva: #3A4D28;
  --cor-terracota: #B83A23;
  --cor-texto: #333;
  --cor-card: #F7EFE0;
}

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

body {
  background-color: #ffffff;
  color: var(--cor-texto);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 200px;
}

::selection { background-color: var(--cor-terracota); color: #fff; }
::-moz-selection { background-color: var(--cor-terracota); color: #fff; }

.mural-header {
  text-align: center;
  padding: 40px 20px 20px;
  animation: fadeInUp 0.6s ease-out forwards;
}

.mural-header h1 {
  color: var(--cor-oliva);
  font-family: 'Fauna One', serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.mural-header p {
  color: var(--cor-texto);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 24px;
  font-weight: 400;
}

.mural-header .btn-gaia {
  font-family: 'Syne', sans-serif;
}

.mural-nao-logado {
  text-align: center;
  padding: 20px 20px 30px;
  color: #666;
  font-weight: 400;
  font-size: 1rem;
  animation: fadeInUp 0.6s ease-out forwards;
}

.mural-nao-logado a {
  color: var(--cor-terracota);
  font-weight: 700;
  text-decoration: underline;
}

.mural-feed {
  max-width: 1500px;
  margin: 0 auto 60px;
  padding: 0 60px;
  flex: 1;
  position: relative;
}

.mural-lista-mobile {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mural-carrossel-wrapper {
  overflow: hidden;
  width: 100%;
}

.mural-carrossel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.mural-carrossel-track .mural-post {
  flex: 0 0 calc((100% - 50px) / 3);
  min-width: 0;
}

.mural-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cor-oliva);
  background: #fff;
  color: var(--cor-oliva);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mural-seta:hover {
  background: var(--cor-oliva);
  color: #fff;
}

.mural-seta-esq {
  left: -8px;
}

.mural-seta-dir {
  right: -8px;
}

.mural-post {
  background: var(--cor-card);
  border-radius: 20px;
  padding: 25px 30px;
  margin-bottom: 25px;
  box-shadow: 0 6px 28px rgba(58,77,40,0.08), 0 1px 4px rgba(58,77,40,0.04);
  animation: fadeInUp 0.5s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.mural-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cor-oliva), var(--cor-terracota));
}

.mural-post-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mural-post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.mural-post-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mural-post-autor-info {
  flex: 1;
  min-width: 0;
}

.mural-post-autor-nome {
  font-weight: 700;
  color: var(--cor-oliva);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.mural-post-autor-nome:hover {
  color: var(--cor-terracota);
  text-decoration: underline;
}

.mural-post-autor-local {
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
  margin-top: 2px;
}

.mural-post-titulo {
  font-family: 'Fauna One', serif;
  color: var(--cor-oliva);
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.mural-post-descricao {
  color: var(--cor-texto);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.mural-post-imagens {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.mural-post-imagens img {
  width: 100%;
  max-width: 300px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mural-post-data {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin-bottom: 12px;
}

.mural-post-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.mural-post-actions .btn-gaia-sm {
  font-family: 'Syne', sans-serif;
}

.mural-report {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

.btn-report-mural {
  background: none;
  border: none;
  color: #999;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-report-mural:hover {
  color: var(--cor-terracota);
}

.mural-post-own-tag {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  font-style: italic;
}

.mural-post-carregando {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-weight: 400;
  font-size: 1rem;
}

.mural-vazio {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.mural-vazio-icone {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none'%3E%3Crect x='10' y='6' width='60' height='68' rx='6' stroke='%23999' stroke-width='4' fill='none'/%3E%3Cline x1='20' y1='26' x2='60' y2='26' stroke='%23999' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='20' y1='38' x2='50' y2='38' stroke='%23999' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='20' y1='50' x2='44' y2='50' stroke='%23999' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.4;
}

.mural-vazio h2 {
  color: var(--cor-oliva);
  font-family: 'Fauna One', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mural-vazio p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(58, 77, 40, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.aberto {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 560px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border-top: 4px solid var(--cor-terracota);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.modal-header h2 {
  color: var(--cor-oliva);
  font-family: 'Fauna One', serif;
  font-size: 1.5rem;
  line-height: 1.3;
}

.modal-header .btn-gaia-close {
  background: #f1f1f1;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
  transition: background 0.2s;
}

.modal-header .btn-gaia-close:hover {
  background: #e1e1e1;
  color: #000;
}

.modal-descricao {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--cor-oliva);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-weight: 400;
  box-sizing: border-box;
  font-family: 'Syne', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cor-oliva);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,77,40,0.3);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group .contador-caracteres {
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin-top: 4px;
}

.form-group .placeholder-exemplos {
  background: #f9f5ef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
  line-height: 1.5;
}

.form-group .placeholder-exemplos strong {
  color: var(--cor-oliva);
}

.form-group .texto-orientacao-imagem {
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
}

.form-group input[type="file"] {
  font-size: 0.9rem;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
}

.form-group .preview-imagens {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.form-group .preview-imagens .img-preview-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
}

.form-group .preview-imagens .img-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.form-group .preview-imagens .img-preview-wrapper .btn-remover-img {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--cor-terracota);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#btn-publicar-mural {
  font-family: 'Syne', sans-serif;
  margin-top: 6px;
}

.alerta-moderacao {
  display: none;
  color: #d32f2f;
  background: #ffebee;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.secao-ong {
  margin-top: 48px;
  padding: 0 24px;
}
.ong-header {
  text-align: center;
  padding: 40px 20px 10px;
}
.ong-header h1 {
  color: var(--cor-oliva);
  font-family: 'Fauna One', serif;
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.ong-header p {
  color: #4a5a3a;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}
.ong-header strong {
  color: var(--cor-terracota);
}
.ong-busca {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 20px auto;
  align-items: center;
}
.ong-busca select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e8dece;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  background: #fff;
  min-width: 100px;
}
.ong-busca .btn-gaia {
  padding: 12px 24px;
  white-space: nowrap;
}
.ong-lista-header {
  text-align: center;
  font-size: 1.05rem;
  color: var(--cor-oliva);
  margin-bottom: 20px;
  font-weight: 400;
}
.ong-badge-nacional {
  display: inline-block;
  background: var(--cor-oliva);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.ong-lista-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.ong-card {
  display: flex;
  background: #fff;
  border: 1px solid #e8dece;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.ong-card:hover {
  box-shadow: 0 8px 24px rgba(58,77,40,0.1);
  transform: translateY(-2px);
}
.ong-card-img {
  width: 120px;
  min-height: 120px;
  flex-shrink: 0;
  background: #f5efe4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.ong-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ong-card-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.ong-card-body h4 {
  margin: 0 0 6px;
  color: var(--cor-oliva);
  font-size: 0.95rem;
  line-height: 1.3;
}
.ong-card-desc {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #6a5a4a;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}
.ong-card-uf {
  display: inline-block;
  background: #e8dece;
  color: #5a4a3a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.ong-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cor-terracota);
  text-decoration: none;
  transition: gap .2s;
  margin-top: auto;
}
.ong-card-link:hover {
  gap: 8px;
  text-decoration: underline;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.modal-seguranca-info {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #6d4c00;
  line-height: 1.5;
  text-align: center;
}
.modal-seguranca-info strong {
  color: #B83A23;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  body { padding-top: 150px; }
  .mural-header { padding: 24px 15px 16px; }
  .mural-header h1 { font-size: 2rem; }
  .mural-header p { font-size: 1rem; }
  .mural-post { padding: 20px; }
  .mural-feed { padding: 0 40px; }
  .mural-carrossel-track .mural-post { flex: 0 0 100%; }
  .mural-seta { width: 36px; height: 36px; font-size: 1rem; }
  .modal-content { padding: 24px; }
  .modal-header h2 { font-size: 1.3rem; }
  .ong-lista-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .ong-lista-header {
    padding: 0 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body { padding-top: 130px; }
  .mural-header h1 { font-size: 1.6rem; }
  .mural-post { padding: 16px; }
  .mural-post-titulo { font-size: 1.1rem; }
  .mural-post-imagens img { max-width: 100%; }
  .ong-lista-grid {
    padding: 0 12px;
  }
  .ong-lista-header {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
