/* ==========================================================================
   BIO: YouTube Shorts otomasyon pipeline'ı — sayfaya özel bölümler.
   Palet, arka plan, araç çubuğu, hero ve alt bilgi ../styles.css'ten gelir.
   ========================================================================== */

/* BIO: Bu sayfada hero başlığı iki satır — karusel başlığı kadar iri olmasın. */
#hero-title {
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.28;
  /* BIO: Almanca bileşik ad ("…AUTOMATISIERUNGSPIPELINE") dar ekranda tek
     parça kalıp taşıyordu; hiçbir dilde kadraj dışına çıkmasın. */
  overflow-wrap: anywhere;
}

#hero { padding: 54px 0 44px; }

/* ── Bölüm başlıkları ───────────────────────────────────────────────────── */
.section-title {
  margin: 0 0 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-align: center;
  color: #fff;
}

.section-lead {
  margin: 0 auto 34px;
  max-width: 62ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ── Kanallar ───────────────────────────────────────────────────────────── */
.channels { padding-top: 18px; outline: none; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.channel {
  --accent: var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 30px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.channel:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 18px 40px rgba(2, 8, 22, 0.55),
    0 0 40px color-mix(in srgb, var(--accent) 18%, transparent);
}

.channel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(7, 18, 41, 0.94);
  border: 2px solid color-mix(in srgb, var(--accent) 68%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease;
}

.channel:hover .channel-logo {
  transform: scale(1.06);
  box-shadow: 0 0 46px color-mix(in srgb, var(--accent) 55%, transparent);
}

.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.channel-name {
  margin: 20px 0 6px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.04em;
  color: #fff;
  /* BIO: Bölünemeyen uzun marka adı dar ekranda taşmasın. */
  overflow-wrap: anywhere;
}

.channel-lang {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.channel-desc {
  margin: 0 0 22px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.channel-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

.ch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: color 0.28s ease, background 0.28s ease,
              border-color 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.ch-btn svg { width: 17px; height: 17px; display: block; }

.ch-btn:hover,
.ch-btn:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  border-color: currentColor;
}

/* BIO: Platform renkleri — hover'da kendi kimliğine bürünür. */
.ch-yt:hover, .ch-yt:focus-visible {
  background: rgba(255, 0, 40, 0.16);
  border-color: rgba(255, 60, 90, 0.7);
}
.ch-ig:hover, .ch-ig:focus-visible {
  background: rgba(214, 41, 118, 0.16);
  border-color: rgba(226, 92, 160, 0.7);
}

.ch-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── Pipeline adımları ──────────────────────────────────────────────────── */
.pipeline { padding-top: 82px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px 22px;
  background: rgba(10, 24, 50, 0.5);
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--cyan) 45%, transparent);
}

.step-no {
  display: block;
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--cyan) 62%, transparent);
}

.step-title {
  margin: 0 0 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
}

.step-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ── Teknolojiler ───────────────────────────────────────────────────────── */
.tech {
  margin-top: 46px;
  text-align: center;
}

.tech-label {
  margin: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--text-dim);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, transparent);
}

/* ── Açılış animasyonu (../styles.css'teki bgs-enter'ı kullanır) ────────── */
body.is-entering .section-title,
body.is-entering .section-lead,
body.is-entering .channel,
body.is-entering .step,
body.is-entering .tech {
  animation: bgs-enter 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

body.is-entering #channels .section-title { animation-delay: 460ms; }
body.is-entering #channels .section-lead  { animation-delay: 520ms; }
body.is-entering .channel:nth-of-type(1)  { animation-delay: 580ms; }
body.is-entering .channel:nth-of-type(2)  { animation-delay: 650ms; }
body.is-entering #pipeline .section-title { animation-delay: 720ms; }
body.is-entering #pipeline .section-lead  { animation-delay: 770ms; }
body.is-entering .step:nth-child(1) { animation-delay: 820ms; }
body.is-entering .step:nth-child(2) { animation-delay: 870ms; }
body.is-entering .step:nth-child(3) { animation-delay: 920ms; }
body.is-entering .step:nth-child(4) { animation-delay: 970ms; }
body.is-entering .tech { animation-delay: 1030ms; }

/* ── Duyarlı ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { padding-top: 64px; }
}

@media (max-width: 640px) {
  #hero { padding: 32px 0 28px; }
  #hero-title { font-size: clamp(22px, 7vw, 30px); }
  .channel-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .channel { padding: 28px 20px 24px; }
  .channel-logo { width: 112px; height: 112px; }
  /* BIO: Dokunma hedefi 44px'in altına düşmesin. */
  .ch-btn { padding: 13px 18px; font-size: 13px; }
  .section-lead { font-size: 13.5px; margin-bottom: 26px; }
  .pipeline { padding-top: 54px; }
  .tech { margin-top: 34px; }
}

@media (hover: none) {
  .channel:hover { transform: none; box-shadow: none; }
  .channel:hover .channel-logo { transform: none; }
  .ch-btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .channel, .channel-logo, .ch-btn { transition: none; }
  .channel:hover { transform: none; }
  .channel:hover .channel-logo { transform: none; }
  .ch-btn:hover { transform: none; }
}
