/* ============================================================
   BAŞKENT SPOR — TIMELINE COMPONENT
   timeline.css | Horizontal scrollable | Nodes | Cards
   ============================================================ */

/* ---- Timeline Wrapper ---- */
.timeline {
  position: relative;
  padding: var(--sp-4) 0;
}

/* ---- Scroll Controls ---- */
.timeline__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: var(--sp-3);
}

.timeline__scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 2px solid var(--navy);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--navy);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.timeline__scroll-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Scrollable Track ---- */
.timeline__track-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--light-gray) transparent;
  padding-bottom: var(--sp-2);
}
.timeline__track-wrapper::-webkit-scrollbar { height: 6px; }
.timeline__track-wrapper::-webkit-scrollbar-track { background: transparent; }
.timeline__track-wrapper::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 3px;
}

.timeline__track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
  padding: 0 var(--sp-4);
}

/* ---- Horizontal Line ---- */
.timeline__line {
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--light-gray) 5%, var(--light-gray) 95%, transparent 100%);
  z-index: 1;
}

/* ---- Timeline Node ---- */
.timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 220px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* Circle dot */
.timeline__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--light-gray);
  transition: all var(--transition);
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}
.timeline__node:hover .timeline__dot,
.timeline__node.is-active .timeline__dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(227,30,36,0.15);
  transform: scale(1.2);
}

/* Vertical connector line */
.timeline__connector {
  width: 2px;
  height: 32px;
  background: var(--light-gray);
  transition: background var(--transition);
}
.timeline__node:hover .timeline__connector,
.timeline__node.is-active .timeline__connector {
  background: var(--red);
}

/* Card below node */
.timeline__card {
  width: 190px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition);
  margin-top: 4px;
}
.timeline__node:hover .timeline__card,
.timeline__node.is-active .timeline__card {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.timeline__card-img {
  width: 100%;
  height: 110px;
  background: var(--navy);
  overflow: hidden;
}

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

.timeline__card-body {
  padding: 12px 14px;
}

.timeline__card-year {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 4px;
}

.timeline__card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline__card-desc {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .timeline__node { width: 180px; }
  .timeline__card { width: 160px; }
  .timeline__card-img { height: 90px; }
}
