/* css/progress.css - Learning progress tracker styles */

.progress-container {
  margin: 40px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.progress-header h3 {
  margin: 0;
  font-size: 18px;
  color: #212529;
}

.progress-percentage {
  font-size: 24px;
  font-weight: 700;
  color: #f74c00;
}

.progress-bar {
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f74c00 0%, #ff8c00 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-checkpoints {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.checkpoint {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6c757d;
  position: relative;
  padding: 10px 5px;
  font-weight: 500;
}

.checkpoint::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #e9ecef;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
  transition: all 0.3s ease;
}

.checkpoint.completed {
  color: #f74c00;
  font-weight: 600;
}

.checkpoint.completed::before {
  background: #f74c00;
  box-shadow: 0 0 0 2px #f74c00;
}

.checkpoint.current {
  color: #212529;
  font-weight: 700;
}

.checkpoint.current::before {
  background: #ff8c00;
  box-shadow: 0 0 0 3px #ff8c00, 0 0 0 5px #ffe0b2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .progress-container {
    padding: 20px 15px;
  }

  .progress-header h3 {
    font-size: 16px;
  }

  .progress-percentage {
    font-size: 20px;
  }

  .checkpoint {
    font-size: 10px;
  }

  .checkpoint::before {
    width: 16px;
    height: 16px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .progress-container {
    background: #2d3748;
  }

  .progress-header h3 {
    color: #e2e8f0;
  }

  .progress-bar {
    background: #4a5568;
  }

  .checkpoint {
    color: #a0aec0;
  }

  .checkpoint::before {
    border-color: #2d3748;
    box-shadow: 0 0 0 2px #4a5568;
  }

  .checkpoint.current {
    color: #e2e8f0;
  }

  .checkpoint.current::before {
    box-shadow: 0 0 0 3px #ff8c00, 0 0 0 5px #4a5568;
  }
}
