/* stats.css – Modern card-based layout with total + unique in same box */

body {
  background-color: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
}

.stats-section {
  padding: 2rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.stats-group {
  margin-bottom: 3.5rem;
}

.stats-group h2 {
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 1.8rem;
  color: #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.stats-card {
  background: #1e293b;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}

.stats-card:hover {
  transform: translateY(-6px);
}

.stats-card h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: #94a3b8;
}

.stats-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1;
}

.stats-subtext {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-top: 0.6rem;
}

/* Loading & Error */
.loading-message, .error-message {
  text-align: center;
  padding: 8rem 1rem;
  font-size: 1.5rem;
  color: #94a3b8;
}

.error-message {
  color: #f87171;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 1.5rem 1rem;
  }
  .stats-value {
    font-size: 2.8rem;
  }
  .stats-group h2 {
    font-size: 1.8rem;
  }
}