
/* Gamification Dashboard Styles - YPD Green Theme with Square Blocks */
.gamification-dashboard {
  background: #006400;
  border-radius: 15px;
  padding: 5px;
  margin: 15px 0;
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(0, 100, 0, 0.2);
  min-height: 40px;
  border: 2px solid #006400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

[data-theme="dark"] .gamification-dashboard {
  background: #006400;
  border: 2px solid #006400;
  box-shadow: 0 6px 25px rgba(0, 100, 0, 0.3);
}

.stats-container {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: nowrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 3px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  min-height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 60px;
  color: #ffffff;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 1.2em;
  margin-bottom: 2px;
  display: block;
}

.stat-label {
  font-size: 0.7em;
  opacity: 0.95;
  margin-bottom: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.stat-value {
  font-size: 1em;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.badges-container {
  text-align: right;
  padding: 4px 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  min-width: 120px;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 30px;
  flex-shrink: 0;
}

.badges-label {
  font-weight: bold;
  margin-bottom: 3px;
  font-size: 0.9em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.badges-list {
  font-style: italic;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

/* Assessment Feedback Styles */
.assessment-feedback {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-radius: 8px;
  padding: 10px 15px;
  margin: 10px 0;
  color: white;
  animation: slideIn 0.3s ease-out;
}

[data-theme="dark"] .assessment-feedback {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.feedback-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-icon {
  font-size: 1.2em;
}

.feedback-text {
  flex: 1;
  font-size: 0.9em;
}

.xp-gained {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

/* Quality Indicator Styles */
.quality-indicator {
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 10px;
  transition: color 0.3s ease;
}

/* Badge Notification Styles */
.badge-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
  color: #333;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 300px;
}

.badge-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  font-size: 1.5em;
}

.badge-text {
  font-size: 0.9em;
  line-height: 1.4;
}

/* Enhanced Input Hints */
.input-hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gamification-dashboard {
    padding: 4px;
    min-height: 35px;
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
  }
  
  .stats-container {
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
  }
  
  .stat-item {
    min-height: 18px;
    padding: 3px 2px;
    min-width: 45px;
    flex-shrink: 0;
  }
  
  .stat-icon {
    font-size: 0.8em;
    margin-bottom: 1px;
  }
  
  .stat-label {
    font-size: 0.5em;
  }
  
  .stat-value {
    font-size: 0.7em;
  }
  
  .badges-container {
    font-size: 0.6em;
    padding: 3px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 70px;
    max-width: 80px;
    height: 25px;
    flex-shrink: 0;
  }
  
  .badge-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .stats-container {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .stat-item {
    min-height: 30px;
    padding: 4px 3px;
    min-width: 60px;
  }
  
  .stat-icon {
    font-size: 0.9em;
  }
  
  .stat-value {
    font-size: 0.8em;
  }
}

/* Enhanced visibility at different zoom levels */
@media (min-resolution: 120dpi) {
  .gamification-dashboard {
    min-height: 45px;
  }
  
  .stat-item {
    min-height: 22px;
    padding: 5px 4px;
  }
  
  .stat-icon {
    font-size: 1.1em;
  }
  
  .stat-value {
    font-size: 0.9em;
  }
}

/* Animation for gamification elements */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gamification-dashboard {
  animation: slideIn 0.5s ease-out;
}

/* Progress enhancement */
.progress-fill.completed {
  background: linear-gradient(90deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* XP gain animation */
@keyframes xpGain {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.stat-value.xp-gain {
  animation: xpGain 0.5s ease-in-out;
}
