/**
 * Blog-Specific Styles
 * Minimalist academic design, consistent with site
 */

/* Blog Post Container */
.post-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
}

/* Blog Post Header */
.post-header {
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
}

.post-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

[data-theme="dark"] .post-title { color: var(--text-color); }

.post-meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-tags {
  margin-top: 4px;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 2px 8px;
  font-size: 12px;
  margin: 0 4px 0 0;
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .tag {
  background: #2a2a2a;
  color: var(--text-color);
  border-color: #374151;
}

/* Blog Post Content */
.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

[data-theme="dark"] .post-content { color: var(--text-color); }

.post-content h1 {
  font-size: 22px;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 18px;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 16px;
  color: #1a1a1a;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

[data-theme="dark"] .post-content h1,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3 { color: var(--text-color); }
[data-theme="dark"] .post-content h1 { border-bottom-color: #374151; }

.post-content p {
  margin-bottom: 12px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 12px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 4px;
}

.post-content code {
  background: #f3f4f6;
  padding: 1px 4px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
}

[data-theme="dark"] .post-content code {
  background: #2a2a2a;
  color: #e5e7eb;
}

.post-content pre {
  background: #f9fafb;
  padding: 12px 16px;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .post-content pre {
  background: #1e1e1e;
  border-color: #374151;
}

/* Blog Navigation */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #1a1a1a;
}

[data-theme="dark"] .back-link { color: #888; }
[data-theme="dark"] .back-link:hover { color: var(--text-color); }

/* Blog List Styles */
.blog-post {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-title {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

[data-theme="dark"] .blog-title { color: var(--text-color); }

.blog-meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 4px;
}

.blog-meta span {
  margin-right: 10px;
}

.blog-tags {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 13px;
}

.blog-excerpt {
  margin-bottom: 4px;
  font-size: 14px;
  color: #374151;
}

[data-theme="dark"] .blog-excerpt { color: var(--text-color); }

.read-more {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Coming Soon Message */
.coming-soon {
  text-align: left;
  padding: 20px 0;
  color: #6b7280;
}

.coming-soon h2 {
  color: #1a1a1a;
  font-size: 18px;
  margin-bottom: 8px;
}

[data-theme="dark"] .coming-soon { color: #888; }
[data-theme="dark"] .coming-soon h2 { color: var(--text-color); }

/* Responsive Design */
@media screen and (max-width: 768px) {
  .post-content h1 {
    font-size: 20px;
  }

  .post-content h2 {
    font-size: 16px;
  }

  .post-content h3 {
    font-size: 16px;
  }
}
