/* ============================================================
   cozumler.css — /cozumler ve /cozumler/:slug sayfa stilleri.
   uretim.css deseniyle tutarlı: token'lı, sayfaya özel dosya,
   routes/cozumler.js -> extraHead <link> ile bağlanır.
   ============================================================ */

/* === Liste sayfası: ASCII Video Hero ===
   main.css `section { padding: 100px 20px }` global kuralını
   burada sıfırla — aksi halde sol/sağda beyaz şerit sızar.
   Koyu fallback + 2px bleed: DPR subpixel hairline'ı kapatır. */
.cozumler-hero-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 600px;
  margin: 0;
  padding: 0 !important; /* global section padding'i kesin ez */
  overflow: hidden;
  background: #0a1628;
  box-sizing: border-box;
  isolation: isolate;
  /* overflow:hidden child bleed'i kırpar; gölge aynı elementte kırpılmaz —
     sol/sağ 1px body beyazı sızıntısını örter */
  box-shadow: -6px 0 0 #0a1628, 6px 0 0 #0a1628;
}

.cozumler-hero-video-container {
  position: absolute;
  /* 2px bleed — kesirli viewport genişliğinde 1px beyaz çizgiyi örter */
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: #0a1628;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cozumler-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  /* Hafif scale: object-fit kenarlarında subpixel boşluk bırakmaz */
  transform: scale(1.04);
  transform-origin: center center;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cozumler-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Overlay: video okunabilirliği için orta ton (0.5–0.6) */
.cozumler-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.55) 0%,
    rgba(10, 22, 40, 0.45) 45%,
    rgba(10, 22, 40, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.cozumler-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 48px 72px;
  box-sizing: border-box;
}

.cozumler-hero-wrapper {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.cozumler-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(47, 181, 131, 0.3);
  background: rgba(47, 181, 131, 0.05);
  color: var(--brand-glow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.cozumler-hero-baslik {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.cozumler-hero-baslik .text-emerald {
  color: var(--brand-glow);
}

.cozumler-hero-aciklama {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Scroll indicator — alt kenarda nabız */
.cozumler-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color 0.25s ease;
}

.cozumler-hero-scroll:hover,
.cozumler-hero-scroll:focus-visible {
  color: var(--brand-glow);
  outline: none;
}

.cozumler-hero-scroll-chevron {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: cozumler-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes cozumler-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.55; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cozumler-hero-scroll-chevron {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .cozumler-hero-section {
    height: 480px;
  }

  .cozumler-hero-content {
    padding: 72px 32px 64px;
  }

  .cozumler-hero-wrapper {
    max-width: 700px;
  }

  .cozumler-hero-baslik {
    font-size: 36px;
  }

  .cozumler-hero-aciklama {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .cozumler-hero-section {
    height: 380px;
  }

  .cozumler-hero-content {
    padding: 56px 20px 56px;
  }

  .cozumler-hero-baslik {
    font-size: 28px;
  }

  .cozumler-hero-aciklama {
    font-size: 14px;
    max-width: 100%;
  }

  .cozumler-hero-aciklama br {
    display: none;
  }

  .cozumler-hero-scroll {
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .cozumler-hero-section {
    height: 340px;
  }

  .cozumler-hero-content {
    padding: 48px 16px 48px;
  }

  .cozumler-hero-baslik {
    font-size: 24px;
  }

  .cozumler-hero-scroll span:first-child {
    display: none;
  }
}

/* === Ortak bölüm başlığı === */
.cozum-head {
  max-width: 720px;
  margin: 0 0 44px;
}
.cozum-h2 {
  font-family: var(--font-section);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #181818;
  margin: 0;
}

/* === Entegre Tekne Hattı === */
.cozum-entegre {
  background: #ffffff;
  padding: 96px 20px 48px;
}

/* === Çözüm Ortaklığı Hattı === */
.cozum-ortaklik {
  background: #f8fafc;
  padding: 48px 20px 100px;
}

.cozum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cozum-empty {
  color: rgba(24, 24, 24, 0.55);
  font-size: 15px;
  margin: 0;
}

/* === Kart (liste sayfası) === */
.cozum-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(10, 25, 41, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  text-decoration: none;
  transition: transform var(--dur-mid) var(--ease-lux), box-shadow var(--dur-mid) var(--ease-lux);
}
.cozum-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.cozum-card--featured {
  background: linear-gradient(135deg, var(--ink) 0%, #1a3a52 100%);
  border: none;
  padding: 44px;
}
.cozum-card__title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}
.cozum-card--featured .cozum-card__title {
  color: #ffffff;
  font-size: 26px;
}
.cozum-card__ozet {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(24, 24, 24, 0.68);
  margin: 0 0 20px;
}
.cozum-card--featured .cozum-card__ozet {
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
}
.cozum-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-green);
}
.cozum-card--featured .cozum-card__link {
  color: var(--brand-glow);
}

/* === Kapanış CTA (liste sayfası) === */
.cozum-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1a3a52 100%);
  padding: 96px 20px;
  text-align: center;
}
.cozum-cta__inner { max-width: 720px; margin: 0 auto; }
.cozum-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;
}
.cozum-cta p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 36px;
  max-width: 560px;
}

/* === Detay sayfası: Hero === */
.cozumdetay-hero {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 100%);
  padding: 176px 20px 88px;
}
.cozumdetay-back {
  display: inline-block;
  color: var(--brand-glow);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 32px;
}
.cozumdetay-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.cozumdetay-hat {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-glow);
  margin-bottom: 18px;
}
.cozumdetay-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 0 0 18px;
}
.cozumdetay-ozet {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 540px;
}
.cozumdetay-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--green-a10);
  border: 1px solid var(--green-a25);
  border-radius: var(--radius-card);
  color: var(--eco);
  max-width: 540px;
}
.cozumdetay-badge svg { flex-shrink: 0; margin-top: 2px; }
.cozumdetay-badge span {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.cozumdetay-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.cozumdetay-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.4);
}
.cozumdetay-ph svg { width: 44px; height: 44px; }
.cozumdetay-ph span { font-size: 13px; font-weight: 600; text-align: center; padding: 0 20px; }

/* === Detay sayfası: İhtiyaç + Koşullar === */
.cozumdetay-body {
  background: #ffffff;
  padding: 88px 20px;
}
.cozumdetay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.cozumdetay-col h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}
.cozumdetay-col p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(24, 24, 24, 0.72);
  margin: 0;
}

/* === Detay sayfası: CTA === */
.cozumdetay-cta {
  background: #f8fafc;
  padding: 88px 20px;
  text-align: center;
}
.cozumdetay-cta__inner { max-width: 640px; margin: 0 auto; }
.cozumdetay-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0 0 14px;
}
.cozumdetay-cta p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(24, 24, 24, 0.65);
  margin: 0 auto 28px;
  max-width: 480px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .cozum-grid { grid-template-columns: 1fr; }
  .cozumdetay-hero__grid { grid-template-columns: 1fr; }
  .cozumdetay-hero__media { order: -1; }
  .cozumdetay-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .cozum-entegre { padding: 64px 20px 32px; }
  .cozum-ortaklik { padding: 32px 20px 72px; }
  .cozum-cta { padding: 64px 20px; }
  .cozumdetay-hero { padding: 140px 20px 56px; }
  .cozumdetay-body { padding: 56px 20px; }
  .cozumdetay-cta { padding: 56px 20px; }
}
