/* Blog Detail Styles */
.blog-detail-main {
  padding-top: 100px;
  min-height: 100vh;
}

/* Nav brand link fix */
.nav-brand a {
  text-decoration: none;
  color: inherit;
}

.nav-brand a:hover {
  color: inherit;
}

/* Logo subtitle spacing fix */
.nav-brand h1 {
  margin-bottom: 0.125rem;
}

.nav-subtitle {
  margin-top: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem; /* Üst boşluk eklendi */
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

/* Blog Detail */
.blog-detail {
  max-width: 1200px; /* 1000px'den 1200px'e çıkarıldı */
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 4rem;
}

.blog-detail-header {
  padding: 3rem 5rem 2rem; /* 4rem'den 5rem'e çıkarıldı */
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-category-tag {
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.blog-read-time {
  color: #6b7280;
  font-size: 0.875rem;
  padding-left: 1rem;
  border-left: 1px solid #d1d5db;
}

.blog-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-detail-excerpt {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* Featured Image */
.blog-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

/* Blog Content */
.blog-detail-content {
  padding: 3rem 5rem; /* 4rem'den 5rem'e çıkarıldı */
  line-height: 1.8;
  color: #374151;
}

.blog-detail-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.blog-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 1rem;
}

.blog-detail-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.blog-detail-content li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.blog-detail-content strong {
  color: #1f2937;
  font-weight: 600;
}

/* Code Block */
.code-block {
  background: #1f2937;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: #e5e7eb;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-block code {
  color: #e5e7eb;
}

/* Blog Footer */
.blog-detail-footer {
  padding: 2rem 5rem 3rem; /* 4rem'den 5rem'e çıkarıldı */
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.blog-tags {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tag-label {
  font-weight: 600;
  color: #374151;
}

.blog-tag {
  background: #e5e7eb;
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: #2563eb;
  color: white;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: #374151;
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.whatsapp {
  background: rgb(37, 211, 102);
  color: white;
}

.share-btn.email {
  background: #333;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
  margin-bottom: 4rem;
}

.related-posts .section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

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

.related-post-content {
  padding: 1.5rem;
}

.related-post-category {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.related-post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
}

.related-post-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.related-post-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.related-post-link:hover {
  color: #1d4ed8;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-detail-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .blog-detail-title {
    font-size: 2rem;
  }

  .blog-detail-content {
    padding: 2rem 1.5rem;
  }

  .blog-detail-footer {
    padding: 1.5rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-read-time {
    padding-left: 0;
    border-left: none;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-detail-title {
    font-size: 1.75rem;
  }

  .blog-detail-content h2 {
    font-size: 1.5rem;
  }

  .blog-detail-content p,
  .blog-detail-content li {
    font-size: 1rem;
  }

  .code-block {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}
