/* =====================================================
   BLOG DETAY — EDITORIAL LAYOUT
   ===================================================== */

/* ----- Header ----- */
.bd-header {
  padding-top: 60px;
  padding-bottom: 52px;
}

.bd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.bd-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--at-neutral-700, #888);
  letter-spacing: 0.01em;
}

.bd-meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.bd-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--tj-color-heading-primary, #0a0a0a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bd-cat:hover {
  opacity: 0.75;
  color: #fff;
}

/* Başlık: sitenin kendi büyük font skalasını kullan */
.bd-title {
  text-transform: none !important;  /* services sayfasında uppercase ama blog'da daha doğal */
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  margin-bottom: 36px;
  max-width: 14ch;
}

/* Excerpt + Yazar yan yana */
.bd-subrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--tj-color-border-1, #e5e5e5);
}

.bd-excerpt {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--at-neutral-700, #555);
  margin: 0;
}

.bd-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bd-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--at-neutral-200, #eee);
}

.bd-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-author strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--tj-color-heading-primary, #0a0a0a);
  white-space: nowrap;
}

.bd-author span {
  font-size: 12px;
  color: var(--at-neutral-700, #999);
  white-space: nowrap;
}

/* ----- Hero Görsel ----- */
.bd-hero-wrap {
  overflow: hidden;
  background: var(--at-neutral-900, #111);
  border-radius: 16px;
  margin: 0 var(--bs-gutter-x, 24px);
}

.bd-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

@media (max-width: 767px) {
  .bd-hero-img { max-height: 320px; }
  .bd-hero-wrap { margin: 0 16px; border-radius: 12px; }
}

/* ----- Makale Gövdesi ----- */
.bd-body {
  padding-top: 80px;
  padding-bottom: 100px;
}

.bd-body-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  max-width: 1600px;
}

/* Sol aside: boş ama isteğe bağlı süsleme */
.bd-aside {
  padding-top: 6px;
  position: relative;
}

.bd-aside::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--tj-color-border-1, #e5e5e5);
}

/* Makale tipografisi: main.css'in tj_blog_details'ini kullan, üstüne ekle */
.bd-article {
  padding-bottom: 0;
}

.bd-article h2 {
  font-size: clamp(22px, 2.4vw, 32px) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  margin-top: 56px !important;
  margin-bottom: 18px !important;
}

.bd-article p {
  margin-bottom: 22px !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: var(--at-neutral-700, #444) !important;
}

/* Lead paragraf */
.bd-lead {
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  color: var(--tj-color-heading-primary, #0a0a0a) !important;
  margin-bottom: 48px !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid var(--tj-color-border-1, #e5e5e5) !important;
}

/* Alıntı */
.bd-quote {
  margin: 52px 0 !important;
  padding: 0;
  border: none;
  position: relative;
}

.bd-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: -8px;
  font-size: 120px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--tj-color-heading-primary, #0a0a0a);
  opacity: 0.08;
  pointer-events: none;
}

.bd-quote p {
  font-size: clamp(20px, 2.2vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.02em !important;
  color: var(--tj-color-heading-primary, #0a0a0a) !important;
  font-style: italic;
  margin: 0 0 12px !important;
}

.bd-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--at-neutral-700, #999);
}

/* Etiketler */
.bd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--tj-color-border-1, #e5e5e5);
}

.bd-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--tj-color-border-1, #ddd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--at-neutral-700, #666);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

/* ----- İlişkili Yazılar ----- */
.bd-related {
  padding: 80px 0;
  border-top: 1px solid var(--tj-color-border-1, #e5e5e5);
}

.bd-related-header {
  margin-bottom: 40px;
}

.bd-related-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--at-neutral-700, #999);
}

.bd-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--tj-color-border-1, #e5e5e5);
  border: 1px solid var(--tj-color-border-1, #e5e5e5);
  border-radius: 20px;
  overflow: hidden;
}

.bd-related-card {
  display: flex;
  gap: 0;
  background: var(--at-neutral-0, #fff);
  text-decoration: none;
  transition: background 0.25s ease;
  overflow: hidden;
}

.bd-related-card:hover {
  background: var(--tj-color-theme-bg-2, #f7f5f2);
}

.bd-related-img {
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--at-neutral-900, #111);
}

.bd-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bd-related-card:hover .bd-related-img img {
  transform: scale(1.06);
}

.bd-related-info {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.bd-related-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bd-related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-neutral-700, #999);
}

.bd-related-date {
  font-size: 12px;
  color: var(--at-neutral-700, #bbb);
  font-weight: 500;
  white-space: nowrap;
}

.bd-related-info h3 {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--tj-color-heading-primary, #0a0a0a);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bd-related-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--tj-color-heading-primary, #0a0a0a);
  font-size: 14px;
  align-self: flex-end;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.bd-related-card:hover .bd-related-arrow {
  background: var(--tj-color-heading-primary, #0a0a0a);
  color: #fff;
  transform: rotate(-45deg);
}

/* ----- Önceki / Sonraki ----- */
.bd-nav {
  padding: 60px 0 100px;
}

.bd-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--tj-color-border-1, #e5e5e5);
}

.bd-nav-prev,
.bd-nav-next {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-nav-next {
  align-items: flex-end;
  text-align: right;
}

.bd-nav-link {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.bd-nav-link--right {
  align-items: flex-end;
}

.bd-nav-dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-neutral-700, #aaa);
  transition: color 0.2s ease;
}

.bd-nav-link:hover .bd-nav-dir {
  color: var(--tj-color-heading-primary, #0a0a0a);
}

.bd-nav-ttl {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--tj-color-heading-primary, #0a0a0a);
  max-width: 280px;
  display: block;
}

.bd-nav-all {
  flex-shrink: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1199px) {
  .bd-body-inner {
    grid-template-columns: 140px 1fr;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .bd-body-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bd-aside {
    display: none;
  }

  .bd-title {
    max-width: 100%;
  }

  .bd-related-img {
    width: 110px;
  }
}

@media (max-width: 767px) {
  .bd-subrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

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

  .bd-nav-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bd-nav-next {
    align-items: flex-start;
    text-align: left;
  }

  .bd-nav-link--right {
    align-items: flex-start;
  }

  .bd-nav-all {
    justify-self: flex-start;
  }

  .bd-quote::before {
    font-size: 80px;
  }
}

@media (max-width: 575px) {
  .bd-body {
    padding-top: 56px;
    padding-bottom: 70px;
  }

  .bd-hero-img {
    aspect-ratio: 4 / 3;
  }

  .bd-related-img {
    display: none;
  }

  .bd-related-info {
    padding: 24px 20px;
  }

  .bd-related {
    padding: 60px 0;
  }

  .bd-nav {
    padding-bottom: 70px;
  }
}
