/* ========== IMPORTS ========== */

/* Tailwind gerado via CDN ou build */
@import url('../dist/output.css');

/* Fontes personalizadas para corpo e títulos */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Merriweather:wght@700&display=swap');



/* ========== RESET GLOBAL ========== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}



/* ========== TIPOGRAFIA & CORES ========== */

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0fdf4; /* verde bem suave */
  color: #1a202c; /* cinza escuro neutro */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  color: #065f46; /* verde escuro elegante */
  margin-bottom: 0.5rem;
  line-height: 1.3;
}



/* ========== LINKS ========== */

a {
  color: #047857;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #065f46;
  text-decoration: underline;
}



/* ========== BOTÕES ========== */

.btn {
  background-color: #10b981;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn:hover {
  background-color: #059669;
  transform: scale(1.05);
}



/* ========== IMAGENS ========== */

img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}



/* ========== SCROLLBAR UX ========== */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}



/* ========== MENU HAMBURGUER ========== */

.hamburger span {
  transition: all 0.3s ease;
}



/* ========== RESPONSIVIDADE ========== */

@media (max-width: 1024px) {
  main {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}



/* ========== COMPONENTES FUTUROS (exemplo) ========== */

/* Card de post */
.card-post {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ============================
   ESTILO PARA PÁGINAS DE POST
============================ */

/* Container principal do post */
#post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

/* Título do post */
#post-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  color: #065f46;
  margin-bottom: 1rem;
}

/* Data do post */
#post-content .post-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 2rem;
  display: block;
}

/* Parágrafos */
#post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
}

/* Listas */
#post-content ul,
#post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  color: #374151;
}

#post-content li {
  margin-bottom: 0.5rem;
}

/* Citações */
#post-content blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1rem;
  margin: 2rem 0;
  color: #065f46;
  font-style: italic;
  background: #ecfdf5;
  border-radius: 0.5rem;
}

/* Imagens */
#post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Títulos internos */
#post-content h2,
#post-content h3 {
  font-family: 'Merriweather', serif;
  color: #047857;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Links */
#post-content a {
  color: #047857;
  font-weight: 500;
  text-decoration: underline;
}

#post-content a:hover {
  color: #065f46;
}

/* Botão flutuante para voltar ao blog */
.btn-voltar {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: #065f46;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 999;
  transition: all 0.3s ease;
}

.btn-voltar:hover {
  background-color: #047857;
  transform: scale(1.05);
}

/* ===animações nos bloco dos posts=== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-container {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #e0f7ec, #ffffff);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
}

.hero-content {
  max-width: 760px;
  margin: auto;
  padding: 1rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #064e3b;
  margin-bottom: 0.5rem;
}

.hero-content .highlight {
  color: #10b981; /* emerald-500 */
}

.hero-content .slogan {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 1.8rem;
}

.cta-button {
  display: inline-block;
  background-color: #10b981;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #059669;
}

/* Animação */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content .slogan {
    font-size: 1rem;
  }
}