/* ── Blog Yazıları Sayfası ── */

/* Hero Banner */
.bl-hero {
  margin-top: var(--nav-h);
  height: 551px;
  overflow: hidden;
  background: #111;
}

.bl-hero__img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Main container */
.bl-main {
  background: #fff;
}

.bl-section {
  padding: var(--section-y) 0 calc(var(--section-y) * 1.5);
}

.bl-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Section header */
.bl-section__header {
  margin-bottom: 64px;
}

.bl-section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: var(--dark-warm);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Blog grid — 3 columns */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog card */
.bl-card {
  display: flex;
  flex-direction: column;
}

.bl-card__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.bl-card__link:hover .bl-card__img {
  transform: scale(1.04);
}

/* Image wrap with grayscale overlay effect */
.bl-card__img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #fff;
  margin-bottom: 0;
}

.bl-card__img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* White saturation overlay = desaturate / B&W */
.bl-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  mix-blend-mode: saturation;
  pointer-events: none;
}

.bl-card__category {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-50);
  margin-top: 4px;
}

.bl-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-70);
}

.bl-card__excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-70);
  padding-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bl-hero {
    height: 280px;
  }

  .bl-section__header {
    margin-bottom: 40px;
  }

  .bl-grid {
    grid-template-columns: 1fr;
  }

  .bl-card__img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .bl-card__img {
    height: 180px;
  }
}

/* Loading / empty */
.bl-loading {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}
.bl-loading__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bl-spin 0.7s linear infinite;
}
@keyframes bl-spin { to { transform: rotate(360deg); } }

.bl-empty {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-50);
  padding: 60px 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .bl-card__link:hover .bl-card__img {
    transform: none;
  }
  .bl-loading__spinner { animation: none; }
}

/* ──────────────────────────────────────────────
   BLOG DETAIL PAGE  (bd-*)
   ────────────────────────────────────────────── */

/* Hero image */
.bd-hero {
  margin-top: var(--nav-h);
  height: 450px;
  overflow: hidden;
}
.bd-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .bd-hero { height: 240px; }
}

/* Main content area */
.bd-main {
  background: #fff;
  padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 8vw, 120px);
}

.bd-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Back link */
.bd-back-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-50);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--ease);
}
.bd-back-link:hover { color: var(--dark-warm); }

/* Category */
.bd-category {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 12px;
}

/* Title */
.bd-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--dark-warm);
  margin-bottom: 12px;
}

/* Date */
.bd-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-50);
  margin-bottom: 40px;
}

/* Cover image */
.bd-cover-wrap {
  margin-bottom: 48px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.bd-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article body */
.bd-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-70);
}
.bd-body p  { margin-bottom: 20px; }
.bd-body h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--dark-warm);
  margin: 40px 0 16px;
}
.bd-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--dark-warm);
  margin: 32px 0 12px;
}
.bd-body ul, .bd-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.bd-body li { margin-bottom: 8px; }
.bd-body strong { color: var(--dark-warm); }
.bd-body a { color: var(--gold-hover); text-decoration: underline; }
.bd-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-50);
  font-style: italic;
}

/* Loading state */
.bd-loading {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}
.bd-loading__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bl-spin 0.7s linear infinite;
}

/* Not found */
.bd-notfound {
  text-align: center;
  padding: 80px 0;
}
.bd-notfound__code {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 700;
  color: var(--border-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.bd-notfound__msg {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-50);
  margin-bottom: 32px;
}

/* Prev / Next post navigation */
.bd-post-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.bd-post-nav__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--dark-warm);
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  flex: 1;
  min-width: 0;
  transition: border-color var(--ease), background var(--ease);
}
.bd-post-nav__item:hover { border-color: var(--gold); background: rgba(233,193,118,0.05); }

.bd-post-nav__item--next { justify-content: flex-end; text-align: right; }

.bd-post-nav__item--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.bd-post-nav__arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-warm);
  transition: border-color var(--ease), background var(--ease);
}
.bd-post-nav__item:hover .bd-post-nav__arrow {
  border-color: var(--gold);
  background: rgba(233,193,118,0.1);
}

.bd-post-nav__texts {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.bd-post-nav__texts--right { align-items: flex-end; }

.bd-post-nav__label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-50);
}

.bd-post-nav__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-warm);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .bd-post-nav { flex-direction: column; }
  .bd-post-nav__item--next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .bd-post-nav__texts--right { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-loading__spinner { animation: none; }
}
