/* =====================================================
   ANASAYFA HERO - Harici CSS
   Referans: Mobilya sitesi tasarımı — birebir uyarlama
   ===================================================== */

/* WRAP */
.nh-wrap {
  max-width: var(--site-width, 1400px);
  margin: 0 auto;
  padding: .75rem clamp(.75rem, 2vw, 1.5rem) 0;
  overflow: hidden;
}

/* MARQUEE ŞERİT */
.marquee-section {
  background: #fdf6f0;
  padding: .65rem 0;
  overflow: hidden;
  margin-top: 28px;
  position: relative;
  z-index: 0;
  border-radius: var(--nh-radius, 20px) var(--nh-radius, 20px) 0 0;
  border-top: 1px solid #f0e8e0;
}
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-track {
  display: inline-flex;
  flex-shrink: 0;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-inner { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; flex-shrink: 0; }
.marquee-item { font-size: .82rem; font-weight: 600; color: #2d2d2d; letter-spacing: .01em; padding: 0 1.25rem; white-space: nowrap; }
.marquee-dot { color: var(--color-secondary, #e85d04); font-size: .45rem; line-height: 1; flex-shrink: 0; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-33.333%); } }

/* =====================
   ÜST: BÜYÜK SLIDER
   ===================== */
.nh-top {
  position: relative;
  border-radius: 20px;
  overflow: visible; /* play butonu taşsın */
  background: transparent;
  z-index: 1;
}
.nh-top-inner {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  min-height: 240px;
  position: relative;
}
/* Mobilde tam ekran banner */
@media (max-width: 768px) {
  .nh-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }
  .nh-top {
    border-radius: 0 !important;
    margin: 0;
  }
  .nh-top-inner {
    border-radius: 0 !important;
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
}
@media (max-width: 480px) {
  .nh-top-inner {
    aspect-ratio: 3 / 4;
    min-height: 320px;
  }
}
.nh-top-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nh-top-swiper .swiper-wrapper,
.nh-top-swiper .swiper-slide {
  height: 100% !important;
}
.nh-top-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.nh-top-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nh-top-placeholder {
  background: linear-gradient(135deg, #1a3560, #0d2247);
}
.nh-top-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

/* YouTube arka plan iframe */
.nh-yt-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.nh-yt-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 oranı */
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
/* Thumbnail — YouTube yüklenene kadar gösterilir, sonra gizlenir */
.nh-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
}

/* PLAY BUTONU — masaüstünde dots'ın sağ karşısında */
.nh-play-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.25rem;
  left: auto;
  transform: none;
  z-index: 20;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: transform .25s;
  text-decoration: none;
  will-change: transform;
}
.nh-play-btn:hover {
  transform: scale(1.08);
  right: 1.25rem;
}
.nh-play-btn i {
  font-size: 1.7rem;
  color: #1a1a1a;
  margin-left: 4px;
}
/* Dalga (ripple) efekti */
.nh-play-btn::before,
.nh-play-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  animation: playRipple 2.2s ease-out infinite;
  pointer-events: none;
}
.nh-play-btn::after {
  animation-delay: 1.1s;
}
@keyframes playRipple {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.2); opacity: 0;  }
}

/* SLIDER NAV OKLARI */
.nh-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.nh-nav-btn:hover {
  background: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.08);
  color: #fff;
}
.nh-nav-prev { left: 1rem; }
.nh-nav-next { right: 1rem; }
/* Mobilde okları gizle — swipe yeterli */
@media (max-width: 768px) {
  .nh-nav-btn { display: none !important; }
}

/* SLIDER DOTS + SAYAÇ */
.nh-top-dots-wrap {
  position: absolute;
  bottom: 1.5rem;
  left: 1.25rem;
  right: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.nh-top-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width .3s, background .3s, border-radius .3s;
  flex-shrink: 0;
  display: block;
}
.nh-top-dot.active {
  background: var(--color-secondary, #fe5000);
  width: 22px;
  border-radius: 4px;
}
.nh-top-counter {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  margin-left: .25rem;
  white-space: nowrap;
}

/* YouTube popup ikonu — slide üzerinde sol alt köşe */
.nh-slide-yt-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 5;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  opacity: .85;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.nh-slide-yt:hover .nh-slide-yt-icon {
  opacity: 1;
  transform: scale(1.1);
}
.nh-slide-yt-icon i {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

/* =====================
   ALT BÖLÜM
   ===================== */
.nh-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #fff;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  border-top: none;
  padding-top: 36px; /* play butonuna yer aç */
  margin-bottom: .5rem;
}

/* ALT SOL: BÜYÜK BAŞLIK + TİRE LİSTE */
.nh-col-left {
  padding: 1.5rem 1.5rem 1.75rem 2rem;
  border-right: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.nh-eyebrow {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #999;
  text-transform: uppercase;
}
.nh-big-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  color: #1a1a1a;
  text-transform: uppercase;
}
.nh-big-title .nh-title-accent {
  color: var(--color-secondary);
  display: block;
}
/* Sol kolon metin — başlık ile liste arasında */
.nh-left-text {
  font-size: .85rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.nh-program-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.nh-program-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 600;
  color: #444;
  letter-spacing: .02em;
}
.nh-program-list li::before {
  content: '—';
  color: #999;
  font-weight: 400;
  flex-shrink: 0;
}

/* İSTATİSTİK SATIRI — renkli kutular */
.nh-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid #e8eaed;
}
.nh-stat-item {
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .6rem;
  border: 1px solid var(--color-border-light, #e8eaed);
  min-height: 90px;
}
.nh-stat--green { background: #f0fdf4; }
.nh-stat--blue  { background: #eff6ff; }
.nh-stat--yellow{ background: #fefce8; }
.nh-stat--pink  { background: #fdf2f8; }
.nh-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.nh-stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.nh-stat--green .nh-stat-icon-wrap { background: rgba(34,197,94,.12); color: #16a34a; }
.nh-stat--blue  .nh-stat-icon-wrap { background: rgba(59,130,246,.12); color: #2563eb; }
.nh-stat--yellow .nh-stat-icon-wrap { background: rgba(234,179,8,.12); color: #ca8a04; }
.nh-stat--pink  .nh-stat-icon-wrap { background: rgba(236,72,153,.12); color: #db2777; }
.nh-stat-lbl {
  font-size: .72rem;
  font-weight: 600;
  color: #999;
  text-align: right;
  line-height: 1.3;
  align-self: flex-start;
  padding-top: 2px;
}
.nh-stat-bottom {
  display: flex;
  justify-content: flex-end;
}
.nh-stat-val {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}
.nh-stat--green .nh-stat-val { color: #16a34a; }
.nh-stat--blue  .nh-stat-val { color: #2563eb; }
.nh-stat--yellow .nh-stat-val{ color: #ca8a04; }
.nh-stat--pink  .nh-stat-val { color: #db2777; }
@media (max-width: 768px) {
  .nh-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ALT ORTA: AÇIKLAMA + SOSYAL + CTA */
.nh-col-mid {
  padding: 1.5rem 1.25rem 1.75rem;
  border-right: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.nh-desc {
  font-size: .78rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.nh-mid-bottom {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.nh-socials {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.nh-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.nh-social-link:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.nh-cta-week {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  padding: .6rem 1rem;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s;
}
.nh-cta-week:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ALT SAĞ: TEK GÖRSEL — kırpılmadan tam görünür */
.nh-col-right {
  padding: .75rem;
  display: flex;
  background: transparent;
  align-items: stretch;
}
.nh-right-img-wrap {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-right-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
/* Eski kart stilleri (fallback için) */
.nh-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ccc;
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}
.nh-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nh-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.05) 60%, transparent 100%);
}
.nh-card-body {
  position: relative;
  z-index: 2;
  padding: .5rem .6rem;
}
.nh-card-title-text {
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  display: block;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.nh-card-sub {
  color: rgba(255,255,255,.7);
  font-size: .6rem;
  display: block;
  margin-top: .15rem;
}
.nh-card-num {
  position: absolute;
  bottom: .5rem;
  right: .6rem;
  z-index: 2;
  font-size: .75rem;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  font-family: var(--font-heading);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nh-bottom {
    grid-template-columns: 1fr;
    border-radius: 0 0 14px 14px;
    padding-top: 48px;
  }
  .nh-col-left {
    border-right: none;
    padding: 1.25rem 1.25rem 1rem;
  }
  .nh-col-mid {
    border-right: none;
    border-top: 1px solid #e8eaed;
    padding: 1.25rem;
  }
  .nh-play-btn {
    width: 58px;
    height: 58px;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
  }
  .nh-play-btn:hover {
    transform: translateX(-50%) scale(1.08);
  }
  .nh-play-btn i {
    font-size: 1.4rem;
  }
  /* Mobilde dots en alta */
  .nh-top-dots-wrap {
    bottom: .5rem;
  }
  /* Mobilde marquee üstten boşluk */
  .marquee-section {
    margin-top: 44px;
  }
}

@media (max-width: 480px) {
  .nh-big-title {
    font-size: 1.75rem;
  }
  .nh-col-left,
  .nh-col-mid {
    padding: 1rem;
  }
}
