/* ==========================================================================
   NUVINHA - ARTIGOS & GUIA EDITORIAL STYLESHEET
   Otimizado para Leiturabilidade, SEO, GEO (AI Overviews) e Conversão ASO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --bg-dark: #050b18;
  --bg-surface: #0a1329;
  --bg-card: rgba(16, 29, 61, 0.75);
  --bg-card-hover: rgba(22, 40, 82, 0.9);
  --bg-glass: rgba(12, 23, 49, 0.7);
  
  --primary: #38bdf8;
  --primary-light: #7dd3fc;
  --primary-dark: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.25);
  
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.3);
  --accent-purple: #a855f7;
  --accent-green: #34d399;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -15px rgba(2, 6, 23, 0.7);
  --shadow-glow: 0 0 35px var(--primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-dark);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Barra de progresso de leitura */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold), var(--accent-purple));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Background com estrelas e gradiente cósmico */
.article-bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1), transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.08), transparent 60%),
    #050b18;
}

/* Header / Barra de Navegação */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 11, 24, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #03132e !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* Container do Artigo */
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

/* Breadcrumbs (Navegação estrutural para SEO) */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-light);
}

.breadcrumbs span.separator {
  opacity: 0.4;
}

.breadcrumbs span.current {
  color: var(--primary-light);
  font-weight: 600;
}

/* Cabeçalho do Artigo */
.article-header {
  margin-bottom: 36px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.95rem;
  }
}

.article-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #0f1f45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.meta-author-info strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

.meta-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .meta-reading-time {
    margin-left: 0;
  }
}

/* Imagem de Capa Principal */
.article-hero-figure {
  margin: 32px 0 44px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(56, 189, 248, 0.15);
  border: 1px solid var(--border-glass);
  position: relative;
}

.article-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-hero-caption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(10, 19, 41, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bloco GEO / AI Direct Answer (O segredo para o Google AI Overviews) */
.geo-direct-answer {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 0 0 40px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.geo-direct-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.geo-direct-answer p {
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

/* Índice de Conteúdo (Table of Contents) */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 44px;
  backdrop-filter: blur(12px);
}

.toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.toc-list li a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.toc-list li a::before {
  content: '→';
  color: var(--primary);
  font-size: 0.85rem;
}

/* Corpo do Texto Editorial */
.article-content {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 26px;
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 52px 0 20px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 36px 0 16px;
  line-height: 1.35;
}

.article-content ul, .article-content ol {
  margin: 0 0 28px 24px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-content strong {
  color: #ffffff;
  font-weight: 700;
}

/* Card de Destaque Científico / E-E-A-T */
.eeat-callout {
  background: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 22px;
  margin: 32px 0;
  position: relative;
}

.eeat-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.eeat-callout p {
  font-size: 0.98rem;
  margin: 0;
  color: #e2e8f0;
}

/* Bloco da Ilustração da Rotina dos 4 Passos */
.routine-diagram-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px;
  margin: 44px 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.routine-diagram-box img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto 16px;
  border: 1px solid var(--border-subtle);
}

.routine-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.routine-step-card {
  background: rgba(10, 19, 41, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.routine-step-num {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.routine-step-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.routine-step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Tabela Comparativa (Telas vs Áudio) */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(15, 26, 54, 0.95);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .feature-col {
  color: var(--text-main);
  font-weight: 600;
  width: 28%;
}

.comparison-table .bad-col {
  background: rgba(239, 68, 68, 0.06);
  color: #fca5a5;
  width: 36%;
}

.comparison-table .good-col {
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
  width: 36%;
}

/* Card CTA de Conversão do App Nuvinha */
.app-cta-banner {
  background: linear-gradient(135deg, #0e244d 0%, #173873 50%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin: 50px 0;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 15px 40px rgba(3, 105, 161, 0.25);
  position: relative;
  overflow: hidden;
}

.app-cta-banner::before {
  content: '✨';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 38px;
  opacity: 0.25;
}

.app-cta-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 26px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-cta-info {
  flex: 1;
}

.app-cta-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 800;
}

.app-cta-info p {
  font-size: 0.98rem;
  color: #e0f2fe;
  line-height: 1.55;
  margin: 0 0 16px;
}

.app-cta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-playstore-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #03132e !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-playstore-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.cta-highlight-badge {
  font-size: 0.82rem;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
  .app-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .app-cta-badges {
    justify-content: center;
  }
}

/* Accordion de FAQ (Perguntas Frequentes do Google) */
.faq-section {
  margin: 50px 0;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] .faq-summary::after {
  content: '−';
  color: var(--accent-gold);
}

.faq-content {
  padding: 0 22px 20px;
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* Caixa de Compartilhamento */
.share-box {
  background: rgba(15, 26, 54, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.share-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border-color: rgba(37, 211, 102, 0.3);
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Footer Editorial */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #030814;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}
