/* ═══════════════════════════════════════════════════
   Achify Blog — Design System
   Compartilhado entre todas as páginas de conteúdo
   ═══════════════════════════════════════════════════ */

:root {
  --orange: #FF4D00;
  --orange-light: #FF6B2B;
  --purple: #7C3AED;
  --green: #10B981;
  --bg: #08080f;
  --bg-card: #111118;
  --bg-surface: #16161f;
  --text: #e8e8f0;
  --text-muted: #9898a8;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --max-w: 800px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────── */
.blog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ───────────────────────────────────── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.blog-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.blog-nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.blog-nav-cta:hover { opacity: 0.9; }

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--orange);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── Article Header ────────────────────────── */
.article-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.article-badge {
  display: inline-block;
  background: rgba(255,77,0,0.12);
  color: var(--orange);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Righteous', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ── Article Body ──────────────────────────── */
.article-body h2 {
  font-family: 'Righteous', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.article-body strong { color: #fff; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.article-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--orange-light); }

/* ── Tables ────────────────────────────────── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th {
  background: var(--bg-surface);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--orange);
}

.article-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.article-body tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Callout boxes ─────────────────────────── */
.callout {
  background: var(--bg-surface);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout.green { border-left-color: var(--green); }
.callout.purple { border-left-color: var(--purple); }

.callout strong { color: #fff; display: block; margin-bottom: 0.3rem; }
.callout p { margin-bottom: 0; font-size: 0.95rem; }

/* ── CTA Box ───────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, rgba(255,77,0,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(255,77,0,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-box h3 {
  font-family: 'Righteous', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cta-box .btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,77,0,0.3);
}

/* ── Footer ────────────────────────────────── */
.blog-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.blog-footer a:hover { color: var(--orange); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .article-header { padding: 2rem 0 1.5rem; }
  .article-body h2 { font-size: 1.3rem; }
  .cta-box { padding: 1.5rem; }
  .article-body table { font-size: 0.85rem; }
  .article-body th, .article-body td { padding: 0.5rem 0.6rem; }
}
