/* ==========================================================
   Tam Ekran Blog Kaydırıcı — Stil Dosyası
   Renk paleti, referans verilen hero bileşeniyle uyumludur.
   ========================================================== */

:root {
  --tebk-primary: #04CFC6;
  --tebk-primary-dark: #03A89F;
  --tebk-primary-contrast: #FFFFFF;
  --tebk-consult: #0077C7;
  --tebk-consult-dark: #005FA3;
  --tebk-bg-base: #091C25;
  --tebk-card: #091C25;
  --tebk-card-alt: #241F30;
  --tebk-text: #FFFFFF;
  --tebk-muted: #9A96A3;
  --tebk-sep: rgba(4, 207, 198, 0.18);
  --tebk-col-width: min(680px, 90vw); /* içerik sütunu genişliği — görsel ve başlık için ortak referans */
}

/* Kapsayıcı: tarayıcı penceresinin tamamını kaplar, sayfa akışından
   çıkar (position: fixed). Böylece masaüstünde ne yatayda ne dikeyde
   fazladan bir sayfa kaydırması oluşmaz; ekrana birebir oturur.
   Navbar eklentisi de sabit (fixed) olduğundan ayrıca kendisi üstte
   şeffaf/bulanık şekilde yüzer — offset hesaplamaya gerek kalmaz. */
.tebk-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--tebk-bg-base);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.tebk-root *,
.tebk-root *::before,
.tebk-root *::after {
  box-sizing: border-box;
}

/* Kaydırma kapsayıcısı: dikey snap-scroll — sayfadaki TEK kaydırılabilir alan burasıdır */
.tebk-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Bir slaytın yazar paneli ya da tam metin sayfası açıkken JS
   tarafından .tebk-root'a eklenir: o sırada dikey (yazılar arası)
   kaydırma tamamen kapanır -- ne dokunma/tekerlek kaydırması ne de
   ok butonları/ilerleme noktaları çalışır. Bu sayfalarda yalnızca
   yatay (sağa/sola) hareket serbesttir. */
.tebk-root.tebk-scroll-locked .tebk-wrapper {
  overflow-y: hidden;
}

.tebk-root.tebk-scroll-locked .tebk-nav-arrows,
.tebk-root.tebk-scroll-locked .tebk-progress {
  display: none;
}

.tebk-wrapper::-webkit-scrollbar {
  display: none;
}
.tebk-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Tek bir tam ekran "kart". Dikeyde .tebk-wrapper ile kartlar arası
   geçiş yapılır (yukarı/aşağı kaydırma — mevcut davranış). Yatayda ise
   kartın kendi İÇİNDE iki "sayfa" bulunur: ana içerik (görsel, başlık)
   ve — sağa kaydırınca açılan — yazar paneli. Bu iki sayfa
   .tebk-slide__pager tarafından yönetilir (bkz. aşağı). .tebk-slide
   artık yalnızca konumlandırma/kırpma görevi görür; eski flex/padding
   kuralları .tebk-slide__page'e taşındı. */
.tebk-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--tebk-card);
}

/* Yatay sayfalayıcı: iki sayfa yan yana (%200 genişlik), sürükleme
   sırasında JS ile transform: translateX(...) uygulanır. Sürükleme
   bitince ya açık (yazar paneli görünür) ya da kapalı (ana içerik)
   konuma "snap" eder. */
.tebk-slide__pager {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(-33.3333%); /* varsayılan: ana içerik görünür (ortadaki sayfa) */
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.tebk-slide__pager.is-dragging {
  transition: none;
}

/* Sağa kaydırınca 1. sayfa (yazar paneli) görünür hale gelir. */
.tebk-slide__pager.is-open {
  transform: translateX(0%);
}

/* Sola kaydırınca 3. sayfa (yazının tam içeriği — "Devamını Oku"
   davranışının kaydırma karşılığı) görünür hale gelir. */
.tebk-slide__pager.is-content-open {
  transform: translateX(-66.6666%);
}

.tebk-slide__page {
  position: relative;
  width: 33.3333%;
  height: 100%;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Bu sayfa içinde (özellikle yazar paneli ve tam metin sayfasında)
     dikey kaydırma sona erdiğinde (üst/alt sınıra ulaşıldığında)
     kaydırmanın dış kapsayıcıya (.tebk-wrapper) "zincirlenip" bir
     sonraki/önceki yazı kartına geçmesini engeller. Böylece yazar
     panelindeyken aşağı kaydırmak başka bir yazının yazarına,
     içerik (Devamını Oku) sayfasındayken aşağı kaydırmak başka bir
     yazının içeriğine geçilmesine yol açmaz. */
  overscroll-behavior-y: contain;
}

.tebk-slide__page::-webkit-scrollbar {
  display: none;
}
.tebk-slide__page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Ana içerik sayfası: eskiden .tebk-slide üzerinde duran flex/padding
   düzeni artık burada (görünüm birebir korunuyor).

   Mobilde: flex + align-items:center → görsel ve başlık ayrı ayrı
   ortalanır (eski davranış aynen korunuyor).

   Masaüstünde (bkz. Responsive bölümü, min-width:781px): flex yerine
   grid kullanılıyor. Tek bir sütun (--tebk-col-width) tanımlanıp bu
   sütun ekranda ortalanıyor; görsel ve başlık ise bu sütunun İÇİNDE
   sola yaslanıyor (justify-self:start). Böylece ikisinin genişliği
   farklı olsa bile (görsel dar, başlık geniş) sol kenarları birebir
   çakışıyor. */
.tebk-slide__page--main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 28px 56px;
}

.tebk-slide__media {
  position: relative;
  z-index: 0;
  width: min(680px, 90vw, calc(34vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 24px;
  background: var(--tebk-card-alt);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.tebk-slide__media img,
.tebk-slide__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tebk-slide__media-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(4, 207, 198, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 119, 199, 0.2), transparent 55%),
    var(--tebk-card);
}

/* Görsel artık arka plan olmadığı, metin üstünde durmadığı için
   okunabilirlik gradyanına gerek yok. */
.tebk-slide__overlay {
  display: none;
}

.tebk-slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  color: var(--tebk-text);
}

.tebk-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tebk-primary);
  color: var(--tebk-primary-contrast);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tebk-slide__title {
  margin: 0 0 14px 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tebk-text);
}

.tebk-slide__excerpt {
  margin: 0 0 18px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--tebk-muted);
  font-weight: 400;
  max-width: 560px;
}

.tebk-slide__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--tebk-muted);
}

.tebk-meta-dot {
  opacity: 0.6;
}

.tebk-slide__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Butonlar (referans koddaki .eah-btn ile aynı dil) */
.tebk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tebk-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tebk-btn--primary {
  background: var(--tebk-primary);
  color: var(--tebk-primary-contrast);
}
.tebk-btn--primary:hover {
  background: var(--tebk-primary-dark);
}

.tebk-btn--secondary {
  background: var(--tebk-card-alt);
  color: var(--tebk-text);
}
.tebk-btn--secondary:hover {
  background: #2C2638;
}

.tebk-btn:focus-visible {
  outline: 2px solid var(--tebk-primary);
  outline-offset: 2px;
}

/* İlk kart için "aşağı kaydır" ipucu */
.tebk-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  color: var(--tebk-muted);
  opacity: 0.85;
  animation: tebk-bounce 1.8s ease-in-out infinite;
  pointer-events: none;
}

.tebk-slide:last-child .tebk-scroll-hint {
  display: none;
}

@keyframes tebk-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

/* Sağ kenar ilerleme noktaları */
.tebk-progress {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tebk-progress__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, height 0.25s ease, width 0.25s ease;
}

.tebk-progress__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.tebk-progress__dot.is-active {
  background: var(--tebk-primary);
  height: 22px;
}

/* Yukarı / aşağı ok butonları */
.tebk-nav-arrows {
  position: absolute;
  right: 22px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tebk-nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--tebk-sep);
  background: rgba(29, 26, 36, 0.6);
  color: var(--tebk-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tebk-nav-arrow svg {
  width: 18px;
  height: 18px;
}

.tebk-nav-arrow:hover {
  background: var(--tebk-primary);
  border-color: var(--tebk-primary);
}

/* "Yazari gor" ipucu -- kaldirildi: ne masaustunde ne mobilde
   gorunur (buton + sallanma animasyonu tamamen gizli). Yazar paneli
   artik yalnizca mobilde saga kaydirma hareketiyle aciliyor; oge
   erisilebilirlik/JS uyumlulugu icin DOM'da kaliyor, sadece
   gorsel olarak devre disi. */
.tebk-author-hint {
  display: none !important;
}

.tebk-author-hint__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tebk-card-alt);
}

.tebk-author-hint__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tebk-author-hint__text {
  font-size: 13px;
  font-weight: 600;
}

.tebk-author-hint__chevron {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Yazar paneli sayfası — fotoğraf, ad soyad, hakkında, kısa yorum. */
.tebk-slide__page--author {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tebk-card);
  padding: 110px 28px 56px;
}

.tebk-author {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
  color: var(--tebk-text);
}

.tebk-author__close {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--tebk-sep);
  background: rgba(9, 28, 37, 0.5);
  color: var(--tebk-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tebk-author__close svg {
  width: 16px;
  height: 16px;
  order: 2;
  transform: scaleX(-1);
}

.tebk-author__photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tebk-card);
  border: 2px solid var(--tebk-primary);
}

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

.tebk-author__name {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tebk-author__about {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tebk-muted);
}

.tebk-author__quote {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--tebk-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(4, 207, 198, 0.08);
  color: var(--tebk-text);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 780px) {
  .tebk-slide__page--author {
    padding: 96px 20px 40px;
  }
  .tebk-author__photo {
    width: 84px;
    height: 84px;
  }
  .tebk-author__name {
    font-size: 20px;
  }
}

/* İçerik sayfası — ana karttan sola kaydırınca açılır (mobilde),
   "Devamını Oku" ile aynı tam metni, sayfadan hiç ayrılmadan gösterir. */
.tebk-slide__page--content {
  background: var(--tebk-card);
}

.tebk-content {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 110px 28px 70px;
  color: var(--tebk-text);
}

.tebk-content__close {
  position: sticky;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 10px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--tebk-sep);
  background: rgba(9, 28, 37, 0.85);
  backdrop-filter: blur(6px);
  color: var(--tebk-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tebk-content__close svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1); /* içerik sayfasından yazıya "geri" oku sağı gösterir */
}

.tebk-content__title {
  margin: 0 0 14px 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tebk-text);
}

.tebk-content .tebk-slide__meta {
  margin-bottom: 26px;
}

@media (max-width: 780px) {
  .tebk-content {
    padding: 96px 40px 50px 20px;
  }
  .tebk-content__title {
    font-size: 22px;
  }
}

.tebk-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tebk-muted);
  font-size: 16px;
}

/* ================= Responsive ================= */

/* Masaüstü: görsel ile başlık aynı sol kenara hizalansın.
   .tebk-slide'ı grid'e çeviriyoruz; tek sütun genişliği
   --tebk-col-width (= min(680px, 90vw), başlığın eski
   max-width değeriyle birebir aynı). Bu sütun ekranda
   justify-content:center ile ortalanıyor; görsel ve içerik
   ise justify-self:start ile sütunun SOLUNA yaslanıyor.
   Görselin kendi genişliği (aspect-ratio + vh sınırı yüzünden)
   sütundan dar olsa bile artık kendi başına ortalanmıyor,
   sütunun solunda duruyor — tıpkı başlık gibi. */
@media (min-width: 781px) {
  .tebk-slide__page--main {
    display: grid;
    grid-template-columns: var(--tebk-col-width);
    justify-content: center;
    align-content: center;
  }

  .tebk-slide__media {
    justify-self: start;
    margin: 0 0 24px 0;
  }

  .tebk-slide__content {
    justify-self: start;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .tebk-slide__title {
    font-size: 26px;
  }
}

@media (max-width: 780px) {
  .tebk-slide__page--main {
    padding: 96px 40px 40px 20px;
  }
  .tebk-slide__media {
    width: min(680px, calc(100vw - 60px), calc(34vh * 16 / 9));
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .tebk-slide__title {
    font-size: 23px;
  }
  .tebk-slide__excerpt {
    font-size: 14.5px;
  }
  .tebk-nav-arrows {
    display: none; /* mobilde dokunarak kaydırma yeterli */
  }
  .tebk-progress {
    right: 12px;
  }
}

@media (max-width: 420px) {
  .tebk-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  .tebk-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* ==========================================================
   Tekil Yazı Sayfası (templates/single-tebk_post.php)
   Temanın header/footer'ından bağımsız, kendi tam sayfa görünümü.
   ========================================================== */

/* Navbar eklentisiyle uyum: tekil yazı sayfasında navbar da tıpkı
   /blog akış sayfasında olduğu gibi görselin üstünde şeffaf/yüzen bir
   çubuk olarak dursun; içerik navbarın arkasından değil, ekranın en
   üstünden başlasın (spacer boşluğu bırakılmasın, ekstra padding oluşmasın). */
body.tebk-single-body #scm-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}

body.tebk-single-body #scm-navbar-spacer {
  display: none !important;
}

html,
body.tebk-single-body {
  margin: 0;
  padding: 0;
  background: var(--tebk-bg-base);
}

.tebk-single {
  width: 100%;
  min-height: 100vh;
  background: var(--tebk-bg-base);
  color: var(--tebk-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.tebk-single *,
.tebk-single *::before,
.tebk-single *::after {
  box-sizing: border-box;
}

.tebk-single__hero {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.tebk-single__hero-media {
  position: absolute;
  inset: 0;
}

.tebk-single__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tebk-single__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--tebk-bg-base) 0%,
    rgba(9, 28, 37, 0.85) 30%,
    rgba(9, 28, 37, 0.25) 65%,
    rgba(9, 28, 37, 0.15) 100%
  );
}

.tebk-single__hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 40px;
}

.tebk-single__title {
  margin: 0 0 14px 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tebk-text);
}

.tebk-single__body {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 28px 90px;
}

.tebk-single__content,
.tebk-content__body {
  font-size: 17px;
  line-height: 1.8;
  color: #E7E5EA;
}

.tebk-single__content p,
.tebk-content__body p {
  margin: 0 0 22px 0;
}

.tebk-single__content h2,
.tebk-single__content h3,
.tebk-single__content h4,
.tebk-content__body h2,
.tebk-content__body h3,
.tebk-content__body h4 {
  color: var(--tebk-text);
  font-weight: 800;
  line-height: 1.3;
  margin: 34px 0 16px 0;
}

.tebk-single__content a,
.tebk-content__body a {
  color: var(--tebk-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tebk-single__content img,
.tebk-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px !important;
  overflow: hidden;
  margin: 8px 0 22px 0;
  display: block;
}

.tebk-single__content blockquote,
.tebk-content__body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--tebk-primary);
  color: var(--tebk-muted);
  font-style: italic;
}

.tebk-single__content ul,
.tebk-single__content ol,
.tebk-content__body ul,
.tebk-content__body ol {
  margin: 0 0 22px 0;
  padding-left: 22px;
}

.tebk-single__content li,
.tebk-content__body li {
  margin-bottom: 8px;
}

.tebk-single__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--tebk-sep);
}

@media (max-width: 780px) {
  .tebk-single__hero {
    height: 46vh;
    min-height: 300px;
  }
  .tebk-single__title {
    font-size: 27px;
  }
  .tebk-single__body {
    padding: 32px 20px 70px;
  }
  .tebk-single__content {
    font-size: 16px;
  }
}

@media (max-width: 780px) {
  .tebk-content__body {
    font-size: 16px;
  }
}