@import url("/assets/css/base/tokens.css");

/* ===============================
        BLOG PAIRS (section)
   =============================== */
#blog-pairs {
  background: var(--blog-bg);
  color: var(--blog-text);
  padding: 80px 18px;
}
/* Blog içindeki tüm linklerde alt çizgiyi kaldır */
#blog-pairs a {
  text-decoration: none;
}
.bp-head {
  text-align: center;
  margin-bottom: 46px;
}
.bp-kicker {
  color: var(--blog-cyan);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.bp-title {
  font-size: 22px;
  font-weight: 600;
}

.bp-viewport {
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.bp-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  scroll-snap-align: start;
}
.bp-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}
.bp-card .thumb {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  display: block; /* anchor olduğundan güvenli */
  text-decoration: none;
}
.bp-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-card .name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
/* Başlık linki alt çizgisiz ve rengi metinle aynı */
.bp-card .name a {
  color: inherit;
  text-decoration: none;
}
/* Çok uzun başlıkları dengelemek için (masaüstü tek satıra yakın kalsın) */
.bp-card > *:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.bp-card > *:nth-child(2) .btn {
  margin-top: auto; /* Boş alanı yukarı iter, buton en alta oturur */
  width: fit-content;
}

/* META */
.bp-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--blog-muted);
  margin-bottom: 10px;
}
.bp-card .meta a,
.bp-card .meta .cat {
  color: var(--blog-cyan);
  font-weight: 700;
  text-decoration: none;
}
.bp-card .meta .date {
  opacity: 0.9;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.bp-card .desc {
  font-size: 14px;
  color: var(--blog-muted);
  margin-bottom: 18px;
  line-height: 1.55;
  /* Yükseklik uyumsuzluğunu azaltmak için satır kısıtlama */
  display: -webkit-box;
  -webkit-line-clamp: 4; /* varsayılan masaüstü */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.55em * 4);
}
.bp-card .btn {
  padding: 10px 18px;
  border: 1px solid var(--blog-btn);
  border-radius: 6px;
  color: var(--blog-btn);
  text-decoration: none;
  font-size: 14px;
}
.bp-card .btn:hover {
  background: var(--blog-btn);
  color: #fff;
  box-shadow: 0 0 0 6px var(--blog-ring);
}

.bp-arrows {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.bp-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--blog-btn);
  background: none;
  color: var(--blog-btn);
  font-size: 22px;
  cursor: pointer;
}
.bp-arrow:hover {
  background: var(--blog-btn);
  color: #fff;
  box-shadow: 0 0 0 6px var(--blog-ring);
}

@media (max-width: 1024px) {
  .bp-slide {
    grid-template-columns: 1fr;
  }
  .bp-card {
    grid-template-columns: 1fr;
  }
  .bp-card > *:nth-child(2) {
    display: flex;
    flex-direction: column;
  }
  .bp-card .thumb {
    height: 220px;
  }
}
/* Mobil: slaytta sadece 1 kart göster */
@media (max-width: 768px) {
  .bp-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-slide .bp-card:nth-child(n + 2) {
    display: none;
  }
  .bp-card {
    grid-template-columns: 1fr;
  }
  .bp-card > *:nth-child(2) {
    display: flex;
    flex-direction: column;
  }
  .bp-card .thumb {
    height: auto;
    aspect-ratio: 16/9;
  }
  /* Tablet/Mobilde açıklamayı biraz daha kısalt: uyumlu kart yüksekliği */
  .bp-card .desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.55em * 3);
  }
  .bp-card .name {
    -webkit-line-clamp: 2; /* aynı kalsın ama explicit tekrar */
    line-clamp: 2;
  }
}
@media (max-width: 480px) {
  .bp-card .meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  /* Küçük ekranda daha kısa açıklama ve gerekirse başlık */
  .bp-card .desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: calc(1.55em * 2);
  }
  .bp-card .name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}
