/**
 * ==========================================================================
 * NEWSKENT - TRENDLER & POPÜLER HABERLER MODÜLÜ (KURUMSAL & ŞIK PREMİUM EDİTİON)
 * Benzersiz İzolasyon Sınıfı: .newskent-trending-premium
 * Sitedeki diğer tüm alanlardan (Header, Video Galeri, Footer) %100 İZOLEDİR.
 * 0 CLS, 0ms TTFB, Kurumsal Rank Badges, Canlı Pulse Rozeti.
 * ==========================================================================
 */

.newskent-trending-premium {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
  clear: both;
  font-family: var(--ttp-font, inherit);
}

.newskent-trending-premium .ttp-box {
  background: var(--ttp-bg, #ffffff);
  border: 1px solid var(--ttp-border, #f1f5f9);
  border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(15, 23, 42, 0.03);
  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 (ZARİF SOL BAŞLIK + SAĞ ÖNE ÇIKANLAR ROZETİ)
   -------------------------------------------------------------------------- */
.newskent-trending-premium .ttp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  gap: 10px;
  flex-wrap: wrap;
}

.newskent-trending-premium .ttp-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newskent-trending-premium .ttp-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--ttp-icon-bg, #e63946);
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.25);
}

.newskent-trending-premium .ttp-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--ttp-heading-color, #0f172a);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
  font-family: var(--ttp-font, inherit);
}

.newskent-trending-premium .ttp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Zarif "ÖNE ÇIKANLAR" Durum Rozeti */
.newskent-trending-premium .ttp-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  user-select: none;
}

.newskent-trending-premium .ttp-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ttp-icon-bg, #e63946);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.newskent-trending-premium .ttp-status-text {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   2. SLIDER / CAROUSEL SARMALAYICI & NAVİGASYON OKLARI
   -------------------------------------------------------------------------- */
.newskent-trending-premium .ttp-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Navigasyon Okları */
.newskent-trending-premium .newskent-trend-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--ttp-nav-bg, #ffffff);
  color: var(--ttp-nav-color, #0f172a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.newskent-trending-premium .newskent-trend-nav-btn:hover {
  background: var(--ttp-title-hover, #e63946);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.newskent-trending-premium .newskent-trend-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.newskent-trending-premium .newskent-trend-nav-btn svg {
  display: block;
  pointer-events: none;
}

.newskent-trending-premium .newskent-trend-nav-prev {
  left: -10px;
}

.newskent-trending-premium .newskent-trend-nav-next {
  right: -10px;
}

/* --------------------------------------------------------------------------
   3. KART GRID & AKICI CAROUSEL TRACK
   -------------------------------------------------------------------------- */
.newskent-trending-premium .ttp-grid,
.newskent-trending-premium .newskent-trending-track {
  display: flex !important;
  gap: 14px;
  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;
  padding: 4px 2px 8px 2px;
  box-sizing: border-box;
  cursor: grab;
  will-change: scroll-position;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.newskent-trending-premium .ttp-grid::-webkit-scrollbar,
.newskent-trending-premium .newskent-trending-track::-webkit-scrollbar {
  display: none;
}

.newskent-trending-premium .ttp-grid.is-dragging,
.newskent-trending-premium .newskent-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;
}

.newskent-trending-premium .ttp-grid.is-dragging a,
.newskent-trending-premium .newskent-trending-track.is-dragging a {
  pointer-events: none !important;
}

/* Kart Tasarımı (Zarif & Kompakt) */
.newskent-trending-premium .ttp-card,
.newskent-trending-premium .newskent-trending-card {
  flex: 0 0 calc((100% - (12px * (var(--ttp-cols-desktop, 5) - 1))) / var(--ttp-cols-desktop, 5));
  max-width: calc((100% - (12px * (var(--ttp-cols-desktop, 5) - 1))) / var(--ttp-cols-desktop, 5));
  flex-shrink: 0;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--ttp-info-bg, #ffffff);
  border: 1px solid var(--ttp-border, #eef2f6);
  border-radius: var(--ttp-card-radius, 8px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s ease;
  position: relative;
  box-sizing: border-box;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.newskent-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;
}

.newskent-trending-premium .ttp-card:hover,
.newskent-trending-premium .newskent-trending-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   4. GÖRSEL KAPSAYICI & IMAGE DÜZENİ (16/9, NATIVE, SIFIR OVERLAY)
   -------------------------------------------------------------------------- */
.newskent-trending-premium .ttp-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ttp-card-radius, 10px) var(--ttp-card-radius, 10px) 0 0;
  overflow: hidden;
  background: #f1f5f9;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.newskent-trending-premium .ttp-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--ttp-card-radius, 10px) var(--ttp-card-radius, 10px) 0 0;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
}

.newskent-trending-premium .ttp-card:hover .ttp-thumb,
.newskent-trending-premium .newskent-trending-card:hover .ttp-thumb {
  transform: scale(1.04);
}

/* Canlı Okunma Sayısı Rozeti */
.newskent-trending-premium .ttp-live-views-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  padding: 2px 7px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.newskent-trending-premium .ttp-live-views-badge i {
  font-size: 9px;
  color: #38bdf8;
}

/* Sıralama Rozetleri (Zarif Altın / Gümüş / Bronz Minimal Tasarım) */
.newskent-trending-premium .ttp-rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.newskent-trending-premium .ttp-rank-badge span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.newskent-trending-premium .ttp-rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.newskent-trending-premium .ttp-rank-1 span { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.newskent-trending-premium .ttp-rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.newskent-trending-premium .ttp-rank-2 span { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.newskent-trending-premium .ttp-rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
}
.newskent-trending-premium .ttp-rank-3 span { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.newskent-trending-premium .ttp-rank-def {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.newskent-trending-premium .ttp-rank-def span { color: #ffffff; }

/* Kategori Rozeti */
.newskent-trending-premium .ttp-cat-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  color: var(--ttp-cat-color, #ffffff);
  background: var(--ttp-cat-bg, rgba(15, 23, 42, 0.82));
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   5. KART ALT ALANI: HABER BAŞLIĞI (ZARİF TİPOGRAFİ, MAX 2 SATIR)
   -------------------------------------------------------------------------- */
.newskent-trending-premium .ttp-info {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  background: var(--ttp-info-bg, #ffffff);
  border-top: none;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: pan-y;
  pointer-events: none;
  box-sizing: border-box;
}

.newskent-trending-premium .ttp-title {
  font-size: var(--ttp-title-size, 13px) !important;
  font-weight: 650 !important;
  line-height: 1.34 !important;
  color: var(--ttp-title-color, #0f172a) !important;
  font-family: var(--ttp-font, inherit);
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 2.68em;
  max-height: 2.68em;
  transition: color 0.18s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  word-break: break-word;
}

.newskent-trending-premium .ttp-card:hover .ttp-title {
  color: var(--ttp-title-hover, #e63946) !important;
}

.newskent-trending-premium .ttp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
  pointer-events: none;
}

.newskent-trending-premium .ttp-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE KIRILIMLAR: MASAÜSTÜ (5), TABLET (3), MOBİL (1.3 - 1.5)
   -------------------------------------------------------------------------- */
/* Büyük Ekranlar: Masaüstünde 5 veya panelden seçilen kart sayısı */
@media (min-width: 992px) {
  .newskent-trending-premium .ttp-card,
  .newskent-trending-premium .newskent-trending-card {
    flex: 0 0 calc((100% - (14px * (var(--ttp-cols-desktop, 5) - 1))) / var(--ttp-cols-desktop, 5)) !important;
    max-width: calc((100% - (14px * (var(--ttp-cols-desktop, 5) - 1))) / var(--ttp-cols-desktop, 5)) !important;
  }
}

/* Tablet Ekranlar (768px - 991px): 3 kart */
@media (max-width: 991px) and (min-width: 768px) {
  .newskent-trending-premium .ttp-grid,
  .newskent-trending-premium .newskent-trending-track {
    gap: 12px;
  }
  .newskent-trending-premium .ttp-card,
  .newskent-trending-premium .newskent-trending-card {
    flex: 0 0 calc((100% - (12px * 2)) / 3) !important;
    max-width: calc((100% - (12px * 2)) / 3) !important;
  }
}

/* Mobil Ekranlar (max-width: 767px): 1.4 - 1.5 kart görünümü */
@media (max-width: 767px) {
  .newskent-trending-premium {
    overflow: hidden !important;
    max-width: 100% !important;
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .newskent-trending-premium .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .newskent-trending-premium .ttp-box {
    padding: 12px 10px 14px;
    border-radius: 10px;
    box-sizing: border-box !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .newskent-trending-premium .ttp-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .newskent-trending-premium .ttp-heading {
    font-size: 14.5px;
  }

  .newskent-trending-premium .ttp-carousel-wrapper {
    position: relative;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .newskent-trending-premium .ttp-grid,
  .newskent-trending-premium .newskent-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: 10px;
    padding-bottom: 4px;
    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;
  }

  .newskent-trending-premium .ttp-grid::-webkit-scrollbar,
  .newskent-trending-premium .newskent-trending-track::-webkit-scrollbar {
    display: none !important;
  }

  /* Mobilde oklar: Dokunmatik kaydırmayı engellememesi için gizlenir */
  .newskent-trending-premium .newskent-trend-nav-btn {
    display: none !important;
  }

  /* Mobilde 1.4 - 1.5 kart görünümü */
  .newskent-trending-premium .ttp-card,
  .newskent-trending-premium .newskent-trending-card {
    flex: 0 0 calc(62% - 8px) !important;
    max-width: calc(62% - 8px) !important;
    min-width: 190px !important;
    scroll-snap-align: start;
    box-sizing: border-box !important;
  }

  .newskent-trending-premium .ttp-info {
    padding: 8px 10px 10px;
  }

  .newskent-trending-premium .ttp-title {
    font-size: 13px !important;
    min-height: 2.72em;
    max-height: 2.72em;
  }
}

/* Küçük mobil ekranlar: 1.3 kart görünümü */
@media (max-width: 480px) {
  .newskent-trending-premium .ttp-card,
  .newskent-trending-premium .newskent-trending-card {
    flex: 0 0 74% !important;
    max-width: 74% !important;
    min-width: 180px !important;
  }

  .newskent-trending-premium .ttp-info {
    padding: 8px 9px 9px;
  }

  .newskent-trending-premium .ttp-title {
    font-size: 12.5px !important;
  }
}
