/* Blog: yazı listesi, arşiv, arama ve tekil yazı.
   Tasarım dili modül/hizmet detaylarıyla ortak: dk-wrap (1200px) tek container,
   yüzey ölçüleri tokens.css'ten (--radius-card / --pad-card). */

/* ---------- Üst bant (liste + arşiv + arama ortak) ---------- */
.dk-blog-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.dk-blog-hero-in { padding-top: 52px; padding-bottom: 34px; }
.dk-blog-lead {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  margin: 14px 0 0; max-width: 620px;
}

/* Kategori filtresi — yatay kaydırılabilir çip şeridi */
.dk-blog-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px;
}
.dk-blog-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--bg);
  border-radius: 999px; padding: 8px 15px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.dk-blog-chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.dk-blog-chip-n { font-size: 11.5px; font-weight: 700; opacity: .65; }
@media (hover: hover) {
  .dk-blog-chip:hover { border-color: var(--accent2); color: var(--accent2-text); }
  .dk-blog-chip.is-active:hover { color: #fff; }
}

/* ---------- Öne çıkan yazı ---------- */
.dk-feature-post {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden; color: inherit;
}
.dk-feature-post-body {
  padding: 34px; display: flex; flex-direction: column; justify-content: center;
}
.dk-feature-post-body h2 {
  font-family: var(--font-head); font-weight: 800; font-size: 28px;
  letter-spacing: -.6px; color: var(--ink); margin: 12px 0 0;
}
.dk-feature-post-body p {
  font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 12px 0 0;
}
.dk-feature-post-visual { min-height: 280px; }

/* ---------- Yazı kartı ---------- */
.dk-post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); color: inherit;
}
.dk-post-card-visual { aspect-ratio: 16/9; }
.dk-post-card-body { padding: var(--pad-card); display: flex; flex-direction: column; flex: 1; }
.dk-post-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 17.5px;
  letter-spacing: -.3px; color: var(--ink); margin: 10px 0 0;
}
.dk-post-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 9px 0 0; flex: 1; }

/* Görsel yoksa: modül detayındaki şeritli yer tutucuyla aynı dil */
.dk-post-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-post-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 18px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 12px, #EFF2EA 12px, #EFF2EA 24px);
}

/* Kart/yazı üstü meta satırı */
.dk-post-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-top: 14px;
}
.dk-post-meta-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--border); }

/* ---------- Sayfalama ---------- */
.dk-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; }
.dk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.dk-pagination .page-numbers.current {
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.dk-pagination .page-numbers.dots { border-color: transparent; background: none; }
@media (hover: hover) {
  .dk-pagination a.page-numbers:hover { border-color: var(--accent2); color: var(--forest); }
}

/* ---------- Tekil Yazı (Kargo Entegratör 2 Sütunlu & Pastel Başlıklı Düzen) ---------- */
.dk-post-hero-banner {
  background-color: var(--accent-soft, #EDF6D3);
  padding: 60px 20px 54px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}

.dk-post-hero-in {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dk-post-hero-cats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.dk-post-cat-pill {
  background-color: #FFFFFF;
  color: var(--forest);
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(25, 59, 47, 0.15);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.dk-post-cat-pill:hover {
  background-color: var(--forest);
  color: #FFFFFF;
  border-color: var(--forest);
  transform: translateY(-1px);
}

.dk-post-main-title {
  margin: 0 0 18px 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -1px;
}

.dk-post-hero-meta {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dk-post-hero-meta-dot {
  color: #94A3B8;
}

/* 2 Sütunlu Post Düzeni */
.dk-post-layout {
  max-width: 1200px;
  margin: 54px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  overflow: visible;
}

.dk-post-content-main {
  flex: 1 1 65%;
  min-width: 0;
  overflow: visible;
}

/* İçerik Tipografisi */
.dk-post-content-main h1,
.dk-post-content-main h2,
.dk-post-content-main h3,
.dk-post-content-main h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  clear: both;
}

.dk-post-content-main h2 { font-size: 26px; letter-spacing: -0.6px; }
.dk-post-content-main h3 { font-size: 21px; letter-spacing: -0.4px; }
.dk-post-content-main h4 { font-size: 18px; }

.dk-post-content-main p {
  font-size: 16.5px;
  line-height: 1.78;
  color: #334155;
  margin-bottom: 1.6em;
}

.dk-post-content-main ul,
.dk-post-content-main ol {
  margin-bottom: 1.6em;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

.dk-post-content-main li {
  margin-bottom: 8px;
}

.dk-post-content-main blockquote {
  margin: 28px 0;
  padding: 12px 0 12px 24px;
  border-left: 4px solid var(--forest);
  background: #F8FAFC;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-size: 17.5px;
  font-style: italic;
  line-height: 1.65;
}

.dk-post-content-main img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.dk-post-content-main figure {
  margin: 28px 0;
}

.dk-post-content-main figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* Sidebar & Sticky Wrapper */
.dk-post-sidebar {
  flex: 0 0 320px;
  width: 320px;
  align-self: stretch;
  overflow: visible;
}

.dk-post-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
}

/* ------------------------------------------------------------------
   Sidebar Reklam/Tanıtım Slider'ı (DönüşenKobi Renkleriyle)
   ------------------------------------------------------------------ */
.dk-promo {
  --dk-promo-duration: 6s;
  --dk-promo-accent: var(--forest);
}

.dk-promo-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.dk-promo-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.dk-promo-slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: block;
}

.dk-promo-card-box {
  background: var(--slide-bg, #EDF6D3);
  padding: 30px 24px;
  border-radius: 16px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.dk-promo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dk-promo-tag {
  display: inline-block;
  background: #FFFFFF;
  color: var(--slide-color, var(--forest));
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dk-promo-icon-circle {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  color: var(--slide-color, var(--forest));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.dk-promo-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #0F172A;
  margin: 0 0 10px;
}

.dk-promo-card-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 20px;
  flex: 1;
}

.dk-promo-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--forest);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dk-promo-card-btn:hover {
  background: #0C1F18;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 59, 47, 0.2);
}

.dk-promo-card-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dk-promo-card-btn:hover i {
  transform: translateX(3px);
}

.dk-promo-bars {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.dk-promo-bar {
  flex: 1 1 0;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.dk-promo-bar:focus-visible {
  outline: 2px solid var(--dk-promo-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.dk-promo-bar-track {
  display: block;
  height: 4px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
}

.dk-promo-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--dk-promo-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.dk-promo-bar.is-done .dk-promo-bar-fill {
  transform: scaleX(1);
}

.dk-promo-bar.is-active .dk-promo-bar-fill {
  animation: dk-promo-fill var(--dk-promo-duration) linear forwards;
}

.dk-promo.is-paused .dk-promo-bar.is-active .dk-promo-bar-fill {
  animation-play-state: paused;
}

@keyframes dk-promo-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dk-promo-track { transition: none; }
}

/* İlgili Yazılar Bölümü */
.dk-related-posts-section {
  padding-top: 64px;
  margin-top: 64px;
  border-top: 1px solid #E2E8F0;
}

/* Etiketler & Yazar Kutusu */
.dk-tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-tag {
  border: 1px solid var(--border); background: #F8FAFC; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all 0.15s ease;
}
.dk-tag:hover { border-color: var(--forest); color: var(--forest); background: #FFFFFF; }

.dk-author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: var(--radius-card); padding: var(--pad-card);
}
.dk-author-box img { border-radius: 50%; flex: none; }
.dk-author-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.dk-author-bio { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }

/* Boş durum */
.dk-empty {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-card); padding: 40px 24px; text-align: center;
}
.dk-empty h2 { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin: 0; }
.dk-empty p { font-size: 14.5px; color: var(--muted); margin: 10px auto 18px; max-width: 420px; }


/* ---------- Görselsiz Liste Görünümü (Archive & Home) ---------- */
.dk-blog-list-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E2E8F0;
}

.dk-blog-row-item {
  border-bottom: 1px solid #E2E8F0;
  transition: background-color 0.2s ease;
}

.dk-blog-row-link {
  display: grid;
  grid-template-columns: 240px 1fr 60px;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.dk-blog-row-link:hover .dk-blog-row-title {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dk-blog-row-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dk-blog-row-cat {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--forest);
  text-transform: uppercase;
}

.dk-blog-row-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.dk-blog-row-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dk-blog-row-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0;
  transition: color 0.15s ease;
}

.dk-blog-row-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.dk-blog-row-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.dk-blog-row-read {
  font-size: 13.5px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}

/* Ana Sayfa: Son Yazılarımız Bölümü */
.dk-home-blog-section {
  padding-top: 100px;
  padding-bottom: 72px;
}

.dk-home-blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.dk-home-blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.dk-home-blog-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0;
}

.dk-home-blog-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dk-home-blog-all-link i {
  color: var(--forest);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.dk-home-blog-all-link:hover i {
  transform: translateX(4px);
}


/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .dk-blog-row-link {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .dk-blog-row-right {
    justify-content: flex-start;
  }
  .dk-blog-row-title {
    font-size: 18px;
  }
  .dk-home-blog-title {
    font-size: 28px;
  }
  .dk-article-title { font-size: 30px; letter-spacing: -.7px; }
  .dk-article-excerpt { font-size: 16px; }
}
@media (max-width: 560px) {
  .dk-blog-hero-in { padding-top: 34px; padding-bottom: 26px; }
  .dk-article-title { font-size: 26px; }
  .dk-article-cover { aspect-ratio: 16/10; }
  .dk-blog-chip { min-height: 44px; }
}

