/* ==========================================================================
   YATORO // DOTA 2 ESPORTS PORTFOLIO
   Career Timeline Section Stylesheet
   Modern Athlete Archive & Scroll-Driven Progress Line
   ========================================================================== */

.career-section {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #080a0f 50%, var(--bg-primary) 100%);
}

.timeline-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 60px auto 0;
  padding: 20px 0;
}

/* Central Glowing Timeline Track */
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--radiant-teal) 0%, var(--aegis-gold) 100%);
  box-shadow: 0 0 12px var(--radiant-teal);
  transition: height 0.15s linear;
  will-change: height;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  align-items: center;
}

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

/* Alternate Left / Right */
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content-card {
  width: calc(50% - 44px);
  background: rgba(14, 17, 24, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-spring);
  position: relative;
}

.timeline-content-card:hover {
  border-color: var(--border-teal);
  background: rgba(20, 25, 36, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7),
              0 0 30px -5px rgba(16, 231, 178, 0.2);
}

.timeline-item.ti-winner .timeline-content-card {
  border-color: rgba(245, 196, 81, 0.3);
  background: linear-gradient(135deg, rgba(26, 21, 12, 0.75) 0%, rgba(14, 17, 24, 0.8) 100%);
}

.timeline-item.ti-winner .timeline-content-card:hover {
  border-color: var(--aegis-gold);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8),
              0 0 35px -5px var(--aegis-gold-glow);
}

/* Central Interactive Node */
.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #090c12;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.timeline-node-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s var(--ease-spring);
}

.timeline-item.active .timeline-node {
  border-color: var(--radiant-teal);
  box-shadow: 0 0 20px var(--radiant-teal);
}

.timeline-item.active .timeline-node-inner {
  background: var(--radiant-teal);
  transform: scale(1.3);
}

.timeline-item.ti-winner.active .timeline-node {
  border-color: var(--aegis-gold);
  box-shadow: 0 0 25px var(--aegis-gold);
}

.timeline-item.ti-winner.active .timeline-node-inner {
  background: var(--aegis-gold);
}

/* Card Elements */
.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--radiant-teal);
  letter-spacing: 0.1em;
}

.timeline-item.ti-winner .timeline-year {
  color: var(--aegis-gold);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.timeline-stat-entry {
  display: flex;
  flex-direction: column;
}

.timeline-stat-entry span:first-child {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.timeline-stat-entry span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive Timeline */
@media (max-width: 860px) {
  .timeline-track {
    left: 24px;
  }
  
  .timeline-node {
    left: 24px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 64px;
  }
  
  .timeline-content-card {
    width: 100%;
  }
}
