/* ============================================================
   Welliton Blog — Enhancements CSS
   Inspirado no layout editorial do Padre Paulo Ricardo
   ============================================================ */

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --accent:        #166534;   /* Verde escuro — acento editorial */
  --accent-light:  #f0fdf4;   /* Fundo suave para badges */
  --accent-dark:   #14532d;   /* Hover do acento */
  --dark:          #0a0a0a;
  --medium:        #4b4b4b;
  --light:         #f5f5f5;
  --surface:       #ffffff;
  --border:        #e5e7eb;
  --border-dark:   #d1d5db;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.07);
}

/* Scroll suave */
html { scroll-behavior: smooth; }

/* ── Barra de progresso de leitura ───────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Voltar ao topo ──────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s;
  z-index: 40;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}
#back-to-top:hover { background: var(--medium); }
#back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ── Header refinado ─────────────────────────────────────── */
.site-header-inner {
  border-bottom: 3px solid var(--accent);
}

/* ── Hero do index ───────────────────────────────────────── */
.hero-index {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero-index::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(185,28,28,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-index h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* ── Artigo em DESTAQUE ──────────────────────────────────── */
.featured-article {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s, transform .3s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; min-height: auto; }
}
.featured-article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.featured-article-img {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}
.featured-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.featured-article:hover .featured-article-img img { transform: scale(1.04); }
.featured-article-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  z-index: 2;
}
.featured-article-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .featured-article-body { padding: 1.75rem; }
}
.featured-article-meta {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.featured-article-title {
  font-family: 'Merriweather', serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.featured-article-title:hover { color: var(--accent); }
@media (max-width: 1024px) {
  .featured-article-title { font-size: 1.35rem; }
}
.featured-article-excerpt {
  font-family: 'Merriweather', serif;
  font-size: .95rem;
  color: var(--medium);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap .2s, color .2s;
  width: fit-content;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .2rem;
}
.featured-read-more:hover { color: var(--accent-dark); gap: .75rem; }
.featured-latest-label {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.featured-latest-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Grid de artigos ─────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* ── Card de artigo (grid) ───────────────────────────────── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  height: 200px;
}
.article-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .article-card-img-wrap img { transform: scale(1.05); }
.article-card-cat {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .65rem;
}
.article-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: .5rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.article-card-title {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: .75rem;
  text-decoration: none;
  display: block;
  flex: 1;
  transition: color .2s;
}
.article-card-title:hover { color: var(--accent); }
.article-card-excerpt {
  font-family: 'Merriweather', serif;
  font-size: .8rem;
  color: var(--medium);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-link {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: .15rem;
  width: fit-content;
  transition: color .2s;
}
.article-card-link:hover { color: var(--accent-dark); }

/* ── Botão ver mais ──────────────────────────────────────── */
.btn-ver-mais {
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 2.5rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-ver-mais:hover { background: var(--dark); color: #fff; }

/* ── Artigos extras ocultos ──────────────────────────────── */
#artigos-extras { display: none; }
#artigos-extras.visible { display: contents; }

/* ── Sidebar refinada ────────────────────────────────────── */
.sidebar-author {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.sidebar-author img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto .75rem;
  display: block;
}
.sidebar-author h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}
.sidebar-author p {
  font-family: 'Merriweather', serif;
  font-size: .8rem;
  color: var(--medium);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.sidebar-author a {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: .1rem;
  transition: color .2s;
}
.sidebar-cta {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.75rem;
}
.sidebar-cta h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: .5rem;
}
.sidebar-cta p {
  font-family: 'Merriweather', serif;
  font-size: .8rem;
  color: var(--medium);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.sidebar-cta a {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem;
  text-decoration: none;
  transition: background .2s;
}
.sidebar-cta a:hover { background: var(--accent-dark); }
.sidebar-newsletter {
  background: var(--dark);
  padding: 2rem;
  text-align: center;
}
.sidebar-newsletter h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.sidebar-newsletter p {
  font-family: 'Merriweather', serif;
  font-size: .8rem;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.sidebar-newsletter input {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--dark);
  background: var(--light);
  border: none;
  outline: none;
  margin-bottom: .5rem;
  transition: box-shadow .2s;
}
.sidebar-newsletter input:focus { box-shadow: 0 0 0 2px var(--accent); }
.sidebar-newsletter button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.sidebar-newsletter button:hover { background: var(--accent-dark); }
.sidebar-newsletter .spam-note {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: .5rem;
}

/* ── Divider de seção ────────────────────────────────────── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Footer multi-coluna ─────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  text-align: left;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-family: 'Merriweather', serif;
  font-size: .85rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.65;
  margin-top: .5rem;
  max-width: 280px;
}
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #1f2937;
}
.footer-col-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-col-links a {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}
.footer-col-links a:hover { color: #e5e7eb; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom-copy {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4b5563;
}
.footer-bottom-email {
  font-family: 'Merriweather', serif;
  font-size: .8rem;
  color: #6b7280;
  font-style: italic;
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-email:hover { color: #9ca3af; }

/* Compatibilidade com o .footer-nav antigo (mantém sidebar) */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: #e5e7eb; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .current { color: #6b7280; }
.breadcrumb ol { display: flex; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0; }

/* ── Tipografia de artigo ────────────────────────────────── */
.article-body {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
}
.article-body h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 6rem;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.article-body blockquote p,
.article-body blockquote {
  color: var(--accent-dark);
  font-style: italic;
}
.article-body .lead {
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.8;
}
/* Drop cap no primeiro parágrafo de destaque */
.article-lead-cap::first-letter {
  font-size: 3.5rem;
  font-weight: 900;
  float: left;
  line-height: .75;
  margin: .1rem .2rem 0 0;
  color: var(--accent);
  font-family: 'Merriweather', serif;
}

/* ── Artigos relacionados ────────────────────────────────── */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-articles h3 {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.related-articles h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: block; text-decoration: none; color: inherit; transition: opacity .2s; }
.related-card:hover { opacity: .85; }
.related-card-img { height: 9rem; overflow: hidden; margin-bottom: .75rem; background: #e5e7eb; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.related-card-title {
  font-family: 'Merriweather', serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  display: block;
}

/* ── Compartilhar ────────────────────────────────────────── */
.share-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.share-section p {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: .75rem;
}
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  padding: .5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
  display: inline-block;
  border: none;
}
.share-btn:hover { opacity: .85; }
.share-btn-whatsapp { background: #25D366; color: #fff; }
.share-btn-linkedin  { background: #0A66C2; color: #fff; }
.share-btn-twitter   { background: var(--dark); color: #fff; }
.share-btn-copy      { background: var(--light); color: var(--dark); border: 1px solid var(--border); cursor: pointer; }

/* ── Tags do artigo ──────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  padding: .25rem .6rem;
  background: var(--accent-light);
  border: 1px solid #bbf7d0;
  font-family: 'Inter', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Notificação "copiado!" ──────────────────────────────── */
.copy-toast {
  position: fixed;
  bottom: 5rem; right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 100;
}
.copy-toast.show { opacity: 1; }

/* ── CTA box inline nos artigos ──────────────────────────── */
.article-cta {
  background: var(--accent-light);
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.article-cta strong { color: var(--accent); }
.article-cta a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ── Mobile nav melhorado ────────────────────────────────── */
@media (max-width: 767px) {
  header nav { font-size: .7rem; gap: .6rem; }
}
