/* ============================================================
   uretim.css — Üretim sayfası stilleri (Faz H.5).
   uretim.ejs içindeki inline <style> bloğundan ayrıldı;
   tokens.css değişkenleri kullanır.
   Sayfaya routes/uretim.js -> extraHead <link> ile bağlanır.
   ============================================================ */

/* === Hero === */
.uretim-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Taban: /teknoloji tech-hero ile aynı lacivert gradient — aurora üzerine biner */
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 100%);
}

.uretim-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/*
  .hero-aurora / .hero-aurora--white
  Canvas aurora renk modu işareti (uretim-beams.js okur).
  Taban rengi .uretim-hero'da kalır; burada yalnız dekoratif katman ipuçları.
  PRM: animasyon JS tarafında kesilir; canvas boş, zemin görünür kalır.
*/
.uretim-hero.hero-aurora--white .uretim-hero__canvas {
  /* Beyaz huzmeler koyu zeminde; ekstra CSS rengi yok — JS hsla(0,0%,L%,a) */
  opacity: 1;
}

/* Grain + vignette overlay — beyaz aurora'da metin kontrastını korur */
.uretim-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.uretim-hero.hero-aurora--white .uretim-hero__overlay {
  /* Beyaz glow metni yıkamasın diye vignette biraz daha belirgin */
  background:
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.uretim-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-pad, 1.5rem);
}

.uretim-hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-glow);
  margin-bottom: 22px;
}
.uretim-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 0 0 24px;
}
.uretim-hero__subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
  max-width: 660px;
}

/* === Süreç === */
.uretim-process {
  background: #ffffff;
  padding: 100px 20px;
}
.uretim-head {
  max-width: 720px;
  margin: 0 0 64px;
}
.uretim-head .section-subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 16px;
}
.uretim-h2 {
  font-family: var(--font-section);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #181818;
  margin: 0;
}

.stage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.stage:last-child { margin-bottom: 0; }
.stage--reverse .stage-media { order: 2; }

.stage-media {
  position: relative;
  isolation: isolate;
  margin: 0;
  border-radius: 12px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stage-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* Hayalet kart — editorial offset çerçeve (01/03: sağ-alt)
   z-index:0 (img:1) — negatif z-index beyaz arka plana gömülüyordu */
.stage-media::after {
  content: '';
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid rgba(30, 130, 92, 0.2);
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
  transition: inset 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 02 — zig-zag mirror (görsel sağda → sol-alt offset) */
.stage--reverse .stage-media::after {
  inset: 8px 8px -8px -8px;
}

.stage-media:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.12);
}
.stage-media:hover::after {
  inset: 12px -12px -12px 12px;
}
.stage--reverse .stage-media:hover::after {
  inset: 12px 12px -12px -12px;
}

@media (prefers-reduced-motion: reduce) {
  .stage-media,
  .stage-media::after {
    transition: none;
  }
  .stage-media:hover {
    transform: none;
  }
  .stage-media:hover::after {
    inset: 8px -8px -8px 8px;
  }
  .stage--reverse .stage-media:hover::after {
    inset: 8px 8px -8px -8px;
  }
}

.stage-num {
  font-family: var(--font-section);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: rgba(30, 130, 92, 0.18);
}
.stage-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 16px;
}
.stage-body p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(24, 24, 24, 0.72);
  margin: 0 0 20px;
}
.stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stage-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(24, 24, 24, 0.78);
}
.stage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
}

/* === İstatistik şeridi === */
.uretim-stats {
  background: linear-gradient(135deg, var(--ink) 0%, #b8cce0 100%);
  padding: 80px 20px;
}
.uretim-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-cell {
  position: relative;
  min-width: 0;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.stat-cell::before,
.stat-cell::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.25);
  border-style: solid;
  pointer-events: none;
}

.stat-cell::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.stat-cell::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.stat-cell__header {
  min-height: 14px;
}

.stat-cell__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.stat-cell__value {
  display: flex;
  align-items: baseline;
  margin-top: 20px;
  white-space: nowrap;
}

.ustat-num {
  font-family: var(--font-section);
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--brand-glow);
}

.stat-unit {
  margin-left: 2px;
  font-family: var(--font-section);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--brand-glow);
}

.stat-cell__label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
}

.stat-cell__bar {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.stat-cell__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-teal);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === CTA === */
.uretim-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1a3a52 100%);
  padding: 96px 20px;
  text-align: center;
}
.uretim-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.uretim-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0 0 18px;
}
.uretim-cta p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 36px;
  max-width: 560px;
}

/* Soft magnetic hover — transform yaylanması (JS ile kaydırılır) */
.uretim-cta .btn-primary {
  transition: all 0.3s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* === Responsive === */
@media (max-width: 768px) {
  .uretim-process { padding: 64px 20px; }
  .uretim-head { margin-bottom: 44px; }
  .stage {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .stage--reverse .stage-media { order: 0; }
  .stage-media {
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.06),
      0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .stage-media::after {
    display: none;
  }
  .stage-media:hover {
    transform: none;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.06),
      0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .stage-media img { max-height: 360px; }
  .uretim-stats { padding: 56px 20px; }
  .uretim-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-cell { padding: 16px; }
  .stat-cell__value { margin-top: 16px; }
  .uretim-cta { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-cell__bar-fill {
    width: var(--stat-fill);
    transition: none;
  }
}
