/*
 * Lider Metal - Tarihçe Sayfası Timeline Stilleri
 */

/* ============================================
   Timeline Section
   ============================================ */

.timeline-section {
  position: relative;
  padding: 60px 0 120px;
  background: #F8F9FA;
  z-index: 2;
}

.timeline-container {
  margin-left: 300px;
  padding-right: 50px;
}

/* ============================================
   Timeline Years Navigation (Swiper)
   ============================================ */

.timeline-years-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}

.timeline-years-swiper {
  flex: 1;
  overflow: hidden;
}

.timeline-years-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
  transition-timing-function: ease-in-out;
}

.timeline-years-swiper .swiper-slide {
  width: auto !important;
  min-width: fit-content;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timeline-years-swiper .swiper-slide-active .year-item {
  transform: scale(1);
}

.timeline-years-swiper .swiper-slide:not(.swiper-slide-active) .year-item {
  opacity: 0.4;
}

.timeline-years-swiper .swiper-slide-active .year-item {
  opacity: 1;
}

/* Ensure duplicated slides work in loop mode */
.timeline-years-swiper .swiper-slide-duplicate .year-item {
  pointer-events: auto;
  cursor: pointer;
}

.timeline-nav-prev,
.timeline-nav-next {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #31508C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: #31508C;
}

.timeline-nav-prev:hover,
.timeline-nav-next:hover {
  background: #31508C;
  color: #ffffff;
  transform: scale(1.05);
}

.timeline-nav-prev.swiper-button-disabled,
.timeline-nav-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.year-item {
  font-size: 24px;
  font-weight: 600;
  color: #999999;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 15px;
  white-space: nowrap;
}

.year-item:hover {
  color: #31508C;
  transform: scale(1.05);
}

.year-item.active {
  color: #31508C;
  font-size: 28px;
  font-weight: 700;
}

.year-item.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #31508C;
}

/* ============================================
   Timeline Content Area
   ============================================ */

.timeline-content-wrapper {
  position: relative;
  min-height: 400px;
}

.timeline-content-item {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.timeline-content-item.active {
  display: block;
  position: relative;
  animation: fadeInContent 0.3s ease-out forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Year Display */
.timeline-year-display {
  font-size: 48px;
  font-weight: 700;
  color: #31508C;
  margin-bottom: 30px;
  position: relative;
  padding-left: 30px;
}

.timeline-year-display::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 60px;
  background: #31508C;
  border-radius: 4px;
}

/* Timeline Text Content */
.timeline-text {
  padding-left: 30px;
}

.timeline-text p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #656565;
  margin-bottom: 20px;
  text-align: justify;
}

.timeline-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet Large: 992px - 1199px */
@media (max-width: 1199px) {
  .timeline-container {
    margin-left: 280px;
  }
  
  .timeline-years-wrapper {
    gap: 15px;
  }
  
  .timeline-nav-prev,
  .timeline-nav-next {
    width: 40px;
    height: 40px;
  }
  
  .year-item {
    font-size: 22px;
  }
  
  .year-item.active {
    font-size: 26px;
  }
  
  .timeline-year-display {
    font-size: 44px;
  }
}

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
  .timeline-section {
    padding: 50px 0 100px;
  }
  
  .timeline-container {
    margin-left: 0;
    padding: 0 20px 0 240px;
  }
  
  .timeline-years-wrapper {
    gap: 12px;
  }
  
  .timeline-nav-prev,
  .timeline-nav-next {
    width: 36px;
    height: 36px;
  }
  
  .timeline-nav-prev svg,
  .timeline-nav-next svg {
    width: 20px;
    height: 20px;
  }
  
  .year-item {
    font-size: 20px;
    padding: 8px 12px;
  }
  
  .year-item.active {
    font-size: 24px;
  }
  
  .timeline-year-display {
    font-size: 40px;
    padding-left: 25px;
  }
  
  .timeline-year-display::before {
    width: 6px;
    height: 50px;
  }
  
  .timeline-text {
    padding-left: 25px;
  }
  
  .timeline-text p {
    font-size: 14px;
  }
}

/* Mobile Large: 576px - 767px */
@media (max-width: 767px) {
  .timeline-section {
    padding: 40px 0 80px;
  }
  
  .timeline-container {
    padding: 0 15px 0 200px;
  }
  
  .timeline-years-wrapper {
    gap: 10px;
  }
  
  .timeline-nav-prev,
  .timeline-nav-next {
    width: 32px;
    height: 32px;
  }
  
  .timeline-nav-prev svg,
  .timeline-nav-next svg {
    width: 18px;
    height: 18px;
  }
  
  .year-item {
    font-size: 18px;
    padding: 6px 10px;
  }
  
  .year-item.active {
    font-size: 22px;
  }
  
  .year-item.active::after {
    bottom: -20px;
    width: 30px;
  }
  
  .timeline-year-display {
    font-size: 36px;
    padding-left: 20px;
    margin-bottom: 25px;
  }
  
  .timeline-year-display::before {
    width: 5px;
    height: 45px;
  }
  
  .timeline-text {
    padding-left: 20px;
  }
  
  .timeline-text p {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* Mobile: 320px - 575px */
@media (max-width: 575px) {
  .timeline-section {
    padding: 35px 0 70px;
  }
  
  .timeline-container {
    padding: 0 12px 0 175px;
  }
  
  .timeline-years-wrapper {
    gap: 8px;
    margin-bottom: 35px;
  }
  
  .timeline-nav-prev,
  .timeline-nav-next {
    width: 30px;
    height: 30px;
  }
  
  .timeline-nav-prev svg,
  .timeline-nav-next svg {
    width: 16px;
    height: 16px;
  }
  
  .year-item {
    font-size: 16px;
    padding: 5px 8px;
  }
  
  .year-item.active {
    font-size: 20px;
  }
  
  .year-item.active::after {
    bottom: -18px;
    width: 25px;
    height: 2px;
  }
  
  .timeline-content-wrapper {
    min-height: 350px;
  }
  
  .timeline-year-display {
    font-size: 32px;
    padding-left: 18px;
    margin-bottom: 20px;
  }
  
  .timeline-year-display::before {
    width: 4px;
    height: 40px;
  }
  
  .timeline-text {
    padding-left: 18px;
  }
  
  .timeline-text p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* Very Small Mobile: < 380px */
@media (max-width: 379px) {
  .timeline-container {
    padding: 0 10px 0 155px;
  }
  
  .timeline-years-wrapper {
    gap: 6px;
  }
  
  .timeline-nav-prev,
  .timeline-nav-next {
    width: 28px;
    height: 28px;
  }
  
  .timeline-nav-prev svg,
  .timeline-nav-next svg {
    width: 14px;
    height: 14px;
  }
  
  .year-item {
    font-size: 14px;
    padding: 4px 6px;
  }
  
  .year-item.active {
    font-size: 18px;
  }
  
  .timeline-year-display {
    font-size: 28px;
    padding-left: 15px;
  }
  
  .timeline-year-display::before {
    width: 3px;
    height: 35px;
  }
  
  .timeline-text {
    padding-left: 15px;
  }
  
  .timeline-text p {
    font-size: 11px;
  }
}