/* Blog Post Detail Styles */

.blog-post-content {
  margin: 0 auto 40px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.post-category {
  color: #007bff;
  font-weight: 600;
}

.post-date, .post-author {
  color: #888;
}

.blog-post-header .post-title {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-tags {
  display: flex;
  gap: 10px;
}

.post-tags a {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f8f9fa;
  color: #007bff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background-color: #007bff;
  color: white;
}

.blog-post-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-body {
  margin-bottom: 40px;
}

.post-intro {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.blog-post-body h2 {
  font-size: 1.6rem;
  margin: 30px 0 20px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.blog-post-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.blog-post-body blockquote {
  border-left: 4px solid #007bff;
  padding: 20px;
  margin: 25px 0;
  background-color: #f8f9fa;
  font-style: italic;
  color: #555;
}

.post-callout {
  background-color: #e3f2fd;
  border-left: 4px solid #007bff;
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 4px 4px 0;
}

.post-callout p {
  margin: 0;
  font-size: 1rem;
}

/* Blog Post Footer */
.blog-post-footer {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.post-share span {
  font-weight: 600;
  color: #333;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-3px);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.prev-post, .next-post {
  flex: 1;
}

.prev-post a, .next-post a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
  background-color: #e9ecef;
  transform: translateY(-3px);
}

.prev-post span, .next-post span {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.prev-post h4, .next-post h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #007bff;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 25px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 40px;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.author-info p {
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.author-social {
  display: flex;
  gap: 10px;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-social a:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

/* Related Posts */
.related-posts {
  margin-top: 30px;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.related-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-post-image {
  height: 150px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 15px;
}

.related-post-content .post-date {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.related-post-content h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.related-post-content h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post-content {
    padding: 15px;
  }
  
  .blog-post-header .post-title {
    font-size: 1.8rem;
  }
  
  .post-meta {
    flex-wrap: wrap;
  }
  
  .post-intro {
    font-size: 1.1rem;
  }
  
  .blog-post-body h2 {
    font-size: 1.4rem;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .blog-post-content {
    padding: 10px;
  }
  
  .blog-post-header .post-title {
    font-size: 1.5rem;
  }
  
  .blog-post-body h2 {
    font-size: 1.3rem;
  }
  
  .post-callout, .blog-post-body blockquote {
    padding: 15px;
  }
  
  .author-avatar img {
    width: 80px;
    height: 80px;
  }
}