/* Carreira ID — Blog (páginas estáticas, fora do bundle React) */

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

:root {
  --bg: hsl(220 15% 8%);
  --bg-card: hsl(220 15% 12%);
  --border: hsl(220 10% 20%);
  --text: hsl(0 0% 95%);
  --text-muted: hsl(0 0% 60%);
  --text-faint: hsl(0 0% 45%);
  --accent: hsl(25 95% 55%);
  --accent-soft: hsl(25 95% 55% / 0.15);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: hsl(220 15% 8% / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.blog-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.blog-header__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.blog-header__cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.blog-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Listing (blog/index.html) ---------- */

.blog-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 4rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blog-card__image {
  aspect-ratio: 3 / 2;
  background: var(--border);
  object-fit: cover;
  width: 100%;
}

.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card__category {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card__meta {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

/* ---------- Article page ---------- */

.breadcrumb {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.breadcrumb a:hover { color: var(--accent); }

.article-header {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header__category {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.article-header__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-cover {
  width: 100%;
  border-radius: 16px;
  margin: 2rem 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: hsl(0 0% 88%);
}

.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 1rem;
}

.article-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.75rem;
}

.article-prose p { margin: 0 0 1.2rem; }

.article-prose ul, .article-prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.article-prose li { margin-bottom: 0.5rem; }

.article-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.article-prose th, .article-prose td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.article-prose th {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-card);
}

.article-prose tr:last-child td { border-bottom: none; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.table-wrap table {
  margin-bottom: 0;
}

.article-prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

.article-prose img {
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Assinatura profissional ao final do artigo (E-E-A-T) */
.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.article-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.article-author__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.article-author__role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* CTA final convidando pro app */
.article-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.article-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.article-cta p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article-cta a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.blog-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.blog-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.blog-footer__links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .blog-header { padding: 0.75rem 1rem; }
  .blog-container { padding: 0 1rem; }
}
