/* ===== BLOG LISTING PAGE ===== */
.blog-listing {
  padding: 120px 0 80px;
}

.blog-listing-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.blog-listing-card {
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--transition);
}

.blog-listing-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
}

.blog-listing-card time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-listing-card h2 {
  font-size: 1.25rem;
  margin: 12px 0;
}

.blog-listing-card h2 a {
  transition: opacity var(--transition);
}

.blog-listing-card h2 a:hover {
  opacity: 0.7;
}

.blog-listing-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.blog-listing-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-listing-card .read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-listing-card .read-more:hover {
  color: var(--text-primary);
  opacity: 1;
}

.blog-listing-card .read-more::after {
  content: ' ->';
}

/* ===== BLOG POST DETAIL ===== */
.post-detail {
  padding: 120px 0 80px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-header time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.post-header .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-body {
  max-width: 720px;
}

.post-body h2 {
  font-size: 1.4rem;
  margin: 48px 0 16px;
}

.post-body h2::before {
  content: '## ';
  color: var(--text-muted);
}

.post-body h3 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.post-body li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-body strong, .post-body b {
  color: var(--text-primary);
  font-weight: 600;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.post-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-back {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-back::before {
  content: '<- ';
}

.post-back:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* Comments */
.comments-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comments-section h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .post-header h1 {
    font-size: 1.75rem;
  }
}
