/* ============================================
   CARLA DA MATA - BLOG DE PSICOLOGIA INFANTIL
   Folha de estilos dos artigos
   ============================================ */

/* === FONTES DO GOOGLE === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* === CORES === */
:root {
  --creme: #FFF8F3;
  --bege: #FFE5D4;
  --terracota: #F09878;
  --sage: #B8C9B8;
  --marrom: #3D3D3D;
  --branco: #FFFFFF;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--creme);
  color: var(--marrom);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--marrom);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === AVISO NO TOPO === */
.aviso-topo {
  background-color: var(--bege);
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  color: #5C4D3C;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.aviso-topo strong {
  color: var(--terracota);
}

/* === MENU SUPERIOR === */
body > header {
  background-color: var(--branco);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 45px;
  width: auto;
}

.menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--marrom);
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--terracota);
}

/* === MENU MOBILE === */
.menu-mobile {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--marrom);
}

.menu-aberto {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--branco);
  padding: 20px 24px;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* === ARTIGO PRINCIPAL === */
.artigo-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* === IMAGEM NO TOPO === */
.artigo-img {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 (altura = 56,25% da largura) */
  border-radius: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.artigo-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === CABEÇALHO DO ARTIGO === */
.artigo-header {
  text-align: center;
  margin-bottom: 32px;
}

.artigo-header .categoria {
  display: inline-block;
  background-color: var(--sage);
  color: var(--branco);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.artigo-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.artigo-header .data {
  font-size: 13px;
  color: #5C4D3C;
  opacity: 0.7;
}

/* === RESUMO DO ARTIGO === */
.artigo-resumo {
  font-size: 17px;
  color: #5C4D3C;
  font-style: italic;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* === CORPO DO ARTIGO === */
.artigo-corpo h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--marrom);
  margin-top: 48px;
  margin-bottom: 20px;
}

.artigo-corpo h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--marrom);
  margin-top: 36px;
  margin-bottom: 14px;
}

.artigo-corpo p {
  margin-bottom: 22px;
  color: var(--marrom);
  font-size: 16px;
  line-height: 1.8;
}

.artigo-corpo strong {
  color: var(--marrom);
}

.artigo-corpo ul,
.artigo-corpo ol {
  margin: 0 0 28px 24px;
}

.artigo-corpo li {
  margin-bottom: 10px;
  color: var(--marrom);
  line-height: 1.7;
}

.artigo-corpo li::marker {
  color: var(--terracota);
}

/* === DESTAQUE / CITAÇÃO === */
.destaque {
  background-color: var(--bege);
  border-left: 4px solid var(--terracota);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 36px 0;
  font-style: italic;
  color: #5C4D3C;
}

.destaque cite {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-style: normal;
  color: var(--terracota);
}

/* === REFERÊNCIAS === */
.artigo-referencias {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.artigo-referencias h2 {
  margin-top: 0;
  margin-bottom: 24px;
}

.artigo-referencias h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* === BOTÕES === */
.btn {
  display: inline-block;
  background-color: var(--terracota);
  color: var(--branco);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #B56A4A;
  transform: translateY(-2px);
}

/* === VOLTAR PARA HOME === */
.voltar-home {
  text-align: center;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.voltar-home a {
  color: var(--terracota);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.voltar-home a:hover {
  gap: 10px;
}

/* === RODAPÉ === */
footer {
  background-color: var(--marrom);
  color: var(--bege);
  padding: 40px 0 30px;
  text-align: center;
  margin-top: 0;
}

footer p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.aviso-legal {
  font-size: 12px;
  opacity: 0.6;
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* === REDES SOCIAIS NO RODAPÉ === */
.redes-sociais {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}

.redes-sociais a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--bege);
  transition: all 0.3s ease;
}

.redes-sociais a svg {
  width: 20px;
  height: 20px;
}

.redes-sociais a:hover {
  background-color: var(--terracota);
  color: var(--branco);
  transform: translateY(-3px);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .menu-mobile {
    display: block;
  }

  .artigo-container {
    padding: 0 16px 60px;
  }

  .artigo-img {
    margin-top: 24px;
    margin-bottom: 28px;
  }

  .artigo-header h1 {
    font-size: 30px;
  }

  .artigo-corpo h2 {
    font-size: 24px;
    margin-top: 36px;
  }

  .artigo-corpo h3 {
    font-size: 19px;
    margin-top: 28px;
  }

  .artigo-resumo {
    font-size: 15px;
  }
}

/* === NEWSLETTER === */
.newsletter {
  background-color: var(--sage);
  padding: 70px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 36px;
  color: var(--branco);
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.form-newsletter {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.form-newsletter input {
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  width: 320px;
  max-width: 100%;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--marrom);
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-newsletter input::placeholder {
  color: #9B8E80;
}

.form-newsletter input:focus {
  box-shadow: 0 0 0 3px rgba(240, 152, 120, 0.4);
}

.form-newsletter .btn {
  background-color: var(--marrom);
}

.form-newsletter .btn:hover {
  background-color: #2E2E2E;
}

/* === RESPONSIVO DA NEWSLETTER === */
@media (max-width: 768px) {
  .newsletter {
    padding: 50px 0;
  }

  .newsletter h2 {
    font-size: 28px;
  }

  .form-newsletter input {
    width: 100%;
  }

  .form-newsletter .btn {
    width: 100%;
  }
}
/* === BANNER DE COOKIES (card inferior) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.mostrar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-card {
  background-color: var(--branco);
  border-radius: 12px;
  border-bottom: 4px solid var(--terracota);
  box-shadow: 0 4px 20px rgba(61, 61, 61, 0.12);
  padding: 28px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.cookie-card p {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--marrom);
}
.cookie-marca {
  color: var(--terracota);
}
.cookie-card a {
  color: var(--terracota);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-card a:hover {
  color: #B56A4A;
}
.cookie-btn {
  background-color: var(--terracota);
  color: var(--branco);
  border: none;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookie-btn:hover {
  background-color: #B56A4A;
  transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 12px;
  }
  .cookie-card {
    padding: 22px 20px;
  }
  .cookie-card p {
    font-size: 13px;
  }
  .cookie-btn {
    width: 100%;
    padding: 14px;
  }
}
