/* =============================================================
   ENYED — Hero Section Styles (Responsive)

   NOT: .stage ve içindeki küre (globe.css / globe.js) bu dosyadan
   etkilenmez; yalnızca çevresindeki yerleşim ve metin biçimlenir.
   ============================================================= */
.hero {
  position: relative; min-height: calc(var(--vh, 1vh) * 100);
  width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 70px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 32%, rgba(198, 144, 35, .10), transparent 60%),
    linear-gradient(180deg, #081527 0%, var(--bg) 62%, var(--bg) 100%);
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 40px 40px 60px; z-index: 5; min-width: 0;
}

.hero .eyebrow { margin-bottom: 22px; }

h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(36px, 5vw, 72px); line-height: 1.04; letter-spacing: -1.5px;
  color: var(--fg);
}
h1 em { font-style: normal; color: var(--gold-bright); }

.sub {
  margin-top: 24px; max-width: 460px; color: var(--dim);
  font-weight: 400; line-height: 1.75; font-size: 16px;
}

/* ---------- İstatistik şeridi ---------- */
.stats {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0; margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.stat {
  padding: 0 28px; position: relative;
}
.stat:first-child { padding-left: 0; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 32px; background: var(--line);
}
.stat b {
  font-family: "Space Grotesk", sans-serif; font-size: 30px; display: block;
  font-weight: 700; color: var(--gold-bright); letter-spacing: -.5px;
}
.stat small {
  color: var(--dim); font-size: 12.5px; letter-spacing: .4px;
  text-transform: none; margin-top: 2px; display: block;
}

.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; align-items: center; }

/* Tasarımdaki "video oynat" ikincil eylemi. */
.hero-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: none; color: var(--fg); text-decoration: none;
  font-family: "Inter", sans-serif; font-size: 14px;
}
.hero-play .play-ring {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--gold); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.hero-play:hover .play-ring { background: var(--gold); color: #0B1220; }
.hero-play span small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* =============================================================
   RESPONSIVE BREAKPOINTS: Tablet & Mobile (< 900px)
   ============================================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 75px;
    padding-bottom: 24px;
  }
  .hero-copy {
    padding: 30px 24px 20px;
    text-align: center;
    align-items: center;
  }
  .hero .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: 3px; }
  h1 {
    font-size: clamp(30px, 7.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -1px;
  }
  .sub {
    margin: 14px auto 0;
    font-size: 15px;
    line-height: 1.65;
    max-width: 480px;
  }
  .stats {
    justify-content: center;
    margin-top: 28px;
    padding-top: 20px;
    gap: 8px 0;
  }
  .stat { padding: 0 18px; }
  .stat b { font-size: 24px; }
  .stat small { font-size: 11.5px; }

  .hero-actions {
    justify-content: center;
    width: 100%;
    margin-top: 26px;
    gap: 12px;
  }
  .hero-actions .btn-primary, .hero-actions .btn-ghost {
    flex: 1 1 160px;
    padding: 13px 22px;
    font-size: 13.5px;
  }
}

/* =============================================================
   RESPONSIVE BREAKPOINTS: Small Mobile (< 480px)
   ============================================================= */
@media (max-width: 480px) {
  .hero-copy { padding: 20px 16px 16px; }
  .stats { padding-top: 16px; }
  .stat { padding: 0 12px; }
  .stat + .stat::before { height: 24px; }
  .stat b { font-size: 21px; }
  .stat small { font-size: 10.5px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; flex: none; }
}

/* =============================================================
   Hero arka plan görseli

   Panelden "Kapak Görseli" seçildiğinde kullanılır. Görsel seçili
   değilse hero yukarıdaki degradeyle kalır; dış bir stok fotoğrafa
   bağlanmaz.

   Metin okunurluğu görselden bağımsız olmalı: üstüne lacivert bir
   örtü konuyor, böylece açık renkli bir fotoğraf seçildiğinde de
   beyaz başlık okunur kalıyor.
   ============================================================= */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Fotoğraf sahneyi bastırmasın; küre ve metin önde kalsın. */
  filter: saturate(.9) brightness(.85);
}

.hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 19, 34, .94) 0%, rgba(7, 19, 34, .78) 45%, rgba(7, 19, 34, .45) 100%),
    linear-gradient(180deg, rgba(7, 19, 34, .55) 0%, transparent 35%, rgba(7, 19, 34, .85) 100%);
}

/* Metin ve küre örtünün üstünde kalır. */
.hero--has-image .hero-copy { position: relative; z-index: 5; }
.hero--has-image .stage { position: relative; z-index: 4; }

/* Açık temada örtü beyaza döner, yoksa koyu metin okunmaz. */
body.light .hero--has-image::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .82) 45%, rgba(255, 255, 255, .5) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, transparent 35%, rgba(255, 255, 255, .88) 100%);
}

body.light .hero-bg { filter: saturate(.95) brightness(1.02); }

/* Dar ekranda metin tek sütuna düştüğü için örtü dikey degradeye çevrilir. */
@media (max-width: 980px) {
  .hero--has-image::before {
    background: linear-gradient(180deg, rgba(7, 19, 34, .82) 0%, rgba(7, 19, 34, .72) 45%, rgba(7, 19, 34, .95) 100%);
  }

  body.light .hero--has-image::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, .96) 100%);
  }
}
