/* Advanced Statistics Section Styling */

/* Main container */
.stats-container {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.stats-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236e45a0' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

/* Section title */
.stats-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  color: #6e45a0;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Individual stat item */
.stat-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Stat icon */
.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e45a0 0%, #8a63b8 100%);
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(110, 69, 160, 0.3);
}

/* Stat value */
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #6e45a0;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Negative values specific styling */
.negative-value {
  font-size: 2.2rem;
  letter-spacing: -0.05em;
}

/* Stat label */
.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat trend */
.stat-trend {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.trend-icon {
  margin-right: 0.3rem;
}

/* Stats info text */
.stats-info {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Background accent shapes */
.accent-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.5;
}

.accent-shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #6e45a0 0%, #8a63b8 100%);
  top: -50px;
  right: -50px;
  filter: blur(70px);
}

.accent-shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  bottom: -30px;
  left: -30px;
  filter: blur(60px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-container {
    padding: 2rem 1rem;
  }
  
  .stats-title {
    font-size: 1.8rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
  
  .stat-item {
    padding: 1.5rem;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
} 