/**
 * Zaman Tüneli & Günün Öne Çıkanları (Trendler) Modülü
 */

:root {
  /* --- Alan ve Hizalama Ayarları --- */
  --main-gap: 20px;                 /* İki modül arasındaki yatay boşluk */

  /* --- Başlık ve Çizgi Ayarları (Zaman Tüneli) --- */
  --tl-title-color: #1e293b;        /* "ZAMAN TÜNELİ" yazı rengi */
  --tl-accent-color: #a81c1c;       /* Başlık altındaki kırmızı vurgu çizgisi */
  --tl-border-color: #e2e8f0;       /* Başlık altındaki ince gri çizgi */

  /* --- Kart (Haber Kutusu) Ayarları --- */
  --tl-card-bg: #ffffff;            /* Kart arka plan rengi */
  --tl-card-border: #edf2f7;        /* Kart çerçeve rengi */
  --tl-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Kart gölgesi */
  --tl-card-radius: 10px;           /* Kart köşe yuvarlatması */

  /* --- Saat Rozeti (Badge) Ayarları --- */
  --tl-badge-bg: #e63946;           /* Saat kapsülünün arka plan rengi */
  --tl-badge-text: #ffffff;         /* Saat yazısının rengi */
  --tl-badge-radius: 20px;          /* Saat kapsülünün yuvarlaklığı */

  /* --- Haber Başlığı Ayarları --- */
  --tl-news-color: #0f172a;          /* Haber başlığı yazı rengi */
  --tl-news-hover: #e63946;          /* Mouse üzerine geldiğindeki renk */
  --tl-news-font-size: 14.5px;       /* Yazı boyutu */

  /* --- Sağ Trend Blok Renk ve Tasarım Ayarları --- */
  --popular-bg: #900c3f;            /* Sağ bloğun ana arka plan rengi (Koyu Kırmızı/Bordo) */
  --popular-title-color: #ffffff;   /* Modül başlık rengi */
  --popular-line-color: rgba(255, 255, 255, 0.35); /* Başlık yanındaki çizgi rengi */
  
  /* --- Sağ Kart ve Yazı Ayarları --- */
  --popular-item-border: rgba(255, 255, 255, 0.12); /* Haber aralarındaki ayraç çizgi rengi */
  --popular-text-color: #ffffff;    /* Haber başlık yazı rengi */
  --popular-hover-color: #ffb703;   /* Hover durumunda başlık rengi */
  --popular-badge-bg: #d90429;      /* Sıra numarası (1,2,3..) badge arka plan rengi */
  --popular-badge-text: #ffffff;    /* Sıra numarası yazı rengi */
}

/* Ana Kapsayıcı Bölüm */
.jet-timeline-section {
  width: 100% !important;
  margin: 15px 0 25px 0;
  box-sizing: border-box;
  clear: both;
}

.jet-timeline-section .container {
  width: 100% !important;
  max-width: 1200px;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: auto;
  margin-right: auto;
}

/* İç içe konteyner düzeltmesi */
#jet-home-main .jet-timeline-section .container,
.widget-area .jet-timeline-section .container,
.widget .jet-timeline-section .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Sol (Zaman Tüneli) ve Sağ (Trendler) Kapsayıcı Düzeni */
.jet-timeline-split-row {
  display: flex !important;
  gap: var(--main-gap, 20px) !important;
  align-items: stretch !important;
  width: 100% !important;
  position: relative;
  box-sizing: border-box;
}

/* Sol Ana Kolon (Zaman Tüneli - Genişleyen Esnek Kolon) */
.jet-timeline-main-col {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.jet-timeline-full-width .jet-timeline-main-col {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Başlık Alanı ve Dekorasyon Çizgileri */
.jet-timeline-header {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tl-border-color);
  box-sizing: border-box;
  width: 100%;
}

.jet-timeline-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--tl-title-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.jet-timeline-title .tl-icon {
  font-size: 18px;
  display: inline-block;
}

.jet-timeline-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 130px;
  height: 3px;
  background-color: var(--tl-accent-color);
  border-radius: 2px;
  z-index: 3;
}

/* 2'li Grid Düzeni */
.jet-timeline-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
  width: 100% !important;
  flex: 1 1 auto;
  box-sizing: border-box;
}

/* Tekil Zaman Tüneli Kartı */
.jet-tl-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--tl-card-bg);
  border: 1px solid var(--tl-card-border);
  border-radius: var(--tl-card-radius);
  box-shadow: var(--tl-card-shadow);
  padding: 12px 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  min-height: 0;
  width: 100%;
}

.jet-tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(230, 57, 70, 0.2);
  text-decoration: none;
}

/* Saat Rozeti (Kapsül) */
.jet-tl-badge {
  flex-shrink: 0;
  background-color: var(--tl-badge-bg);
  color: var(--tl-badge-text);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--tl-badge-radius);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

/* Haber Başlığı */
.jet-tl-title-wrap {
  flex: 1;
  min-width: 0;
}

.jet-tl-news-title {
  font-size: var(--tl-news-font-size);
  font-weight: 700;
  color: var(--tl-news-color);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.jet-tl-card:hover .jet-tl-news-title {
  color: var(--tl-news-hover);
}

/* ==========================================================================
   SAĞ BLOK: GÜNÜN ÖNE ÇIKANLARI / TREND HABERLER (SABİT 350px / 100% YÜKSEKLİK)
   ========================================================================== */

.jet-popular-sidebar-col {
  flex: 0 0 350px !important;
  width: 350px !important;
  max-width: 350px !important;
  min-width: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--popular-bg, #900c3f);
  border-radius: 10px;
  padding: 16px 18px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(144, 12, 63, 0.25);
  color: var(--popular-text-color, #ffffff);
}

/* Trend Başlık Alanı */
.jet-popular-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 10px;
  box-sizing: border-box;
  width: 100%;
}

.jet-popular-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--popular-title-color, #ffffff);
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.jet-popular-line {
  flex: 1;
  height: 1px;
  background-color: var(--popular-line-color, rgba(255, 255, 255, 0.35));
}

/* 6 Haberlik Dikey Liste */
.jet-popular-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 6px;
  width: 100%;
}

/* Tekil Trend Haber Ögesi */
.jet-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--popular-item-border, rgba(255, 255, 255, 0.12));
  flex: 1 1 auto;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
  min-height: 0;
  width: 100%;
}

.jet-popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jet-popular-item:hover {
  text-decoration: none;
  opacity: 0.95;
}

/* Görsel ve Sıra Numarası Rozeti */
.jet-popular-thumb-wrap {
  position: relative;
  width: 80px;
  height: 52px;
  min-width: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
}

.jet-popular-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.jet-popular-item:hover .jet-popular-img {
  transform: scale(1.06);
}

/* 1, 2, 3.. Sıra Numarası Badge */
.jet-popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: var(--popular-badge-bg, #d90429);
  color: var(--popular-badge-text, #ffffff);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Başlık Metni */
.jet-popular-info {
  flex: 1;
  min-width: 0;
}

.jet-popular-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--popular-text-color, #ffffff);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.jet-popular-item:hover .jet-popular-title {
  color: var(--popular-hover-color, #ffb703);
}

/* Dark Theme Desteği */
body.dark-theme {
  --tl-title-color: #f1f5f9;
  --tl-border-color: rgba(255, 255, 255, 0.1);
  --tl-card-bg: #1e293b;
  --tl-card-border: rgba(255, 255, 255, 0.06);
  --tl-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  --tl-news-color: #f8fafc;
}

/* Mobil ve Tablet Responsive Kırılımlar */
@media screen and (max-width: 991px) {
  .jet-timeline-split-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .jet-timeline-main-col,
  .jet-popular-sidebar-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .jet-popular-sidebar-col {
    height: auto !important;
    padding: 16px;
  }
}

@media screen and (max-width: 640px) {
  .jet-timeline-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .jet-tl-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .jet-tl-news-title {
    font-size: 13.5px;
  }
  .jet-tl-badge {
    font-size: 12px;
    padding: 4px 9px;
  }
}
