/* History Page Styles */

.timeline-expanded {
  max-width: 1400px;
  margin: 0 auto;
}

.timeline-period {
  margin-bottom: 5rem;
  animation: fadeInUp var(--animation-duration) ease-out backwards;
}

.timeline-period:nth-child(1) {
  animation-delay: calc(var(--base-animation-delay) + 0 * var(--animation-delay-increment));
}

.timeline-period:nth-child(2) {
  animation-delay: calc(var(--base-animation-delay) + 1 * var(--animation-delay-increment));
}

.timeline-period:nth-child(3) {
  animation-delay: calc(var(--base-animation-delay) + 2 * var(--animation-delay-increment));
}

.timeline-period:nth-child(4) {
  animation-delay: calc(var(--base-animation-delay) + 3 * var(--animation-delay-increment));
}

.timeline-period:nth-child(5) {
  animation-delay: calc(var(--base-animation-delay) + 4 * var(--animation-delay-increment));
}

.timeline-period:nth-child(6) {
  animation-delay: calc(var(--base-animation-delay) + 5 * var(--animation-delay-increment));
}

.timeline-period:nth-child(7) {
  animation-delay: calc(var(--base-animation-delay) + 6 * var(--animation-delay-increment));
}

.timeline-period:nth-child(8) {
  animation-delay: calc(var(--base-animation-delay) + 7 * var(--animation-delay-increment));
}

.timeline-period:nth-child(9) {
  animation-delay: calc(var(--base-animation-delay) + 8 * var(--animation-delay-increment));
}

.timeline-period:nth-child(10) {
  animation-delay: calc(var(--base-animation-delay) + 9 * var(--animation-delay-increment));
}

.period-title {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 2rem;
  padding-left: 2rem;
  border-left: 6px solid var(--primary);
  background: rgba(0, 113, 188, 0.03);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 8px;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: 2rem;
}

.timeline-event {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: rgba(0, 176, 195, 0.3);
}

.timeline-event:last-child::before {
  display: none;
}

.event-marker {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--tertiary);
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: all var(--animation-duration) var(--transition-easing);
  z-index: 5;
}

.timeline-event:hover .event-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(0, 176, 195, 0.5);
}

.event-content {
  flex: 1;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--animation-duration) var(--transition-easing);
  border-left: 3px solid var(--primary);
}

.event-content:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-width: 5px;
}

.event-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--silver);
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .timeline-period {
    margin-bottom: 3rem;
  }

  .period-title {
    font-size: 1.5rem;
    padding-left: 1rem;
  }

  .timeline-events {
    margin-left: 0.5rem;
  }

  .timeline-event {
    gap: 1rem;
  }

  .event-marker {
    width: 18px;
    height: 18px;
  }

  .event-content {
    padding: 1rem;
  }
}

/* ======================================== DARK MODE ======================================== */

.body-dark .period-title {
  color: var(--tertiary);
  background: rgba(0, 176, 195, 0.05);
  border-left-color: var(--tertiary);
}

.body-dark .event-content {
  background: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.body-dark .event-content:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.body-dark .event-marker {
  border-color: var(--dark-bg);
}