/* ============================================================================
   [AI-MIMARI-NOTU: ADIM 4 — KİŞİSEL İZLEME & OKUMA ZAMAN TÜNELİ (TIMELINE)]
   Bu CSS dosyası (`assets/css/timeline.css`), ziyaretçilerin Bayram'ın medya tüketim
   yolculuğunu (yıllara ve tarihlere göre izlenen/okunan yapımlar) kronolojik dikey bir
   omurga hattı üzerinde görselleştiren estetik zaman tüneli sayfasını biçimlendirir.
   ============================================================================ */

.timeline-wrap {
  padding-bottom: 80px;
}

.timeline-hero {
  text-align: center;
  margin-bottom: 28px;
}
.timeline-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.timeline-hero .sub {
  color: var(--txt-sub, #9ca3af);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Kontroller: Kategori Filtresi & Sıralama Modu */
.timeline-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}
.timeline-cat-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-radius: 99px;
  max-width: 100%;
  scrollbar-width: none;
}
.timeline-cat-nav::-webkit-scrollbar {
  display: none;
}
.timeline-cat-btn {
  border: 0;
  background: transparent;
  color: var(--txt-sub, #9ca3af);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.timeline-cat-btn:hover {
  color: var(--txt, #fff);
  background: rgba(255, 255, 255, 0.06);
}
.timeline-cat-btn.is-active {
  color: #fff;
  background: var(--accent, #0a7fd1);
  box-shadow: 0 4px 12px rgba(10, 127, 209, 0.35);
}

.timeline-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline-mode-btn {
  border: 0;
  background: transparent;
  color: var(--txt-sub, #9ca3af);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.timeline-mode-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--txt, #fff);
}

/* Dikey Zaman Tüneli */
.timeline-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 16px 60px;
}
.timeline-spine {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 28px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent, #0a7fd1), #f5a623 45%, #52e3a4 80%, rgba(10, 127, 209, 0.1));
  border-radius: 99px;
}
@media (min-width: 768px) {
  .timeline-spine {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Yıl Grubu Başlığı */
.timeline-year-group {
  position: relative;
  margin-bottom: 36px;
}
.timeline-year-header {
  position: relative;
  text-align: center;
  margin: 32px 0 20px;
  z-index: 3;
}
.timeline-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 22px;
  border-radius: 99px;
  background: var(--glass-hi);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(10, 127, 209, 0.2);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}
.timeline-year-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, #5cc8ff);
}

/* Kart Öğeleri */
.timeline-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.timeline-node-dot {
  position: absolute;
  left: 22px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0b0d13;
  border: 3px solid var(--accent, #0a7fd1);
  box-shadow: 0 0 10px rgba(10, 127, 209, 0.5);
  z-index: 2;
}
.timeline-item.is-fav .timeline-node-dot {
  border-color: #f5a623;
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.7);
}
@media (min-width: 768px) {
  .timeline-node-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-card {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  width: calc(100% - 56px);
  margin-left: 56px;
}
@media (min-width: 768px) {
  .timeline-item.is-left .timeline-card {
    width: calc(50% - 32px);
    margin-left: 0;
    margin-right: auto;
  }
  .timeline-item.is-right .timeline-card {
    width: calc(50% - 32px);
    margin-left: auto;
    margin-right: 0;
  }
}
.timeline-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.24);
}
.timeline-thumb {
  width: 65px;
  height: 95px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.timeline-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.timeline-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.timeline-cat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(10, 127, 209, 0.18);
  color: #5cc8ff;
}
.timeline-score-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffc247;
}
.timeline-fav-pill {
  font-size: 0.72rem;
  font-weight: 750;
  color: #ffc247;
}
.timeline-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-sub-txt {
  font-size: 0.78rem;
  color: var(--txt-sub, #9ca3af);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-date-lbl {
  font-size: 0.72rem;
  color: var(--txt-sub, #7e8798);
  margin-top: 4px;
}
