/* ================================================
   ZapVox Blog — Styles
   Extends landing.css design system
   ================================================ */

/* ---- Blog Hero ---- */
.blog-hero {
  padding: 100px 0 40px;
  text-align: center;
  background: var(--bg-primary);
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.blog-hero h1 span {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero > .container > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---- Category Filter ---- */
.blog-categories {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
}

.cat-btn.active {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}

/* ---- Blog Grid ---- */
.blog-grid-section {
  padding: 40px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-placeholder-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card.featured .blog-placeholder-img {
  height: 100%;
  min-height: 280px;
}

.blog-card-body {
  padding: 20px 24px 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-produto { background: var(--green-light); color: var(--green-700); }
.tag-tutorial { background: #dbeafe; color: #1d4ed8; }
.tag-ia { background: #ede9fe; color: #6d28d9; }
.tag-produtividade { background: #fef3c7; color: #b45309; }

.blog-card-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card.featured .blog-card-body h2 {
  font-size: 1.5rem;
}

.blog-card-body h2 a {
  color: var(--text-primary);
  transition: var(--transition);
}

.blog-card-body h2 a:hover {
  color: var(--green-600);
}

.blog-card-body > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.read-time {
  color: var(--text-muted);
}

/* ---- Newsletter CTA ---- */
.blog-newsletter {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.blog-newsletter h3 {
  color: var(--text-inverse);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.blog-newsletter p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.nl-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-dark-2);
  color: var(--text-inverse);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.nl-input::placeholder { color: var(--text-muted); }
.nl-input:focus { outline: 2px solid var(--green-500); border-color: transparent; }

.nl-btn { white-space: nowrap; }

/* ---- Article Page ---- */
.blog-article {
  padding: 100px 0 60px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-link:hover { color: var(--green-600); }

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-header h1 span {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.article-header .blog-author {
  gap: 10px;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-cover {
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.cover-content {
  font-size: 4rem;
  color: white;
  font-weight: 800;
}

/* ---- Article Body Typography ---- */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body p { margin-bottom: 20px; }

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.article-body strong { font-weight: 600; }

.article-body ol, .article-body ul {
  margin: 16px 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-body blockquote {
  border-left: 4px solid var(--green-500);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--green-800);
}

.article-body blockquote p { margin-bottom: 0; }

.info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box-header {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.info-box ul {
  margin: 0 0 0 20px;
}

.info-box li { margin-bottom: 6px; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

.cta-box {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---- Share & Article Footer ---- */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.share-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.share-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
}

/* ---- Animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .blog-card.featured { grid-template-columns: 1fr; }
  .blog-card.featured .blog-placeholder-img { min-height: 180px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.6rem; }
  .article-cover { height: 200px; }
  .cover-content { font-size: 2.5rem; }
  .newsletter-form { flex-direction: column; }
  .blog-newsletter { padding: 28px 20px; }
}
