/* Blog Detail Styles */
.blog-detail-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.blog-detail-header {
  margin-bottom: 40px;
}

.blog-detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content-detail {
  line-height: 1.8;
  color: var(--text-color);
}

.blog-content-detail p {
  margin-bottom: 20px;
}

.blog-content-detail h2 {
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.blog-content-detail h3 {
  margin: 30px 0 15px;
  color: var(--text-color);
}

.blog-content-detail ul,
.blog-content-detail ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-content-detail li {
  margin-bottom: 10px;
}

.blog-content-detail blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-light);
}

.blog-content-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.blog-content-detail a {
  color: var(--primary-color);
  text-decoration: underline;
}

.blog-content-detail a:hover {
  color: var(--primary-dark);
}

.blog-content-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.blog-content-detail table th,
.blog-content-detail table td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
}

.blog-content-detail table th {
  background-color: var(--background-light);
  font-weight: 600;
}

.blog-content-detail code {
  background-color: var(--background-light);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
}

.blog-content-detail pre {
  background-color: var(--background-light);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.blog-content-detail pre code {
  background-color: transparent;
  padding: 0;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
}

.blog-tag {
  background-color: var(--background-light);
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  transition: all var(--transition-speed);
}

.blog-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  margin: 40px 0;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-info h3 {
  margin-bottom: 10px;
}

.author-info p {
  color: var(--text-light);
  margin-bottom: 15px;
}

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

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--background-light);
  color: var(--text-color);
  transition: all var(--transition-speed);
}

.author-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.blog-comments {
  margin-top: 60px;
}

.blog-comments h2 {
  margin-bottom: 30px;
}

.comment {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  color: var(--text-light);
  font-size: 14px;
}

.comment-text {
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-actions a {
  color: var(--text-light);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-actions a:hover {
  color: var(--primary-color);
}

.comment-replies {
  margin-left: 80px;
  margin-top: 30px;
}

.comment-form {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  margin-top: 40px;
}

.comment-form h3 {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 16px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.blog-related {
  margin-top: 60px;
}

.blog-related h2 {
  margin-bottom: 30px;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .related-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-post {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed);
}

.related-post:hover {
  transform: translateY(-10px);
}

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

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

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

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

.related-post-date {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 5px;
}

.related-post-title {
  font-size: 16px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Social Share */
.blog-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
}

.blog-share span {
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-light);
  color: var(--text-color);
  transition: all var(--transition-speed);
}

.share-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .blog-detail-header h1 {
    font-size: 1.8rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .blog-featured-image {
    height: 200px;
  }

  .blog-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .comment {
    flex-direction: column;
    gap: 15px;
  }

  .comment-replies {
    margin-left: 20px;
  }
}

