/* Blog Styles */

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  line-height: 1.6;
}

/* Categories Navigation */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.category-link {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 20px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  transition: all 0.2s;
}

.category-link:hover,
.category-link.active {
  background: #007bff;
  color: white;
}

/* Blog Posts Grid */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

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

.post-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e7f3ff;
  color: #007bff;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.post-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-title a:hover {
  color: #007bff;
}

.post-excerpt {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.post-read-more:hover {
  text-decoration: underline;
}

/* Individual Post Page */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-category-badge {
  margin-bottom: 1rem;
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e7f3ff;
  color: #007bff;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.category-badge:hover {
  background: #007bff;
  color: white;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.post-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
}

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

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

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

.post-body a {
  color: #007bff;
  text-decoration: underline;
}

.post-body a:hover {
  color: #0056b3;
}

.post-body code {
  background: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-body pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body blockquote {
  border-left: 4px solid #007bff;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #495057;
  font-style: italic;
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.post-cta {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.post-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-cta p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Blog Footer */
.blog-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.back-link {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #007bff;
}

.no-posts {
  text-align: center;
  color: #6c757d;
  font-size: 1.2rem;
  padding: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

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

  .blog-container {
    padding: 1rem;
  }
}
