/**
 * KH Core V5 — Homepage vitrin (hero 1+4, Swiper bölümler)
 */

body.kh-homepage-v5 .kh-hero-ticker {
  display: none !important;
}

/* Hero V5 */
.kh-hero-v5 {
  margin-bottom: 2.5rem;
}

.kh-hero-masthead--v5 {
  margin-bottom: 1.25rem;
}

.kh-hero-masthead--v5 .kh-hero-masthead__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--kh-text, #f8fafc);
}

.kh-hero-masthead--v5 .kh-hero-masthead__subtitle {
  color: var(--kh-muted, #94a3b8);
  font-size: 0.95rem;
  max-width: 52ch;
}

.kh-hero-v5__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.kh-hero-v5__main,
.kh-hero-v5__mini {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.kh-hero-v5__main {
  min-height: 340px;
  aspect-ratio: 16 / 9;
}

.kh-hero-v5__main:hover,
.kh-hero-v5__mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 212, 255, 0.12);
}

.kh-hero-v5__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 24, 0.92) 0%, rgba(8, 12, 24, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.kh-hero-v5__overlay--mini {
  background: linear-gradient(0deg, rgba(8, 12, 24, 0.9) 0%, transparent 70%);
}

.kh-hero-v5__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.kh-hero-v5__body,
.kh-hero-v5__mini-body {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.kh-hero-v5__body {
  padding: 28px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.kh-hero-v5__cat,
.kh-hero-v5__mini-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kh-accent, #00d4ff);
  text-decoration: none;
  margin-bottom: 8px;
  pointer-events: auto;
}

.kh-hero-v5__title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.kh-hero-v5__excerpt {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52ch;
}

.kh-hero-v5__time,
.kh-hero-v5__mini-time {
  font-size: 0.85rem;
  color: #94a3b8;
}

.kh-hero-v5__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.kh-hero-v5__mini {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.kh-hero-v5__mini-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
}

.kh-hero-v5__mini-title {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Home Swiper sections */
.kh-home-swiper-section {
  margin-bottom: 2.5rem;
}

.kh-home-swiper-section .kh-section-head {
  align-items: center;
}

.kh-home-swiper-section__nav {
  display: flex;
  gap: 8px;
}

.kh-home-swiper-nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  position: relative;
}

.kh-home-swiper-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--kh-accent, #00d4ff);
  border-right: 2px solid var(--kh-accent, #00d4ff);
}

.kh-home-swiper-nav--prev::after {
  transform: rotate(-135deg);
  margin-left: 13px;
}

.kh-home-swiper-nav--next::after {
  transform: rotate(45deg);
  margin-right: 13px;
}

.kh-home-swiper {
  overflow: hidden;
  padding-bottom: 32px;
}

.kh-home-swiper .swiper-slide {
  width: min(260px, 78vw);
  height: auto;
}

.kh-home-swiper .kh-card--glass {
  height: 100%;
}

.kh-home-swiper .swiper-slide[data-rank] {
  position: relative;
}

.kh-home-swiper .swiper-slide[data-rank]::before {
  content: attr(data-rank);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0b1021;
  background: linear-gradient(135deg, #00d4ff, #60a5fa);
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.45);
  pointer-events: none;
}

/* Long reads V5 */
.kh-home-swiper--long .swiper-slide {
  width: min(300px, 84vw);
}

.kh-long-v5 {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kh-long-v5:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
}

.kh-long-v5__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.kh-long-v5__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-long-v5__time-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1021;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.kh-long-v5__body {
  padding: 14px 16px 18px;
}

.kh-long-v5__cat {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kh-accent, #00d4ff);
  margin-bottom: 6px;
}

.kh-long-v5__title {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: #f8fafc;
}

@media (max-width: 900px) {
  .kh-hero-v5__grid {
    grid-template-columns: 1fr;
  }

  .kh-hero-v5__side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .kh-hero-v5__side {
    grid-template-columns: 1fr;
  }
}
