/* Level Stats Display Styles */

.level-stats-section {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.section-header {
  margin-bottom: 16px;
  padding: 0 8px;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.level-stats-category {
  background: var(--bg-secondary, #232323);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.stat-row:hover {
  background: rgba(78, 205, 196, 0.1);
  transform: translateX(2px);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-weight: 500;
  flex: 1;
}

.stat-name {
  font-size: 13px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-weight: 500;
  flex: 1;
}

.stat-value {
  font-size: 14px;
  color: var(--accent-primary, #4ECDC4);
  font-weight: 600;
  text-align: right;
  min-width: 50px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: transparent;
  transition: all 0.3s ease;
}

.stat-badge.max {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  animation: badgePulseMax 2s infinite;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.stat-badge.near-max {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #fff;
  animation: badgePulseNear 2s infinite;
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.3);
}

/* Animations */
@keyframes badgePulseMax {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
  }
}

@keyframes badgePulseNear {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.3), 0 0 10px rgba(255, 107, 0, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.2);
    transform: scale(1.03);
  }
}

/* Category Header */
.category-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary, #4ECDC4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .level-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .level-stats-category {
    padding: 10px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 13px;
    min-width: 45px;
    margin-right: 6px;
  }

  .stat-badge {
    min-width: 36px;
    height: 22px;
    font-size: 10px;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .level-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .level-stats-category {
    padding: 10px;
  }

  .section-header h3 {
    font-size: 16px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 13px;
    min-width: 40px;
    margin-right: 4px;
  }

  .stat-badge {
    min-width: 32px;
    height: 20px;
    font-size: 9px;
    padding: 0 4px;
  }
}

/* Empty State */
.level-stats-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.5));
  font-size: 14px;
}

.level-stats-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}
