/* ============================================================
   ATIKLER FLAKE — Basında Biz / YouTube Bölümü
   Dosya: assets/anasayfa-youtube-basin.css
   Prefix: .ytb__  — çakışma yok
   Ton: Koyu / Sinematik — Kırmızı Aksanlı
   ============================================================ */

/* ── Değişkenler ── */
.ytb__section {
  --red:        #D32F2F;
  --red2:       #FF5252;
  --red-deep:   #B71C1C;
  --dark:       #0A0B0F;
  --dark2:      #111318;
  --dark3:      #1A1D25;
  --white:      #FFFFFF;
  --border:     rgba(255,255,255,0.07);
  --ease:       cubic-bezier(.22,1,.36,1);
}

/* ── Bölüm ── */
.ytb__section {
  position: relative;
  background: var(--dark2);
  padding: 100px 0 110px;
  overflow: hidden;
  font-family: 'Barlow', sans-serif;
}

/* Arka plan ızgara */
.ytb__section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

/* Kırmızı aura — ortada */
.ytb__section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(211,47,47,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Dekoratif köşe çizgileri */
.ytb__corner {
  position: absolute; width: 60px; height: 60px;
  pointer-events: none; z-index: 1;
}
.ytb__corner--tl {
  top: 24px; left: 24px;
  border-top: 2px solid rgba(211,47,47,0.3);
  border-left: 2px solid rgba(211,47,47,0.3);
}
.ytb__corner--br {
  bottom: 24px; right: 24px;
  border-bottom: 2px solid rgba(211,47,47,0.3);
  border-right: 2px solid rgba(211,47,47,0.3);
}

/* ── İç kapsayıcı ── */
.ytb__wrap {
  position: relative; z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ══════════════════════════════
   BAŞLIK
══════════════════════════════ */
.ytb__head {
  text-align: center;
  margin-bottom: 56px;
}

.ytb__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; color: var(--red2);
  margin-bottom: 18px;
}

.ytb__eyebrow-line {
  display: block; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red2));
}
.ytb__eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--red2), transparent);
}

.ytb__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -1.5px;
  color: var(--white); margin: 0 0 16px;
}
.ytb__title em {
  font-style: normal; color: var(--red2);
  text-shadow: 0 0 40px rgba(255,82,82,0.4);
}

.ytb__subtitle {
  font-size: 15px; color: rgba(255,255,255,0.38);
  line-height: 1.7; max-width: 480px;
  margin: 0 auto;
}

/* ══════════════════════════════
   VİDEO KUTUSU
══════════════════════════════ */
.ytb__player-wrap {
  position: relative;
  border-radius: 20px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(211,47,47,0.1);
  aspect-ratio: 16 / 9;
  background: var(--dark);
  margin-bottom: 48px;
}

/* ── THUMBNAIL ── */
.ytb__thumb {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s var(--ease);
  z-index: 2;
}

/* Fallback: görsel yoksa koyu gradient */
.ytb__thumb:not([style*="background-image"]),
.ytb__thumb[style*="youtube.jpg"] {
  background-color: var(--dark3);
}

/* Karartma örtü */
.ytb__thumb-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.65) 60%,
    rgba(0,0,0,0.82) 100%
  );
  transition: background 0.4s;
}
.ytb__thumb:hover .ytb__thumb-overlay {
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.78) 100%
  );
}

/* Thumb gizleme (video açıldığında) */
.ytb__thumb--hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── PLAY BUTONU — YANIP SÖNER ── */
.ytb__play-btn {
  position: relative; z-index: 3;
  width: 88px; height: 88px;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.ytb__thumb:hover .ytb__play-btn {
  transform: scale(1.08);
}

/* Play ikonu çekirdeği */
.ytb__play-icon {
  position: relative; z-index: 4;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 0 rgba(211,47,47,0.5),
    0 12px 36px rgba(211,47,47,0.5);
  transition: background 0.25s, box-shadow 0.25s;
}
.ytb__thumb:hover .ytb__play-icon {
  background: var(--red2);
  box-shadow:
    0 0 0 0 rgba(255,82,82,0.5),
    0 16px 44px rgba(255,82,82,0.6);
}

.ytb__play-icon svg {
  width: 28px; height: 28px;
  color: #fff;
  margin-left: 4px; /* görsel ortalama */
}

/* Yanıp sönen halkalar */
.ytb__play-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(211,47,47,0.6);
  animation: ytbRingPulse 2.4s ease-out infinite;
}
.ytb__play-ring--1 {
  width: 88px; height: 88px;
  animation-delay: 0s;
}
.ytb__play-ring--2 {
  width: 88px; height: 88px;
  animation-delay: 0.8s;
}
.ytb__play-ring--3 {
  width: 88px; height: 88px;
  animation-delay: 1.6s;
}

@keyframes ytbRingPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.9);  opacity: 0;   }
}

/* ── YOUTUBE ROZETİ ── */
.ytb__yt-badge {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ytb__yt-badge svg {
  width: 16px; height: 16px; color: #FF0000; flex-shrink: 0;
}

/* ── ALT META ── */
.ytb__thumb-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 48px 28px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  display: flex; flex-direction: column; gap: 6px;
}

.ytb__thumb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red2);
  width: fit-content;
}

.ytb__thumb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(15px, 2.5vw, 22px);
  font-weight: 900; text-transform: uppercase;
  color: rgba(255,255,255,0.9); letter-spacing: -0.3px;
}

/* ── IFRAME ── */
.ytb__iframe-wrap {
  position: absolute; inset: 0;
  z-index: 1; opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.ytb__iframe-wrap--active {
  opacity: 1;
  pointer-events: all;
  z-index: 5;
}
.ytb__iframe-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ══════════════════════════════
   GALERİ CTA
══════════════════════════════ */
.ytb__cta-wrap {
  display: flex; align-items: center; gap: 0;
}

.ytb__cta-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ytb__cta-content {
  display: flex; align-items: center;
  gap: 32px; padding: 0 32px;
  flex-wrap: wrap; justify-content: center;
}

.ytb__cta-text {
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.ytb__cta-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--white);
}
.ytb__cta-text span {
  font-size: 13px; color: rgba(255,255,255,0.38);
  max-width: 320px; line-height: 1.5;
}

/* Buton */
.ytb__cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 24px; border-radius: 10px;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.ytb__cta-btn:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(211,47,47,0.4);
  transform: translateY(-2px);
}

.ytb__cta-btn-icon svg { width: 16px; height: 16px; }
.ytb__cta-btn-arrow {
  display: flex; align-items: center;
  transition: transform 0.25s;
}
.ytb__cta-btn-arrow svg { width: 15px; height: 15px; }
.ytb__cta-btn:hover .ytb__cta-btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════
   SCROLL ANİMASYONLAR
══════════════════════════════ */
.ytb__anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
}
.ytb__anim.ytb--visible {
  opacity: 1;
  transform: translateY(0);
}
.ytb__player-wrap.ytb__anim { transition-delay: 0.1s; }
.ytb__cta-wrap.ytb__anim    { transition-delay: 0.2s; }

/* ══════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════ */
@media (max-width: 900px) {
  .ytb__section { padding: 72px 0 80px; }
  .ytb__wrap    { padding: 0 28px; }
  .ytb__cta-content { gap: 20px; }
  .ytb__cta-line { display: none; }
  .ytb__play-btn { width: 70px; height: 70px; }
  .ytb__play-icon { width: 60px; height: 60px; }
  .ytb__play-icon svg { width: 22px; height: 22px; }
  .ytb__play-ring--1 { width: 70px; height: 70px; }
  .ytb__play-ring--2 { width: 70px; height: 70px; }
  .ytb__play-ring--3 { width: 70px; height: 70px; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBİL
══════════════════════════════ */
@media (max-width: 600px) {
  .ytb__section { padding: 56px 0 64px; }
  .ytb__wrap    { padding: 0 18px; }
  .ytb__head    { margin-bottom: 36px; }
  .ytb__title   { font-size: clamp(30px, 10vw, 52px); }
  .ytb__player-wrap { border-radius: 14px; margin-bottom: 32px; }
  .ytb__cta-content { flex-direction: column; gap: 16px; padding: 0; }
  .ytb__cta-btn { width: 100%; justify-content: center; }
  .ytb__thumb-meta { padding: 36px 16px 16px; }
  .ytb__yt-badge { top: 12px; right: 12px; font-size: 9px; padding: 5px 10px; }
  .ytb__corner { display: none; }
}