/**
 * Temajet - Akıllı Otomatik Haber Yükleme (Auto-load Next Post / Infinite Scroll) Stilleri
 * 0 CLS, 0ms Blocking Time, Canlı & Jilet Gibi Kurumsal Tasarım
 */

/* ==========================================================================
   0. Animasyonlar & Canlı Sinyal (Pulse) Efektleri
   ========================================================================== */
@keyframes jetBeaconPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.75);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(227, 6, 19, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
  }
}

@keyframes jetAutoloadFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jetAutoloadShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   1. Canlı Sıradaki Haber Önizleme & SEO Barı (Bot Nav)
   ========================================================================== */
.jet-autoload-bot-nav {
  width: 100%;
  max-width: 100%;
  margin: 32px 0 24px 0;
  box-sizing: border-box;
}

.jet-autoload-bot-nav .jet-bot-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  border: 1.5px solid #fed7d7;
  border-left: 5px solid #e30613;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.07);
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.jet-autoload-bot-nav .jet-bot-nav-inner:hover {
  border-color: #fca5a5;
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.12);
  transform: translateY(-1px);
}

.jet-autoload-bot-nav .jet-bot-nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e30613 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.3);
}

.jet-autoload-bot-nav .jet-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: jetBeaconPulse 1.5s infinite;
}

.jet-autoload-bot-nav .jet-bot-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  text-decoration: none !important;
  min-width: 0;
}

.jet-autoload-bot-nav .jet-bot-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.jet-autoload-bot-nav .jet-bot-nav-inner:hover .jet-bot-nav-title {
  color: #e30613;
}

.jet-autoload-bot-nav .jet-bot-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e30613;
  background: #ffffff;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.jet-autoload-bot-nav .jet-bot-nav-inner:hover .jet-bot-nav-cta {
  background: #e30613;
  color: #ffffff;
  border-color: #e30613;
}

/* ==========================================================================
   2. Autoload Ana Konteyneri & Sentinel
   ========================================================================== */
.jet-autoload-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.jet-autoload-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.jet-autoload-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================================================
   3. Sıfır CLS İskelet Yükleyici (Skeleton Loader)
   ========================================================================== */
.jet-autoload-skeleton {
  min-height: 480px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin: 35px 0;
  box-sizing: border-box;
}

.jet-autoload-skeleton > div {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: jetAutoloadShimmer 1.5s infinite ease-in-out;
  border-radius: 4px;
}

.jet-autoload-skeleton .jet-skel-ribbon {
  height: 38px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 6px;
}

.jet-autoload-skeleton .jet-skel-cat {
  height: 24px;
  width: 90px;
  margin-bottom: 12px;
}

.jet-autoload-skeleton .jet-skel-title {
  height: 36px;
  width: 85%;
  margin-bottom: 16px;
}

.jet-autoload-skeleton .jet-skel-meta {
  height: 20px;
  width: 45%;
  margin-bottom: 24px;
}

.jet-autoload-skeleton .jet-skel-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  margin-bottom: 24px;
  border-radius: 6px;
}

.jet-autoload-skeleton .jet-skel-line {
  height: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.jet-autoload-skeleton .jet-skel-line.short {
  width: 60%;
}

/* ==========================================================================
   4. Yüklenen Haber & Jilet Gibi Geçiş Bölücüsü (Transition Bar)
   ========================================================================== */
.jet-autoload-post-item {
  position: relative;
  margin-top: 50px;
  padding-top: 10px;
  animation: jetAutoloadFadeIn 0.35s ease-out;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Canlı & Jilet Gibi Sıradaki Habere Geçiş Şeridi */
.jet-autoload-transition-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0 26px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.jet-autoload-transition-bar .jet-trans-line {
  flex: 1 1 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e30613, transparent);
  opacity: 0.8;
}

.jet-autoload-transition-bar .jet-trans-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e30613;
  color: #e30613;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.16);
  white-space: nowrap;
  flex-shrink: 0;
}

.jet-trans-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #e30613;
  border-radius: 50%;
  animation: jetBeaconPulse 1.5s infinite;
  flex-shrink: 0;
}

/* E-E-A-T & Google Discover İlerleme / Ribbon Çubuğu */
.jet-autoload-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid #fed7d7;
  border-left: 5px solid #e30613;
  border-radius: 6px;
  padding: 11px 18px;
  margin-bottom: 22px;
  box-shadow: 0 3px 10px rgba(227, 6, 19, 0.06);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.jet-autoload-ribbon .jet-ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jet-autoload-ribbon .jet-ribbon-badge {
  background: linear-gradient(135deg, #e30613 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.28);
}

.jet-autoload-ribbon .jet-ribbon-reason {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.jet-autoload-ribbon .jet-ribbon-right .jet-ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e30613;
  background: #ffffff;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.jet-autoload-ribbon .jet-ribbon-right .jet-ribbon-link:hover {
  background: #e30613;
  color: #ffffff !important;
  border-color: #e30613;
}

/* Haber Başlığı & Kategori */
.jet-autoload-entry-header {
  margin-bottom: 18px;
}

.jet-autoload-heading {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 10px 0 14px 0;
  letter-spacing: -0.4px;
}

.jet-autoload-heading a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.jet-autoload-heading a:hover {
  color: #e30613;
}

.jet-autoload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 20px;
}

.jet-autoload-meta .jet-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.jet-autoload-meta i {
  color: #94a3b8;
  margin-right: 4px;
}

/* Kapak Görseli */
.jet-autoload-media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 24px;
  background: #f1f5f9;
  box-sizing: border-box;
}

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

/* Haber İçeriği */
.jet-autoload-content {
  font-size: 17px;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 30px;
}

.jet-autoload-content p {
  margin-bottom: 20px;
}

.jet-autoload-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Alt Kısım / Footer */
.jet-autoload-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   5. Akış Sonu ve Sıradaki Habere Geç Kartı (End Box - Canlı & Jilet Gibi)
   ========================================================================== */
.jet-autoload-end-box {
  margin: 50px 0 35px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.jet-autoload-end-box .jet-end-box-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.jet-autoload-end-box .jet-end-box-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e30613 0%, #ff4d58 50%, #e30613 100%);
}

.jet-autoload-end-box .jet-end-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.jet-end-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #dc2626;
  border-radius: 50%;
  animation: jetBeaconPulse 1.5s infinite;
}

.jet-autoload-end-box .jet-end-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.jet-autoload-end-box .jet-end-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

/* Sıradaki Haber Hedef Kart Önizlemesi */
.jet-end-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #e30613;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 0 auto 24px auto;
  max-width: 560px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.jet-end-preview-icon {
  font-size: 22px;
  color: #e30613;
  flex-shrink: 0;
}

.jet-end-preview-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jet-autoload-end-box .jet-end-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e30613 0%, #b91c1c 100%);
  color: #ffffff !important;
  padding: 13px 36px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.35);
  transition: all 0.25s ease;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
}

.jet-autoload-end-box .jet-end-next-btn:hover {
  background: linear-gradient(135deg, #c90510 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.45);
  color: #ffffff !important;
}

.jet-autoload-end-box .jet-end-next-btn i {
  transition: transform 0.2s ease;
}

.jet-autoload-end-box .jet-end-next-btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   6. Canlı Yüzen Toast Bildirimi (Floating Live Notification)
   ========================================================================== */
.jet-autoload-toast {
  position: fixed;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid #e30613;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  width: 440px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}

.jet-autoload-toast.jet-toast-show {
  bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

.jet-autoload-toast.jet-toast-hide {
  bottom: -90px;
  opacity: 0;
  pointer-events: none;
}

.jet-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.jet-toast-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #e30613;
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.8);
  animation: jetBeaconPulse 1.5s infinite;
  flex-shrink: 0;
}

.jet-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.jet-toast-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f87171;
}

.jet-toast-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jet-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.jet-toast-close:hover {
  color: #ffffff;
}


/* ==========================================================================
   8. Mobil / Tablet Uyumu (Taşmaları %100 Önleyen Duyarlı Tasarım)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .jet-autoload-heading {
    font-size: 22px;
    line-height: 1.35;
  }

  .jet-autoload-bot-nav .jet-bot-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .jet-autoload-bot-nav .jet-bot-nav-link {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .jet-autoload-bot-nav .jet-bot-nav-title {
    white-space: normal;
    font-size: 14px;
    line-height: 1.4;
  }

  .jet-autoload-bot-nav .jet-bot-nav-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .jet-autoload-transition-bar {
    gap: 10px;
    margin: 28px 0 20px 0;
  }

  .jet-autoload-transition-bar .jet-trans-chip {
    font-size: 11px;
    padding: 5px 14px;
  }

  .jet-autoload-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .jet-autoload-ribbon .jet-ribbon-right {
    width: 100%;
  }

  .jet-autoload-ribbon .jet-ribbon-right .jet-ribbon-link {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .jet-autoload-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .jet-autoload-end-box .jet-end-box-card {
    padding: 26px 16px;
  }

  .jet-autoload-end-box .jet-end-title {
    font-size: 20px;
  }

  .jet-end-preview-card {
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .jet-autoload-end-box .jet-end-next-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .jet-autoload-toast {
    width: calc(100% - 24px);
    left: 12px;
    transform: none;
  }

  .jet-autoload-toast.jet-toast-show {
    bottom: 16px;
  }
}
