/* Blog styles */

.blog-post {
  padding: 3rem 0;
}

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

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

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

.blog-header time {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: block;
  margin-bottom: 1rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.blog-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 1.875rem;
  }
  .blog-description {
    font-size: 1.125rem;
  }
}

/* Blog content */
.blog-content {
  line-height: 1.8;
  margin-bottom: 3rem;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.blog-content a:hover {
  opacity: 0.8;
}

.blog-content code {
  background: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.blog-content pre {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-style: italic;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* Lead magnet */
.lead-magnet {
  background: var(--muted);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  text-align: center;
}

.lead-magnet h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.lead-magnet p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

/* Blog footer */
.blog-footer {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* Blog index/grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card time {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card h2 a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.read-more:hover {
  opacity: 0.8;
}
