/* ============================================
   POST-TEMPLATE.CSS
   Estilos prinipais
   ============================================ */

/* ========== BOTÃO VOLTAR AO TOPO ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0d9668;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(16,185,129,0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========== BARRA DE PROGRESSO DE LEITURA ========== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #0d9668);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ========== CTA FLUTUANTE (NEWSLETTER) ========== */
.floating-cta {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #10b981;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px);
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.floating-cta.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px);
}

.floating-cta:hover {
  transform: translateX(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(16,185,129,0.5);
}

.floating-cta i {
  color: white;
  font-size: 1rem;
}

.floating-cta span {
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

/* CTA FLUTUANTE - Responsivo */
@media (max-width: 1024px) {
  .floating-cta {
    bottom: 80px;  /* ← MUDE de 20px para 80px */
    right: 20px;
    padding: 0.5rem 1rem;
  }
  .floating-cta span {
    font-size: 0.75rem;
  }
}

/* Para telas médias (tablet) */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 85px;  /* ← AUMENTE este valor para subir mais */
    right: 16px;
    padding: 0.5rem 0.9rem;
  }
  .floating-cta span {
    font-size: 0.7rem;
  }
}

/* Para telas pequenas (mobile) */
@media (max-width: 480px) {
  .floating-cta {
    bottom: 80px;  /* ← AUMENTE este valor */
    right: 12px;
    padding: 0.4rem 0.8rem;
  }
  .floating-cta i {
    font-size: 0.8rem;
  }
  .floating-cta span {
    font-size: 0.65rem;
  }
}

/* Botão Voltar ao topo - mantém no fundo */
.back-to-top {
  position: fixed;
  bottom: 30px;  /* Mantém no fundo */
  right: 30px;
  /* ... resto */
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;  /* Mantém no fundo */
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========== SIDEBAR ESQUERDA (STICKY) ========== */
.sidebar-left-sticky {
  position: sticky;
  top: 120px;
}

@media (max-width: 1024px) {
  .sidebar-left-sticky {
    position: static;
  }
}

/* ========== EXPLORE TAMBÉM ========== */
.explore-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.explore-section:hover {
  border-color: rgba(16,185,129,0.2);
  background: rgba(255,255,255,0.03);
}

.explore-title {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(16,185,129,0.7);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.explore-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(16,185,129,0.2), transparent);
  margin-bottom: 1.25rem;
}

.explore-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.explore-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.explore-link:hover {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.2);
  transform: translateX(4px);
}

.explore-link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  color: #10b981;
  transition: all 0.25s ease;
}

.explore-link:hover .explore-link-icon {
  background: #10b981;
  color: #0c1814;
}

.explore-link-content {
  flex: 1;
}

.explore-link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  transition: color 0.25s ease;
}

.explore-link:hover .explore-link-title {
  color: #10b981;
}

.explore-link-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.explore-link-arrow {
  color: rgba(16,185,129,0.4);
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.explore-link:hover .explore-link-arrow {
  transform: translateX(4px);
  color: #10b981;
}

/* ========== AUTOR DO POST - VERSÃO CORRIGIDA ========== */
.author-original {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Avatar no topo do artigo - 80px como no original */
.author-avatar-original {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(16,185,129,0.3);
}

.author-avatar-original img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 9999px;
}

/* Avatar na biografia do autor - 144px (w-36) */
.author-bio-avatar {
  width: 144px;
  height: 144px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(16,185,129,0.3);
  background: linear-gradient(135deg, #10b981, #0d9668);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 9999px;
}

.author-info-original {
  text-align: left;
}

.author-name-original {
  font-weight: 600;
  color: white;
  font-size: 1rem;
  margin-top: 25px;
}

.author-bio-original {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: -20px;
}

/* ========== BREADCRUMB CENTRALIZADO ========== */
.breadcrumb-centered {
  text-align: center;
  padding: 0.5rem 0;
}

.breadcrumb-centered a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-centered a:hover {
  color: #10b981;
}

.breadcrumb-centered span {
  color: rgba(255,255,255,0.4);
  margin: 0 0.25rem;
}

.breadcrumb-centered .current {
  color: #10b981;
}

/* ========== BOTÕES DE NAVEGAÇÃO ESTILIZADOS ========== */
.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-back-link:hover {
  color: #10b981 !important;
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-2px);
}

/* ========== LEITURA EM VOZ ALTA ========== */
.read-aloud {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #9ca3af;
  transition: all 0.3s ease;
  cursor: pointer;
}

.read-aloud:hover {
  color: #10b981 !important;
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-2px);
}

.read-aloud.playing {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.read-aloud.playing i,
.read-aloud.playing span {
  color: white;
}

.read-aloud:focus {
  outline: none;
}

/* ========== BOTÕES DE COMPARTILHAMENTO - CORRIGIDO ========== */
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-icon:hover {
  color: #10b981 !important;
  background: rgba(16,185,129,0.15);
  transform: translateY(-3px);
}

.share-icon:focus {
  outline: none;
}

.share-icon i {
  font-size: 1rem;
}

/* ========== CALLOUT BOXES ========== */
.callout-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.02) 100%);
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.callout-box:hover {
  background: rgba(16,185,129,0.12);
  transform: translateX(4px);
}

.callout-icon {
  color: #10b981;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  float: left;
}

.callout-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.callout-text strong {
  color: #10b981;
}

/* ========== SUMÁRIO (TABLE OF CONTENTS) - CORRIGIDO ========== */
.toc-elegant {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.toc-header-icon {
  width: 32px;
  height: 32px;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.toc-header-icon i {
  font-size: 0.9rem;
}

.toc-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.toc-header-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-list li {
  padding: 0.25rem 0;
}

.toc-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.toc-link:hover {
  color: #10b981;
  transform: translateX(4px);
}

/* ========== UPDATE BADGE ========== */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  color: #10b981;
}

/* ========== BANNER APOIE O PROJETO (HORIZONTAL) ========== */
.apoie-horizontal {
  background: linear-gradient(145deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.apoie-horizontal:hover {
  border-color: rgba(16,185,129,0.4);
  background: linear-gradient(145deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.05) 100%);
}

.apoie-horizontal-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.apoie-horizontal-text {
  flex: 1;
}

.apoie-horizontal-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.apoie-horizontal-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.apoie-horizontal-qrcode {
  background: white;
  padding: 0.6rem;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.apoie-horizontal-qrcode img {
  width: 90px;
  height: 90px;
  display: block;
}

.apoie-horizontal-info {
  flex-shrink: 0;
  min-width: 200px;
}

.apoie-chave-horizontal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.apoie-chave-horizontal i {
  color: rgba(16,185,129,0.5);
  font-size: 0.7rem;
}

.apoie-chave-horizontal code {
  color: white;
  font-size: 0.75rem;
  font-family: monospace;
}

.apoie-copy-btn-horizontal {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.apoie-copy-btn-horizontal:hover {
  background: rgba(16,185,129,0.25);
  border-color: #10b981;
}

.apoie-copy-btn-horizontal.copied {
  background: rgba(16,185,129,0.25);
  border-color: #10b981;
  color: #10b981;
}

.apoie-disclaimer-horizontal {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.3px;
}

.apoie-disclaimer-horizontal i {
  color: #10b981;
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .apoie-horizontal-content {
    flex-direction: column;
    text-align: center;
  }
  .apoie-horizontal-info {
    width: 100%;
  }
  .apoie-chave-horizontal {
    justify-content: center;
  }
  .apoie-horizontal-qrcode img {
    width: 80px;
    height: 80px;
  }
}

/* ========== NEWSLETTER ========== */
.article-newsletter-container {
  max-width: 500px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.article-newsletter-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  text-align: center;
}

.article-newsletter-description {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.article-newsletter-group {
  margin-bottom: 1rem;
}

.article-newsletter-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.article-newsletter-input:focus {
  outline: none;
  border-color: #10b981;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.article-newsletter-input::placeholder {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.article-newsletter-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #0d9668 100%);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
  margin-top: 1rem;
}

.article-newsletter-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.4);
  background: linear-gradient(135deg, #0d9668 0%, #0b7a56 100%);
}

.article-newsletter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.article-newsletter-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 50px;
  text-align: center;
  display: none;
  font-size: 0.9rem;
}

.article-newsletter-status.success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  display: block;
}

.article-newsletter-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  display: block;
}

.thank-you-message {
  animation: fadeInUp 0.6s ease forwards;
}

.thank-you-message h3 {
  color: #10b981;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.thank-you-message p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== NAVEGAÇÃO ENTRE ARTIGOS ========== */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  max-width: 45%;
  flex: 1;
}

.nav-link:hover:not(.disabled) {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
  transform: translateY(-2px);
}

.nav-link.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.nav-link .line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
  max-width: 200px;
}

.nav-link.prev {
  justify-content: flex-start;
}

.nav-link.next {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-link {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
  .nav-link .line-clamp-1 {
    max-width: 150px;
  }
}

@media (max-width: 640px) {
  .nav-link {
    padding: 0.75rem 1rem;
  }
  .nav-link .line-clamp-1 {
    max-width: 120px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-link .line-clamp-1 {
    max-width: 100px;
  }
}

/* ========== ARTIGOS, LIVROS E PRODUTOS RELACIONADOS ========== */
.artigos-relacionados-container,
.livros-relacionados-container,
.produtos-relacionados-container {
  margin: 3rem 0;
  padding: 2rem 0;
}

/* ========== TIPOGRAFIA DO ARTIGO ========== */
.prose {
  max-width: 100%;
  color: rgba(255,255,255,0.9);
}

.prose h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin: 1.5rem 0;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #10b981;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(16,185,129,0.3);
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #0d9668;
  text-decoration-color: #10b981;
}

/* ========== NOT-PROSE ========== */
/* Classe para elementos que não devem herdar estilos do prose */
/* Mantida vazia intencionalmente como marcador */

/* ========== CORREÇÕES PARA COMPARTILHAMENTO E TOC ========== */

/* ========== CORREÇÃO: BOTÕES DE COMPARTILHAMENTO ========== */
/* Garantir que os botões de compartilhamento tenham o estilo correto */
.share-section .share-icon,
.mt-10 .share-icon,
.share-buttons .share-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.1) !important;
  color: #9ca3af !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.share-section .share-icon:hover,
.mt-10 .share-icon:hover,
.share-buttons .share-icon:hover {
  color: #10b981 !important;
  background: rgba(16,185,129,0.15) !important;
  transform: translateY(-3px) !important;
}

/* Cores específicas para cada rede social no hover */
.share-section .share-icon:hover.bg-\[\#1877f2\] {
  background: #1877f2 !important;
  color: white !important;
}

.share-section .share-icon:hover.bg-\[\#1da1f2\] {
  background: #1da1f2 !important;
  color: white !important;
}

.share-section .share-icon:hover.bg-\[\#25D366\] {
  background: #25D366 !important;
  color: white !important;
}

.share-section .share-icon:hover.bg-\[\#26A5E4\] {
  background: #26A5E4 !important;
  color: white !important;
}

.share-section .share-icon:hover.bg-\[\#0A66C2\] {
  background: #0A66C2 !important;
  color: white !important;
}

/* Ajuste para ícones dentro dos botões */
.share-section .share-icon i,
.mt-10 .share-icon i,
.share-buttons .share-icon i {
  font-size: 1rem !important;
}

/* ========== CORREÇÃO: TOC (Navegue pelo artigo) ========== */
/* Garantir que o TOC tenha o estilo correto dentro do prose */
.prose .toc-elegant,
.toc-elegant {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  max-width: 100% !important;
}

.toc-elegant .toc-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.toc-elegant .toc-header-icon {
  width: 32px !important;
  height: 32px !important;
  background: rgba(16,185,129,0.1) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #10b981 !important;
  flex-shrink: 0 !important;
}

.toc-elegant .toc-header-icon i {
  font-size: 0.9rem !important;
}

.toc-elegant .toc-header-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: white !important;
  letter-spacing: 0.5px !important;
}

.toc-elegant .toc-header-sub {
  font-size: 0.7rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-left: auto !important;
}

.toc-elegant .toc-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
}

.toc-elegant .toc-list li {
  padding: 0.25rem 0 !important;
  margin: 0 !important;
}

.toc-elegant .toc-link {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.toc-elegant .toc-link:hover {
  color: #10b981 !important;
  transform: translateX(4px) !important;
}

/* ========== CORREÇÃO: REMOVER CONFLITOS COM MAIN.CSS ========== */
/* Sobrescrever estilos do main.css que podem estar afetando o TOC */
.prose .toc-elegant ul,
.prose .toc-elegant ol,
.toc-elegant ul,
.toc-elegant ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.prose .toc-elegant li,
.toc-elegant li {
  margin: 0 !important;
  padding: 0.25rem 0 !important;
}

/* ========== CORREÇÃO: RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  .share-section .share-icon,
  .mt-10 .share-icon,
  .share-buttons .share-icon {
    width: 32px !important;
    height: 32px !important;
  }
  
  .toc-elegant {
    padding: 1rem !important;
  }
  
  .toc-elegant .toc-header-title {
    font-size: 0.9rem !important;
  }
  
  .toc-elegant .toc-link {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .share-section .share-icon,
  .mt-10 .share-icon,
  .share-buttons .share-icon {
    width: 28px !important;
    height: 28px !important;
  }
  
  .share-section .share-icon i,
  .mt-10 .share-icon i,
  .share-buttons .share-icon i {
    font-size: 0.8rem !important;
  }
  
}




/* ============================================
   FAQ - Accordion (global, usado em todas as páginas)
   ============================================ */
/* ===== FAQ ícones ===== */
        .faq-icon {
            background: rgba(11, 122, 86, 0.15) !important;
        }

        .faq-icon i {
            color: #34d399 !important;
        }

/* ===== FAQ ===== */
        .faq-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-item:hover {
            border-color: rgba(11, 122, 86, 0.3);
            background: rgba(255, 255, 255, 0.05);
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            width: 100%;
            background: transparent;
            border: none;
            text-align: left;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }

        .faq-question:focus-visible {
            outline: 2px solid #10b981;
            outline-offset: -2px;
            border-radius: 1rem;
        }

        .faq-question h3 {
            width: 92%;
            font-size: 1.125rem;
            font-weight: 600;
            color: white;
            margin: 0;
            transition: color 0.2s ease;
            pointer-events: none;
        }

        .faq-question:hover h3 {
            color: #34d399;
        }

        .faq-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(11, 122, 86, 0.15);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            pointer-events: none;
        }

        .faq-icon i {
            font-size: 0.875rem;
            color: #34d399;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .faq-item.active .faq-icon i {
            transform: rotate(180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0 1.5rem;
            background: transparent;
            border: none;
            outline: none;
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            padding: 0 1.5rem 1.25rem 1.5rem;
            background: transparent;
            border: none;
        }

        .faq-answer p {
            color: #9ca3af;
            line-height: 1.6;
            font-size: 0.95rem;
        }



/* ============================================
   BANNER DE COOKIES (LGPD) + CONSENT MODE
   Migrado do styles.css do projeto original
   ============================================ */

/* ===== RESERVA DE ESPAÇO PARA O BANNER (PREVINE CLS) ===== */
body.cookie-banner-visible {
  padding-bottom: 0;
  transition: padding-bottom 0.3s ease;
}

/* Desktop - reserva pequena pois o banner é horizontal */
@media (min-width: 769px) {
  body.cookie-banner-visible {
    padding-bottom: 65px;
  }
}

/* Tablet - reserva média */
@media (max-width: 768px) {
  body.cookie-banner-visible {
    padding-bottom: 270px;
  }
}

/* Mobile - reserva maior pois os botões empilham */
@media (max-width: 480px) {
  body.cookie-banner-visible {
    padding-bottom: 270px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  body.cookie-banner-visible {
    padding-bottom: 320px;
  }
}

/* ===== BANNER PRINCIPAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c1814;
  color: white;
  padding: 1rem;
  z-index: 9999;
  border-top: 2px solid #10b981;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.cookie-text a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: #0d9668;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Botões do banner - todos com mesmo padrão visual (neutro) */
.cookie-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  min-width: 130px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cookie-btn i {
  font-size: 0.9rem;
}

/* Todos os botões começam com o mesmo estilo neutro (igual ao "Configurar") */
.cookie-btn-accept,
.cookie-btn-reject,
.cookie-btn-settings {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hover: cada botão ganha sua cor específica com contraste adequado */
.cookie-btn-accept:hover {
  background: #0b7a56;
  color: white;
  border-color: #0b7a56;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(11, 122, 86, 0.3);
}

.cookie-btn-reject:hover {
  background: #b02a37;
  color: white;
  border-color: #b02a37;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(176, 42, 55, 0.3);
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cookie-btn-accept:active,
.cookie-btn-reject:active,
.cookie-btn-settings:active {
  transform: translateY(0);
}

/* ============================================
   MODAL DE CONFIGURAÇÕES DE COOKIES
   ============================================ */

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: #0c1814;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cookie-settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cookie-option {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-option-title {
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-option-title i {
  color: #10b981;
}

.cookie-option-description {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cookie-settings-save {
  flex: 2;
  background: #0d9668;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-settings-save:hover {
  background: #0b7a56;
  transform: translateY(-2px);
}

.cookie-settings-close {
  flex: 1;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-settings-close:hover {
  background: rgba(255,255,255,0.05);
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.hidden {
  display: none !important;
}

.message-fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hardware-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* ============================================
   ESTADOS DE FOCO MELHORADOS
   ============================================ */

.ebook-buy-button:focus,
.form-submit-btn:focus,
#exploreMaterialsBtn:focus,
.close-modal-btn:focus,
.social-button:focus,
.cookie-btn:focus,
.cookie-settings-save:focus,
.cookie-settings-close:focus {
  outline: 3px solid rgba(16, 185, 129, 0.8) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3) !important;
}

:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   ARIA ATTRIBUTES
   ============================================ */

[aria-invalid="true"] {
  border-color: #ef4444 !important;
}

[aria-invalid="false"] {
  border-color: #10b981 !important;
}

:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   MODAL OPEN STATE
   ============================================ */

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ============================================
   LINKS EXTERNOS
   ============================================ */

a[target="_blank"] {
  position: relative;
}

a[target="_blank"]:after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 2px;
  opacity: 0.7;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
  .h1 {
    font-size: 3rem;
  }
  
  .h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .swiper-nav-btn {
    width: 40px;
    height: 40px;
    display: none;
  }
  
  .ebook-card {
    max-width: 280px;
    height: 480px;
  }
  
  .ebook-image-container {
    height: 300px;
  }
  
  .ebook-swiper .swiper-slide {
    opacity: 0.5;
  }
  
  .ebook-swiper .swiper-slide-active {
    opacity: 1;
  }
  
  .ebook-buy-button {
    padding: 14px 20px !important;
    font-size: 15px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .ebook-buy-button:active {
    transform: scale(0.96) !important;
  }
  
  .email-modal-content {
    width: 95% !important;
    padding: 1rem !important;
  }
  
  .email-form-container {
    padding: 1.5rem !important;
  }
  
  .form-title {
    font-size: 1.25rem !important;
  }
  
  .form-description {
    font-size: 0.9rem !important;
  }
  
  .h1 {
    font-size: 2.5rem;
  }
  
  .h2 {
    font-size: 2rem;
  }
  
  .commission-disclaimer {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .commission-pulse {
    margin: 0;
  }
  
  button, 
  .ebook-buy-button, 
  .form-submit-btn,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, 
  textarea {
    font-size: 16px;
  }
  
  .social-buttons-container {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .social-button {
    width: 100%;
    padding: 1rem;
  }
  
  /* Responsividade do banner de cookies - botões empilhados */
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .cookie-btn {
    width: 100%;
    min-width: unset;
    padding: 0.75rem 1.5rem;
    justify-content: center;
  }
  
  .cookie-settings-content {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .ebook-card {
    max-width: 260px;
    height: 460px;
  }
  
  .ebook-image-container {
    height: 280px;
  }
  
  .email-form-container {
    padding: 1.5rem !important;
  }
  
  .form-input {
    padding: 0.875rem 1rem !important;
    font-size: 16px !important;
  }
  
  .form-submit-btn {
    padding: 0.875rem 1rem !important;
    font-size: 16px !important;
  }

  .cookie-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .cookie-buttons {
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .email-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .form-title {
    font-size: 1.1rem !important;
  }
  
  .form-description {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .footer-social-link span {
    display: none;
  }
  
  .footer-social-link svg {
    width: 24px;
    height: 24px;
  }
  
  .thank-you-container {
    padding: 1.5rem;
  }
  
  .thank-you-title {
    font-size: 1.25rem;
  }
  
  .thank-you-info {
    padding: 1rem;
  }
  
  /* Banner de cookies em telas pequenas */
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  
  .cookie-btn {
    width: 100%;
    min-width: unset;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-text p {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .email-form-container {
    padding: 1rem !important;
  }
  
  .thank-you-message {
    padding: 1rem !important;
  }
  
  .form-title {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .thank-you-container {
    padding: 1rem;
  }
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .ebook-buy-button,
  .email-modal,
  .swiper-nav-btn,
  .commission-disclaimer,
  #exploreMaterialsBtn,
  .social-button,
  .thank-you-container,
  .cookie-banner,
  .cookie-settings-modal {
    display: none !important;
  }
}

/* ============================================
   PREFERÊNCIAS DO SISTEMA
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .ebook-card,
  .ebook-buy-button,
  .flip-card,
  .email-modal,
  .email-modal-content,
  .thank-you-message,
  .thank-you-container,
  .error-message,
  .loading-spinner,
  .loading-spinner-small,
  .commission-pulse,
  .commitment-icon::after,
  .commitment-card::before,
  .social-button,
  .cookie-banner,
  .cookie-settings-modal,
  .cookie-btn,
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  .ebook-buy-button,
  .form-submit-btn,
  #exploreMaterialsBtn,
  .social-button,
  .cookie-btn-accept,
  .cookie-btn-reject {
    border: 2px solid white;
  }
  
  .form-input {
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  .thank-you-container,
  .cookie-banner,
  .cookie-settings-content {
    border: 2px solid rgba(255,255,255,0.2);
  }
}

@media (prefers-color-scheme: dark) {
  .email-modal {
    background: rgba(0, 0, 0, 0.95);
  }
  
  .email-form-container {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .cookie-banner {
    background: #0c1814;
  }
}

/* ============================================
   FALLBACKS E COMPATIBILIDADE
   ============================================ */

@supports not (backdrop-filter: blur(12px)) {
  .email-form-container,
  .ebook-card,
  .thank-you-container,
  .cookie-settings-content {
    background: rgba(12, 24, 20, 0.95);
  }
}

@supports not (display: grid) {
  .ebook-carousel-container {
    display: block;
  }
  
  .ebook-card {
    display: inline-block;
    vertical-align: top;
    margin: 0 15px;
  }
}

/* ============================================
   CROSS-BROWSER FIXES
   ============================================ */

@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .ebook-buy-button,
    .form-submit-btn,
    .form-input,
    .cookie-btn {
      -webkit-appearance: none;
    }
  }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
  .ebook-buy-button,
  .email-modal-content,
  .thank-you-container,
  .cookie-settings-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

@-moz-document url-prefix() {
  .ebook-buy-button {
    position: relative;
    z-index: 10000;
  }
  
  .swiper-slide {
    overflow: visible !important;
  }
  
  .form-input {
    background: rgba(12, 24, 20, 0.8);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .ebook-card {
    background: #0c1814;
  }
  
  .ebook-buy-button {
    display: block !important;
    position: relative !important;
    z-index: 1000 !important;
  }
  
  .email-modal {
    background: #0c1814;
  }
  
  .thank-you-container {
    background: #0c1814;
  }
  
  .cookie-banner {
    background: #0c1814;
  }
  
  .cookie-settings-content {
    background: #0c1814;
  }
}

/* ============================================
   AUTOFILL
   ============================================ */

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px #0c1814 inset;
  transition: background-color 5000s ease-in-out 0s;
}

input:autofill {
  background: #0c1814;
  color: white;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

.text-balance {
  text-wrap: balance;
}

.text-readable {
  max-width: 65ch;
  line-height: 1.6;
}

.font-smoothing {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   IMAGENS
   ============================================ */

img {
  max-width: 100%;
  height: auto;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* ============================================
   HIGH DPI
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ebook-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (min-resolution: 2dppx) {
  .ebook-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  .ebook-card:hover {
    transform: none;
  }
  
  .flip-card:hover .flip-inner {
    transform: none;
  }
  
  .form-submit-btn:hover {
    transform: none;
  }
  
  .ebook-buy-button,
  .form-submit-btn,
  #exploreMaterialsBtn,
  .social-button,
  .cookie-btn {
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
    tap-highlight-color: rgba(16, 185, 129, 0.3);
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: #10b981;
}

/* ============================================
   NOVOS ESTILOS PARA A LISTA DE PRESENTES
   ============================================ */

.gift-list {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
  max-width: 550px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.gift-list:hover {
  border-color: #10b981;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.08);
}

.gift-list-header {
  color: #0c1814;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-align: center;
  background: #f3f4f6;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 1px solid #e5e7eb;
}

.gift-items-container {
  display: block;
}

.gift-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.gift-item-row:last-child {
  border-bottom: none;
}

.gift-item-title {
  font-weight: 800;
  color: #0c1814;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 85px;
  background: #f0fdf4;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #bbf7d0;
}

.gift-item-desc {
  color: #0c1814;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}

@media (max-width: 640px) {
  .gift-list {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }
  
  .gift-list-header {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    white-space: normal;
    text-align: center;
  }
  
  .gift-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.8rem 0;
  }
  
  .gift-item-title {
    min-width: auto;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  
  .gift-item-desc {
    font-size: 0.9rem;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .gift-list {
    padding: 1rem 0.75rem;
  }
  
  .gift-list-header {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.75rem;
  }
  
  .gift-item-desc {
    font-size: 0.85rem;
  }
}

.gift-item-row {
  *zoom: 1;
}
.gift-item-row:before,
.gift-item-row:after {
  display: table;
  content: "";
  line-height: 0;
}
.gift-item-row:after {
  clear: both;
}

/* ============================================
   ESTILOS PARA STATUS DO FORMULÁRIO
   ============================================ */

.article-newsletter-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 50px;
  text-align: center;
  display: none;
  font-size: 0.9rem;
}

.article-newsletter-status.success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  display: block;
}

.article-newsletter-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  display: block;
}

/* ============================================
   FIM DO ARQUIVO
   ============================================ */