/* Blog-specific styles */

/* Container for blog content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Blog header */
.blog-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Blog post article */
.blog-post {
  padding: 3rem 0;
  background: var(--color-white);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}

/* Blog post body */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.post-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  color: var(--color-text);
  line-height: 1.3;
}

.post-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
  line-height: 1.4;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.75rem;
}

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

.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--color-primary-dark);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.post-body figure {
  margin: 2rem 0;
}

.post-body figcaption {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.75rem;
}

.post-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

.post-body code {
  background: var(--color-background);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.post-body pre {
  background: var(--color-background);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

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

/* Blog index */
.blog-index {
  padding: 3rem 0;
}

.blog-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.blog-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .post-content {
    padding: 0 1.25rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body .lead {
    font-size: 1.1rem;
  }

  .post-body h2 {
    font-size: 1.5rem;
  }

  .post-body h3 {
    font-size: 1.25rem;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
