/**
 * ==========================================================================
 * TEMAJET - TRENDLER & POPÜLER HABERLER MODÜLÜ (PREMIUM EDITION)
 * Benzersiz İzolasyon Sınıfı: .temajet-trending-premium
 * Sitedeki diğer tüm alanlardan (Header, Video Galeri, Footer) %100 İZOLEDİR.
 * 0 CLS, 0ms TTFB, 3D Rank Badges, Canlı Pulse "● TRENDLER" Rozeti.
 * ==========================================================================
 */

.temajet-trending-premium {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 28px;
  box-sizing: border-box;
  clear: both;
  font-family: var(--ttp-font, inherit);
}

.temajet-trending-premium .ttp-box {
  background: var(--ttp-bg, #ffffff);
  border: 1px solid var(--ttp-border, #e2e8f0);
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --------------------------------------------------------------------------
   1. MODÜL ÜST BAŞLIK ALANI (SOL BAŞLIK + SAĞ CANLI TRENDLER & SEKMELER)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  gap: 12px;
  flex-wrap: wrap;
}

.temajet-trending-premium .ttp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.temajet-trending-premium .ttp-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ttp-icon-bg, #e63946);
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.35);
}

.temajet-trending-premium .ttp-heading {
  font-size: 17px;
  font-weight: 900;
  color: var(--ttp-heading-color, #0f172a);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  font-family: var(--ttp-font, inherit);
}

.temajet-trending-premium .ttp-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Zaman Filtresi Sekmeleri */
.temajet-trending-premium .ttp-tabs {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.temajet-trending-premium .ttp-tab-item {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.temajet-trending-premium .ttp-tab-item:hover {
  color: #0f172a;
}

.temajet-trending-premium .ttp-tab-item.active {
  background: var(--ttp-tab-active-bg, #ffffff);
  color: var(--ttp-tab-active-color, #e63946);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Canlı Pulse "● TRENDLER" Rozeti */
.temajet-trending-premium .ttp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ttp-trend-badge-color, #d90429);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--ttp-trend-badge-bg, rgba(217, 4, 41, 0.08));
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(217, 4, 41, 0.15);
  box-shadow: 0 2px 6px rgba(217, 4, 41, 0.08);
}

.temajet-trending-premium .ttp-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ttp-trend-badge-dot, #d90429);
  border-radius: 50%;
  display: inline-block;
  animation: ttpPulseAnim 1.6s infinite ease-in-out;
}

@keyframes ttpPulseAnim {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
  }
  70% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(217, 4, 41, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
  }
}

/* --------------------------------------------------------------------------
   2. SLIDER / CAROUSEL SARMALAYICI & NAVİGASYON OKLARI
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Cam Efektli (Glassmorphism) Yön Okları */
.temajet-trending-premium .temajet-trend-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--ttp-nav-bg, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ttp-nav-color, #0f172a);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
}

.temajet-trending-premium .temajet-trend-nav-btn:hover {
  background: var(--ttp-title-hover, #e63946);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.temajet-trending-premium .temajet-trend-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.temajet-trending-premium .temajet-trend-nav-btn svg {
  display: block;
  pointer-events: none;
}

.temajet-trending-premium .temajet-trend-nav-prev {
  left: -14px;
}

.temajet-trending-premium .temajet-trend-nav-next {
  right: -14px;
}

/* --------------------------------------------------------------------------
   3. KART GRID & AKICI CAROUSEL TRACK (TOUCH & DRAG ENTEGRASYONU)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-grid,
.temajet-trending-premium .temajet-trending-track {
  display: flex !important;
  gap: 16px;
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  scrollbar-width: none !important; /* Firefox */
  padding: 4px 2px 8px 2px;
  box-sizing: border-box;
  cursor: grab;
  will-change: scroll-position;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.temajet-trending-premium .ttp-grid::-webkit-scrollbar,
.temajet-trending-premium .temajet-trending-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.temajet-trending-premium .ttp-grid.is-dragging,
.temajet-trending-premium .temajet-trending-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.temajet-trending-premium .ttp-grid.is-dragging a,
.temajet-trending-premium .temajet-trending-track.is-dragging a {
  pointer-events: none !important;
}

/* Kart Mimarisi: GPU Donanım Hızlandırması & Sürükleme Koruması */
.temajet-trending-premium .ttp-card,
.temajet-trending-premium .temajet-trending-card {
  flex: 0 0 calc((100% - (16px * (var(--ttp-cols, 5) - 1))) / var(--ttp-cols, 5));
  flex-shrink: 0;
  min-width: 220px;
  max-width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--ttp-info-bg, #ffffff);
  border: 1px solid var(--ttp-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  box-sizing: border-box;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.temajet-trending-premium .ttp-card-link {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-decoration: none !important;
  color: inherit;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: pan-x pan-y !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.temajet-trending-premium .ttp-card:hover,
.temajet-trending-premium .temajet-trending-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

/* --------------------------------------------------------------------------
   4. GÖRSEL KAPSAYICI & IMAGE HOVER ZOOM (%5 AKICI BÜYÜME)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 120px;
  background: #0f172a;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* Tıklamanın doğrudan ebeveyn <a> bağlantısına geçmesini sağlar */
}

.temajet-trending-premium .ttp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(104%) saturate(108%);
  image-rendering: -webkit-optimize-contrast;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important; /* Mobilde ve masaüstünde görsel tıklamayı engellemez, <a> linkine iletir */
}

.temajet-trending-premium .ttp-card:hover .ttp-thumb,
.temajet-trending-premium .temajet-trending-card:hover .ttp-thumb {
  transform: scale(1.05); /* %5 oranında akıcı büyür */
  filter: contrast(108%) saturate(115%);
}

/* Canlı Okunma Sayısı Rozeti (👁️ 1.2k) */
.temajet-trending-premium .ttp-live-views-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.temajet-trending-premium .ttp-live-views-badge i {
  font-size: 10px;
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   5. 3D RANK BADGES (SOL ÜSTTE DERİNLİK EFEKTLİ DAİRESEL SIRA NO)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  user-select: none;
  transition: transform 0.25s ease;
}

.temajet-trending-premium .ttp-card:hover .ttp-rank-badge {
  transform: scale(1.1);
}

.temajet-trending-premium .ttp-rank-badge span {
  font-size: 12px;
  font-weight: 900;
  color: var(--ttp-badge-text, #ffffff);
  line-height: 1;
  font-family: monospace, sans-serif;
  letter-spacing: -0.5px;
}

/* 1. Sıra (Gold) */
.temajet-trending-premium .ttp-rank-1 {
  background: radial-gradient(circle at 30% 30%, #fff6a6 0%, var(--ttp-badge-1, #FFD700) 65%, #b38600 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.temajet-trending-premium .ttp-rank-1 span {
  color: #111111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 2. Sıra (Silver) */
.temajet-trending-premium .ttp-rank-2 {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--ttp-badge-2, #C0C0C0) 65%, #7a8288 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.temajet-trending-premium .ttp-rank-2 span {
  color: #111111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 3. Sıra (Bronze) */
.temajet-trending-premium .ttp-rank-3 {
  background: radial-gradient(circle at 30% 30%, #fbd5b5 0%, var(--ttp-badge-3, #CD7F32) 65%, #804000 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.temajet-trending-premium .ttp-rank-3 span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Genel Sıralar (4+) */
.temajet-trending-premium .ttp-rank-def {
  background: radial-gradient(circle at 30% 30%, #334155 0%, var(--ttp-badge-gen-bg, #0f172a) 70%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.temajet-trending-premium .ttp-rank-def span {
  color: var(--ttp-badge-text, #ffffff);
}

/* --------------------------------------------------------------------------
   6. KATEGORİ ROZETİ (GÖRSEL SOL ALTINDA ŞIK ETİKET)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-cat-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  color: var(--ttp-cat-color, #ffffff);
  background: var(--ttp-cat-bg, #0f172a);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   7. GLASSMORPHISM / GRADIENT KART ALTI BİLGİ KUTUSU (0 CLS)
   -------------------------------------------------------------------------- */
.temajet-trending-premium .ttp-info {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--ttp-info-bg, #ffffff);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: pan-y;
  pointer-events: none; /* Tıklamanın <a> bağlantısını tetiklemesini sağlar */
}

.temajet-trending-premium .ttp-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ttp-title-color, #0f172a);
  font-family: var(--ttp-font, inherit);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Kesinlikle Max 2 Satır Başlık Sabitleme (0 CLS) */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.85em;
  max-height: 2.85em;
  transition: color 0.2s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: pan-y;
  pointer-events: none;
}

.temajet-trending-premium .ttp-meta {
  pointer-events: none;
}

.temajet-trending-premium .ttp-card:hover .ttp-title {
  color: var(--ttp-title-hover, #e63946);
}

.temajet-trending-premium .ttp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 11px;
  color: #64748b;
}

.temajet-trending-premium .ttp-views,
.temajet-trending-premium .ttp-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* --------------------------------------------------------------------------
   9. RESPONSIVE KIRILIMLAR & TOUCH SCROLL-SNAP (MOBİL PARMAKLA AKICI KAYDIRMA)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .temajet-trending-premium .ttp-card {
    flex: 0 0 calc((100% - (16px * 3)) / 4);
    min-width: 210px;
  }
}

@media (max-width: 991px) {
  .temajet-trending-premium .ttp-card {
    flex: 0 0 calc((100% - (14px * 2)) / 3);
    min-width: 200px;
  }
  .temajet-trending-premium .ttp-heading {
    font-size: 15px;
  }
}

/* Mobil Ekranlar: Kenarlardan Sıfır, Touch-Action: Pan-Y ve Scroll-Snap */
/* Mobil Ekranlar: Sadece Mobilde Taşma Koruması (Masaüstü %100 Orijinal) */
@media (max-width: 768px) {
  .temajet-trending-premium {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  .temajet-trending-premium .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .temajet-trending-premium .ttp-box {
    padding: 14px 12px 16px;
    border-radius: 10px;
    box-sizing: border-box !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .temajet-trending-premium .ttp-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .temajet-trending-premium .ttp-tabs {
    order: 3;
    width: 100%;
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-top: 6px;
    padding-bottom: 2px;
  }

  .temajet-trending-premium .ttp-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .temajet-trending-premium .ttp-tab-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .temajet-trending-premium .ttp-carousel-wrapper {
    position: relative;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .temajet-trending-premium .ttp-grid,
  .temajet-trending-premium .temajet-trending-track {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: none !important;
    will-change: scroll-position;
    user-select: none !important;
    -webkit-user-select: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .temajet-trending-premium .ttp-grid::-webkit-scrollbar,
  .temajet-trending-premium .temajet-trending-track::-webkit-scrollbar {
    display: none !important;
  }

  /* Mobil Ok Tuşları: Ekran dışına taşmaması için gizlenir, native dokunmatik kaydırma kullanılır */
  .temajet-trending-premium .temajet-trend-nav-btn,
  .temajet-trending-premium .temajet-trend-nav-prev,
  .temajet-trending-premium .temajet-trend-nav-next {
    display: none !important;
  }

  .temajet-trending-premium .ttp-card,
  .temajet-trending-premium .temajet-trending-card {
    flex: 0 0 75%;
    max-width: 275px;
    min-width: 215px;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    box-sizing: border-box !important;
  }

  .temajet-trending-premium .ttp-title {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .temajet-trending-premium .ttp-card {
    flex: 0 0 82%;
    max-width: 265px;
  }

  .temajet-trending-premium .ttp-info {
    padding: 11px 11px 13px;
  }

  .temajet-trending-premium .ttp-title {
    font-size: 12px;
  }
}
