/* Clara Blog — Shared Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060b14;
  --bg-card: #0d1526;
  --bg-card2: #111f36;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dim: #065f46;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-secondary: #cbd5e1;
  --border: #1e293b;
  --border-accent: #134e4a;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-light); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #059669 !important; text-decoration: none !important; }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ARTICLE HERO */
.article-hero {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.article-hero .hero-badge { margin-bottom: 1rem; }
.article-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* GRID */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0 4rem;
}

/* CARD */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); text-decoration: none; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* ARTICLE BODY */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.article-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--accent-light);
}
.article-body p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent-light); }

/* CALLOUT */
.callout {
  background: var(--bg-card2);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--text-secondary); }
.callout strong { color: var(--accent-light); }

/* TABLE */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg-card2); color: var(--accent-light); font-weight: 600; padding: 0.75rem 1rem; text-align: left; }
td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* CTA BLOCK */
.cta-block {
  background: linear-gradient(135deg, #0d1f2d 0%, #0a1628 100%);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-block h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: background 0.2s;
  text-decoration: none;
}
.cta-btn:hover { background: #059669; text-decoration: none; }

/* BREADCRUMB */
.breadcrumb {
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); text-decoration: none; }
.breadcrumb span { color: var(--text-muted); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent-light); }

/* SHARE BAR */
.share-bar {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #0d1526;
  border: 1px solid #1e3a5f;
  border-radius: 14px;
}
.share-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  background: #060b14;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.share-btn:hover { background: #1e3a5f; color: #f1f5f9; border-color: #2d5a8e; }
.share-native { border-color: #10b981; color: #10b981; }
.share-native:hover { background: #10b981; color: #fff; }
.share-whatsapp { border-color: #25d366; color: #25d366; }
.share-whatsapp:hover { background: #25d366; color: #fff; }
.share-instagram { border-color: #e1306c; color: #e1306c; }
.share-instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; border-color: transparent; }
.share-wa-story { border-color: #25d366; color: #25d366; }
.share-wa-story:hover { background: #25d366; color: #fff; }

/* HIGHLIGHT BOX (code/strategy examples) */
.highlight-box {
  background: #060e1c;
  border: 1px solid #1e3a5f;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.highlight-box code {
  background: #0d1f35;
  color: #7dd3fc;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1.5rem 0; }
.comparison-table th { background: #0d1f35; color: var(--accent-light); font-weight: 600; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--border-accent); }
.comparison-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: #060e1c; }

/* CTA BOX */
.cta-box {
  background: linear-gradient(135deg, #0d1f2d 0%, #0a1628 100%);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h3 { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.cta-box p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: background 0.2s;
  text-decoration: none;
}
.cta-button:hover { background: #059669; text-decoration: none; }

/* ARTICLE NAV (further reading) */
.article-nav { margin: 3rem 0 1.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.article-nav h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.article-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.article-nav li::before { content: "→ "; color: var(--accent); }
.article-nav a { color: var(--accent-light); font-size: 0.92rem; }
.article-nav a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav { padding: 0.85rem 1rem; }
  .nav-links { gap: 0.75rem; }
  /* Esconde links secundarios no mobile, mantém só Blog e CTA */
  .nav-links a:not(.nav-cta):not([href="/blog/"]):not([href*="blog"]) {
    display: none;
  }
  .posts-grid { grid-template-columns: 1fr; padding: 2rem 0 3rem; }
  .share-bar { padding: 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .article-body { padding: 0 1rem 3rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
}
