/* ============================================
   STATS/HIGHLIGHTS COMPONENT - Banner Style
   ============================================ */

.stats {
  padding: var(--space-4xl) 0;
  margin-top: var(--space-3xl);
  background: rgba(255, 255, 255, 0.85); /* Light background - improved contrast */
  color: #0d1629; /* Dark text */
  position: relative;
  overflow: visible;
  border-top: 1px solid rgba(35, 58, 117, 0.2);
  border-bottom: 1px solid rgba(35, 58, 117, 0.2);
  z-index: 1;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .stats {
  background: rgba(255, 255, 255, 0.85); /* Keep light in dark theme - improved contrast */
  color: #0d1629; /* Keep dark text */
}

/* Aurora glow in stats */
.stats::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(35, 58, 117, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.stats__container {
  position: relative;
  z-index: 1;
  overflow: visible; /* Allow glow effects to show */
}

.stats__grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
  overflow: visible; /* Prevent scrollbars from glow effects */
  padding: var(--space-lg) 0; /* Extra space for glow effects */
}

.stat-item {
  padding: var(--space-lg);
  position: relative;
  text-align: center;
  flex: 1;
  min-width: 200px;
  overflow: visible; /* Allow glow effects to extend beyond */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

/* Link variant */
.stat-item--link {
  text-decoration: none;
  cursor: pointer;
}

.stat-item--link:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.5); /* Subtle highlight on hover */
  border-radius: var(--radius-lg);
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(35, 58, 117, 0.2), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-item__value {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3rem, 6vw, 5rem);
  min-height: clamp(3rem, 6vw, 5rem);
  max-height: clamp(3rem, 6vw, 5rem);
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Text values with gradient */
.stat-item__value--text {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(180deg, #1de9b6 0%, #233A75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  height: clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Icon values */
.stat-item__value--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(3rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
}

.stat-item__value--icon svg {
  width: clamp(3rem, 6vw, 5rem);
  height: clamp(3rem, 6vw, 5rem);
  stroke: url(#stat-gradient);
  stroke-width: 2;
  display: block;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.stat-item__label {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* Minimum 16px */
  font-weight: 700;
  color: #0d1629; /* Full opacity for better contrast */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* Reduced for better readability */
  margin-bottom: var(--space-xs);
}

[data-theme="dark"] .stat-item__label {
  color: #0d1629; /* Keep dark text - full opacity */
}

.stat-item__description {
  font-size: clamp(0.9375rem, 1.5vw, 1rem); /* Minimum 15px, prefer 16px */
  color: rgba(13, 22, 41, 0.95); /* Higher contrast for accessibility */
  line-height: 1.7; /* Improved line height */
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .stats {
    padding: 0;
  }
  
  .stats__grid {
    gap: 0;
    padding: 0;
    flex-direction: column;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stat-item {
    border-bottom: 1px solid rgba(35, 58, 117, 0.15);
    padding: var(--space-xl) var(--space-md);
    width: 100%;
    min-width: unset;
    min-height: clamp(160px, 25vh, 200px);
    align-items: center;
    justify-content: center;
  }
  
  .stat-item:first-child {
    padding-top: var(--space-2xl);
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: var(--space-2xl);
  }
  
  .stat-item__value {
    margin-bottom: var(--space-md);
    width: 100%;
    min-height: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
  }
  
  .stat-item__value--text {
    font-size: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
    min-height: clamp(3rem, 8vw, 4rem);
    width: 100%;
    justify-content: center;
  }
  
  .stat-item__value--icon {
    height: clamp(3rem, 8vw, 4rem);
    min-height: clamp(3rem, 8vw, 4rem);
    width: 100%;
  }
  
  .stat-item__value--icon svg {
    width: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
  }
  
  .stat-item__label {
    margin-bottom: var(--space-xs);
    width: 100%;
    text-align: center;
  }
  
  .stat-item__description {
    margin-bottom: 0;
    width: 100%;
    text-align: center;
  }
}

