/* ========== Blog Listing ========== */
.blog-listing {
  padding: 140px 0 80px;
  min-height: 60vh;
}

.blog-listing-header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-listing-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-listing-description {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  display: block;
}

.blog-card:hover {
  border-color: rgba(237, 15, 36, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-empty {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  padding: 60px 0;
}

/* ========== Blog Article ========== */
.blog-article {
  padding: 140px 0 80px;
}

.blog-article .container {
  max-width: 720px;
}

.blog-article-header {
  margin-bottom: 48px;
}

.blog-back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.blog-back:hover {
  color: var(--accent);
}

.blog-article-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Blog Content (Markdown) ========== */
.blog-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  line-height: 1.3;
}

.blog-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-left: 24px;
  line-height: 1.8;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

.blog-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-content pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.blog-content pre code {
  background: none;
  padding: 0;
}

.blog-content img {
  border-radius: 12px;
  margin: 32px 0;
}

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

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

.blog-content strong {
  color: var(--text);
  font-weight: 600;
}

.blog-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .blog-cards {
    grid-template-columns: 1fr;
  }

  .blog-listing {
    padding: 120px 0 60px;
  }

  .blog-article {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .blog-card {
    padding: 24px;
  }
}
