/* ============================================
   EVENTS TIMELINE STYLES
   ============================================ */

.section--page-header {
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}

.page-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.page-subtitle {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 500px;
}

.section--compact {
  padding: var(--space-4) 0;
}

.filter-section {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  min-width: 40px;
}

.filter-bar {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  cursor: pointer;
  transition: 
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.filter-btn--active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-primary) 0%,
    var(--border-subtle) 100%
  );
}

/* Year Marker */
.timeline__year {
  position: relative;
  margin-bottom: var(--space-4);
  margin-left: calc(-1 * var(--space-6));
}

.timeline__year-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--accent-primary);
  background: var(--bg-primary);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
}

/* Timeline Item */
.timeline__item {
  position: relative;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.timeline__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-6) + 6px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
  transition: 
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.timeline__item:hover .timeline__marker {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--glow-primary);
}

.timeline__marker--launch {
  border-color: var(--accent-success);
  background: rgba(34, 197, 94, 0.2);
}

.timeline__item:hover .timeline__marker--launch {
  border-color: var(--accent-success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.timeline__marker--hackathon {
  border-color: var(--accent-secondary);
  background: rgba(245, 158, 11, 0.2);
}

.timeline__item:hover .timeline__marker--hackathon {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px var(--glow-secondary);
}

/* Content */
.timeline__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-3);
  transition: border-color var(--transition-fast);
}

.timeline__item:hover .timeline__content {
  border-color: var(--border-hover);
}

.timeline__date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.timeline__description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.timeline__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

.timeline__empty {
  text-align: center;
  padding: var(--space-8) 0;
}

.timeline__empty-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.timeline__empty-text code {
  color: var(--accent-primary);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.timeline__type {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.timeline__type--launch {
  color: var(--accent-success);
}

.timeline__type--hackathon {
  color: var(--accent-secondary);
}

.timeline__link {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.timeline__link:hover {
  color: var(--accent-primary);
}

/* Hidden state for filtering */
.timeline__item[data-hidden="true"] {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .timeline {
    padding-left: var(--space-4);
  }
  
  .timeline::before {
    left: 7px;
  }
  
  .timeline__year {
    margin-left: calc(-1 * var(--space-4));
  }
  
  .timeline__marker {
    left: calc(-1 * var(--space-4) + 2px);
    width: 10px;
    height: 10px;
  }
}
