/**
 * KH Core FAZ 3 — Homepage & sidebar polish
 */

/* Hero masthead + breathing room before latest slider */
.kh-section--hero-first {
  margin-bottom: 3rem;
}

.kh-hero-masthead {
  margin-bottom: 1.25rem;
  text-align: center;
}

.kh-hero-masthead__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #00d4ff);
}

.kh-hero-masthead__title {
  margin: 0;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text, #f8fafc), var(--accent, #00d4ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kh-hero-masthead__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted, #94a3b8);
}

/* Premium section head variants */
.kh-block__head--banner .kh-block__title a {
  color: inherit;
  text-decoration: none;
}

.kh-block__head--banner .kh-block__title a:hover {
  color: var(--accent, #00d4ff);
}

.kh-block__head--trend .kh-block__title-wrap {
  border-left: 3px solid #f97316;
  padding-left: 14px;
}

.kh-block__head--trend .kh-block__rule {
  background: linear-gradient(90deg, transparent, #f97316, #fb923c, transparent);
}

.kh-block__head--popular .kh-block__title-wrap {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(234, 88, 12, 0.06));
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
}

.kh-block__head--popular .kh-block__rule {
  background: linear-gradient(90deg, transparent, #fb923c, #fbbf24, transparent);
}

.kh-block__head--category .kh-block__title-wrap {
  text-align: left;
}

.kh-block__head--category .kh-block__subtitle {
  text-align: left;
}

.kh-block__head--category .kh-block__rule--left {
  max-width: 48px;
  flex: 0 0 48px;
}

.kh-block__head--latest .kh-block__title-wrap {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary, #3b82f6), var(--accent, #00d4ff)) 1;
  padding-bottom: 8px;
}

/* Sidebar CTA */
.kh-sb-v45__cta {
  margin-top: 12px;
}

.kh-sb-v45__cta .kh-btn--submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #3b82f6), var(--accent, #00d4ff));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kh-sb-v45__cta .kh-btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.3);
}

.kh-trend-ranked__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #94a3b8);
}

/* Son hikayeler — ince swipe şeridi */
.kh-latest-strip {
  width: 100%;
  overflow: hidden;
  padding: 4px 0 8px;
}

.kh-latest-strip__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.kh-latest-strip__track::-webkit-scrollbar {
  display: none;
}

.kh-latest-strip__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 14px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.kh-latest-strip__item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.kh-latest-strip__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.kh-latest-strip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-latest-strip__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kh-latest-strip__meta strong {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kh-latest-strip__meta small {
  font-size: 11px;
  color: var(--muted, #94a3b8);
}

@media (max-width: 640px) {
  .kh-section--hero-first {
    margin-bottom: 1.5rem;
  }

  .kh-hero-masthead {
    text-align: left;
  }
}
