/* ==========================================
   PREFAB: Timeline
   Fuggoleges idovonal esemenyekkel
   ========================================== */

.pf-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Kozepso vonal */
.pf-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
  transform: translateX(-50%);
}

.pf-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pont a kozepen */
.pf-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 2;
  justify-self: center;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.pf-timeline-item.revealed .pf-timeline-dot {
  background: currentColor;
  border-color: currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

/* Tartalom */
.pf-timeline-content {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.pf-timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin: 0 0 8px;
}

.pf-timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.pf-timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}

/* Paros/paratlan oldalak */
.pf-timeline-item:nth-child(odd) .pf-timeline-content { grid-column: 1; }
.pf-timeline-item:nth-child(odd) .pf-timeline-dot { grid-column: 2; }
.pf-timeline-item:nth-child(odd) .pf-timeline-spacer { grid-column: 3; }

.pf-timeline-item:nth-child(even) .pf-timeline-spacer { grid-column: 1; }
.pf-timeline-item:nth-child(even) .pf-timeline-dot { grid-column: 2; }
.pf-timeline-item:nth-child(even) .pf-timeline-content { grid-column: 3; }

/* Stagger delay */
.pf-timeline-item:nth-child(2) { transition-delay: 0.1s; }
.pf-timeline-item:nth-child(3) { transition-delay: 0.2s; }
.pf-timeline-item:nth-child(4) { transition-delay: 0.3s; }
.pf-timeline-item:nth-child(5) { transition-delay: 0.15s; }

/* Vilagos valtozat */
.pf-timeline--light::before { background: rgba(0,0,0,0.1); }
.pf-timeline--light .pf-timeline-content {
  background: white;
  border-color: rgba(0,0,0,0.06);
}
.pf-timeline--light .pf-timeline-dot {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.2);
}

/* Mobil: egyoldali */
@media (max-width: 768px) {
  .pf-timeline::before { left: 20px; }
  .pf-timeline-item {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .pf-timeline-spacer { display: none; }
  .pf-timeline-item:nth-child(odd) .pf-timeline-content,
  .pf-timeline-item:nth-child(even) .pf-timeline-content { grid-column: 2; }
  .pf-timeline-item:nth-child(odd) .pf-timeline-dot,
  .pf-timeline-item:nth-child(even) .pf-timeline-dot { grid-column: 1; }
}
