/* assets/css/cta-overrides.css
/* =====================================
   CTA SECTIONS
   ===================================== */
.post-cta {
  background: var(--color-bg-alt);
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-radius: 8px;
  text-align: center;
}

.post-cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-cta__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: .5rem;
  color: var(--color-heading);
}

.post-cta__text {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.post-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* botões genéricos */
.post-cta .button,
.post-cta .share-btn {
  padding: .75rem 1.5rem;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s ease;
}

/* cores específicas */
.button--whatsapp { background: #25D366; }
.button--whatsapp:hover { background: #1DA851; }

.button--facebook,
.share-btn--facebook { background: #1877F2; }
.button--facebook:hover,
.share-btn--facebook:hover { background: #155BB5; }

.button--instagram { background: #E1306C; }
.button--instagram:hover { background: #C12757; }

/* botão Google News: usando cor oficial Google Blue */
.button--googlenews { background: #4285F4; }
.button--googlenews:hover { background: #3367D6; }

.share-btn--twitter { background: #1DA1F2; }
.share-btn--twitter:hover { background: #0D8DD8; }

.share-btn--linkedin { background: #0077B5; }
.share-btn--linkedin:hover { background: #005983; }

.share-btn--whatsapp { background: #25D366; }
.share-btn--whatsapp:hover { background: #1DA851; }

/* responsividade */
@media (max-width: 600px) {
  .post-cta__buttons {
    flex-direction: column;
  }
}

/* ===================================================================
   CTA DE COMPARTILHAMENTO COMPACTO (ÍCONES CIRCULARES)
   Mobile-First
   =================================================================== */

/* 1) Container geral da seção de compartilhar */
.post-cta--share {
  background: var(--color-bg-alt);
  padding: 0.75rem 0;      /* pouco padding vertical no mobile */
  margin: 0.5rem 0.5rem;       /* margem horizontal para não encostar nas bordas */
  text-align: center;
  border-radius: 8px;
}

/* 2) Inner que centraliza e garante padding horizontal mínimo */
.post-cta--share .post-cta__inner {
  margin: 0 auto;
  max-width: none;         /* anulamos qualquer max-width do “container” original */
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 3) Título menor no mobile */
.post-cta--share .post-cta__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;      /* 20px */
  margin-bottom: 0.5rem;   /* espaçamento enxuto */
  color: var(--color-heading);
}

/* 4) Bloco de botões em linha no mobile */
.post-cta--share .post-cta__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;         /* quebra para nova linha se faltar espaço */
  justify-content: center;
  gap: 0.5rem;             /* 8px de distância entre cada círculo */
  margin-top: 0.5rem;
}

/* 5) Estilo base de cada botão (ícone circular) */
.post-cta--share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;           /* 40px de largura */
  height: 2.5rem;          /* 40px de altura */
  background-color: #ccc;  /* fallback (será sobrescrito abaixo) */
  color: #fff;             /* ícone SVG usa fill=currentColor, então fica branco */
  border-radius: 50%;      /* círculo perfeito */
  text-decoration: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  padding: 0;              /* já definimos width/height, sem padding interno */
}

/* 6) Hover/focus suave */
.post-cta--share .share-btn:hover,
.post-cta--share .share-btn:focus {
  opacity: 0.85;
}

/* 7) Cores de fundo por rede social (substituindo o fallback) */
.post-cta--share .share-btn--whatsapp {
  background-color: #25D366;
}
.post-cta--share .share-btn--facebook {
  background-color: #1877F2;
}
.post-cta--share .share-btn--twitter {
  background-color: #1DA1F2;
}
.post-cta--share .share-btn--linkedin {
  background-color: #0077B5;
}

/* 8) Tamanho do SVG para caber no círculo (mobile) */
.post-cta--share .share-btn svg {
  width: 1.25rem;           /* 20px */
  height: 1.25rem;
  display: block;
  fill: currentColor;       /* herda do color: #fff do botão */
}

/* 9) Ajustes para telas maiores (>= 600px) */
@media (min-width: 600px) {
  .post-cta--share {
    padding: 1rem 0;        /* um pouco mais de altura no desktop */
    margin: 0.5rem auto;    /* centraliza horizontal sem margem lateral fixa */
    max-width: 1200px;       /* limita a largura do bloco de compartilhar */
  }

  .post-cta--share .post-cta__title {
    font-size: 1.5rem;      /* 24px no desktop */
    margin-bottom: 0.75rem;
  }

  .post-cta--share .post-cta__buttons {
    gap: 0.75rem;           /* 12px de espaço entre os círculos */
  }

  .post-cta--share .share-btn {
    width: 3rem;            /* 48px de diâmetro */
    height: 3rem;
  }

  .post-cta--share .share-btn svg {
    width: 1.5rem;          /* 24px para o ícone no desktop */
    height: 1.5rem;
  }
}