/* =============================================
   BLOG & SINGLE POST STYLES
   ============================================= */

/* Page header */
.page-header {
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-12);
}

.page-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-3);
}

/* Blog layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-12);
  align-items: start;
}

/* Archive grid */
.archive-grid {
  display: grid;
  gap: var(--sp-6);
}

/* Single post */
.post-hero {
  padding: var(--sp-12) 0 var(--sp-8);
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}

.post-hero__cat {
  color: var(--clr-orange);
  font-weight: 600;
}

.post-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-6);
}

.post-hero__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--sp-8);
  aspect-ratio: 16/7;
}

.post-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post content */
.post-content {
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--clr-text);
}

.post-content h2 { margin: var(--sp-8) 0 var(--sp-4); }
.post-content h3 { margin: var(--sp-6) 0 var(--sp-3); }
.post-content p  { margin-bottom: var(--sp-4); }

.post-content a {
  color: var(--clr-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  list-style: initial;
  padding-right: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.post-content blockquote {
  border-right: 3px solid var(--clr-orange);
  padding-right: var(--sp-4);
  margin: var(--sp-8) 0;
  color: var(--clr-text-muted);
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--clr-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  direction: ltr;
  display: inline-block;
}

.post-content pre {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  overflow-x: auto;
  direction: ltr;
  margin-bottom: var(--sp-6);
}

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

/* Sidebar */
.sidebar .widget {
  margin-bottom: var(--sp-6);
}

.widget__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-orange);
  margin-bottom: var(--sp-4);
}

/* Responsive */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .post-hero__title {
    font-size: var(--text-2xl);
  }
}
