/**
 * KH Core V5 — Premium single post (header, similar swiper, reading bar)
 */

/* ─── Article header V5 ─── */
.kh-article-header--v5 .kh-article-header__category {
  margin-bottom: 12px;
}

.kh-cat-badge--header {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--kh-accent, #00d4ff);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kh-cat-badge--header:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}

.kh-article-header--v5 .kh-article-header__meta--v5 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-article-header__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--kh-muted, #94a3b8);
}

.kh-article-header__chip-icon {
  opacity: 0.9;
}

.kh-article-header--v5 .kh-article-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.kh-tag-badge--header {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--kh-text, #e2e8f0);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.kh-tag-badge--header:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.kh-article-header--v5 .kh-article-header__cover {
  margin: 20px 0 0;
}

/* Footer taxonomy gizli (etiketler başlıkta) */
body.kh-single-v5.kh-header-has-tags .kh-post-end--taxonomy {
  display: none !important;
}

/* ─── Okuma çubuğu V5 (neon, smooth) ─── */
body.kh-single-v5 .kh-reading-v45 {
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #00d4ff, #60a5fa, #a78bfa);
  background-size: 200% 100%;
  animation: kh-reading-shimmer 4s ease infinite;
  transition: width 0.12s ease-out;
  box-shadow:
    0 0 18px rgba(0, 212, 255, 0.65),
    0 0 6px rgba(59, 130, 246, 0.8);
}

@keyframes kh-reading-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ─── Benzer hikayeler Swiper ─── */
.kh-similar--v5 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-similar-v5__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.kh-similar-v5__nav {
  display: flex;
  gap: 8px;
}

.kh-similar-v5__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kh-similar-v5__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--kh-accent, #00d4ff);
  border-right: 2px solid var(--kh-accent, #00d4ff);
}

.kh-similar-v5__btn--prev::after {
  transform: rotate(-135deg);
  margin-left: 14px;
}

.kh-similar-v5__btn--next::after {
  transform: rotate(45deg);
  margin-right: 14px;
}

.kh-similar-v5__btn:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.kh-similar-swiper {
  overflow: hidden;
  padding-bottom: 36px;
}

.kh-similar-swiper .swiper-slide {
  height: auto;
  width: min(280px, 78vw);
}

.kh-similar-swiper .kh-card--glass {
  height: 100%;
  margin: 0;
}

.kh-similar-swiper .kh-card--similar .kh-card__media,
.kh-similar-swiper .kh-card--glass.kh-card--similar .kh-card__media {
  aspect-ratio: 16 / 10;
}

.kh-similar-swiper .kh-card__title {
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kh-similar-swiper__pagination {
  bottom: 0 !important;
}

.kh-similar-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.kh-similar-swiper .swiper-pagination-bullet-active {
  background: var(--kh-accent, #00d4ff);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Eski yatay scroll listesi kapalı */
.kh-similar--swiper .kh-similar__grid:not(.swiper-wrapper) {
  display: none !important;
}

@media (max-width: 640px) {
  .kh-similar-v5__head {
    flex-wrap: wrap;
  }

  .kh-similar-swiper .swiper-slide {
    width: 82vw;
  }
}
