/**
 * Progress Tracker Styles
 * Styling for learning progress, milestones, and achievements
 */

/* Progress Badge */
.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #27AE60 0%, #16A085 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 10px;
}

.progress-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.progress-score {
  font-size: 14px;
}

.progress-label {
  font-size: 10px;
  opacity: 0.9;
}

/* Milestone Notification */
.milestone-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.milestone-notification.show {
  transform: translateX(0);
}

.milestone-icon {
  font-size: 32px;
}

.milestone-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.milestone-name {
  font-size: 16px;
  font-weight: bold;
  margin: 3px 0;
}

.milestone-desc {
  font-size: 12px;
  opacity: 0.9;
}

/* Progress Modal */
.progress-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.progress-modal-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.progress-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7F8C8D;
  transition: color 0.2s ease;
}

.progress-modal-close:hover {
  color: #2C3E50;
}

.progress-modal h3 {
  margin: 0 0 20px 0;
  color: #2C3E50;
  font-size: 22px;
}

.progress-modal h4 {
  margin: 20px 0 15px 0;
  color: #2C3E50;
  font-size: 16px;
}

/* Progress Stats Grid */
.progress-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.progress-stat {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #16A085;
}

.stat-label {
  font-size: 12px;
  color: #7F8C8D;
  margin-top: 5px;
}

/* Milestone List */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FEF5E7 0%, #FCF3CF 100%);
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 4px solid #F39C12;
}

.milestone-badge {
  font-size: 24px;
}

.milestone-info {
  flex: 1;
}

.milestone-info strong {
  color: #2C3E50;
}

.milestone-info small {
  color: #7F8C8D;
}

/* Progress Footer */
.progress-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #E5E5E5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-footer small {
  color: #7F8C8D;
}

.progress-reset {
  background: none;
  border: 1px solid #E74C3C;
  color: #E74C3C;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-reset:hover {
  background: #E74C3C;
  color: white;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .progress-modal-content {
    background: #2C3E50;
    color: #ECF0F1;
  }

  .progress-modal h3,
  .progress-modal h4 {
    color: #ECF0F1;
  }

  .progress-stat {
    background: #34495E;
  }

  .milestone-item {
    background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
  }

  .milestone-info strong {
    color: #ECF0F1;
  }

  .progress-footer {
    border-top-color: #34495E;
  }

  .progress-modal-close {
    color: #BDC3C7;
  }

  .progress-modal-close:hover {
    color: #ECF0F1;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .progress-badge {
    padding: 3px 8px;
    font-size: 11px;
  }

  .milestone-notification {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .progress-modal-content {
    padding: 20px;
    margin: 10px;
  }

  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 24px;
  }
}
