/* Blog Specific Styles */

/* Blog Header */
.blog-header {
  padding: 140px 0 60px;
}

.blog-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-header p {
  color: var(--gray);
  font-size: 1rem;
}

/* Blog List */
.blog-list {
  padding: 40px 0 80px;
}

.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.post-card:first-child {
  padding-top: 0;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card:hover {
  opacity: 0.7;
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.post-card .post-meta {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.post-card .post-description {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Blog Post */
.blog-post {
  padding: 120px 0 80px;
}

.back-link {
  display: inline-block;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}

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

/* Post Content Styling */
#post-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

#post-content .post-date {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 40px;
  display: block;
}

#post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

#post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

#post-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

#post-content ul, #post-content ol {
  color: var(--gray);
  margin-bottom: 20px;
  padding-left: 24px;
}

#post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

#post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  border: 1px solid var(--border);
}

#post-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: var(--light-gray);
  padding: 2px 6px;
  border-radius: 4px;
}

#post-content pre {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}

#post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

#post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--gray);
  font-style: italic;
}

#post-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#post-content a:hover {
  opacity: 0.7;
}

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

/* Empty state */
.no-posts {
  color: var(--gray);
  text-align: center;
  padding: 60px 0;
}

/* Active nav link */
.nav-links a.active {
  color: var(--black);
}

/* Loading state */
.loading {
  color: var(--gray);
  font-style: italic;
}
