/* === Vertical Timeline - DnD Fantasy Style === */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 0;
}

/* Central line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--dnd-gold, #c9a227),
    var(--dnd-burgundy, #722f37)
  );
  border-radius: 2px;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: var(--md-default-bg-color, #f4e4bc);
  border: 2px solid var(--dnd-leather, #8b4513);
  border-radius: 8px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 15px rgba(0,0,0,0.3);
}

/* Alternate left/right */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
}

/* Connector dots */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--dnd-gold, #c9a227);
  border: 3px solid var(--dnd-burgundy, #722f37);
  border-radius: 50%;
  top: 1.5rem;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -12%;
  transform: translateX(50%);
}

.timeline-item:nth-child(even)::before {
  left: -12%;
  transform: translateX(-50%);
}

/* Connector lines to dots */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 10%;
  height: 2px;
  background: var(--dnd-leather, #8b4513);
  top: 2rem;
}

.timeline-item:nth-child(odd)::after {
  right: 0;
}

.timeline-item:nth-child(even)::after {
  left: 0;
}

/* Date badge */
.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--dnd-burgundy, #722f37);
  color: var(--dnd-parchment-light, #faf3e3);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--dnd-burgundy, #722f37);
  margin: 0.5rem 0;
  border-bottom: none !important;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
}

.timeline-title a:hover {
  color: var(--dnd-gold, #c9a227);
}

[data-md-color-scheme="slate"] .timeline-title {
  color: var(--dnd-torch-glow, #ff9933);
}

.timeline-content {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--dnd-ink-faded, #5c4a3d);
  margin-top: 0.5rem;
}

[data-md-color-scheme="slate"] .timeline-meta {
  color: #a0a0a0;
}

/* Game day badge */
.timeline-gameday {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--dnd-gold, #c9a227);
  color: var(--dnd-ink, #2c1810);
  font-size: 0.75rem;
  border-radius: 3px;
  margin-right: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 60px);
    left: 50px !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: -40px !important;
    right: auto !important;
    transform: none !important;
  }

  .timeline-item::after {
    left: -22px !important;
    right: auto !important;
    width: 22px;
  }
}
