/**
 * EduNova Nexus — Network Stats Section Styles
 * Palette: Forest #024a2d, Mint #3d9a6a, Cream #f4f1e8, Gold #c4a35a
 */

:root {
  --enx-forest: #024a2d;
  --enx-forest-dark: #01331f;
  --enx-mint: #3d9a6a;
  --enx-mint-glow: rgba(61, 154, 106, 0.45);
  --enx-cream: #f4f1e8;
  --enx-cream-card: #ffffff;
  --enx-gold: #c4a35a;
  --enx-gold-muted: rgba(196, 163, 90, 0.35);
  --enx-gray-subtle: #6b7280;
}

.enx-network-section {
  background-color: var(--enx-forest);
  background: linear-gradient(135deg, var(--enx-forest-dark) 0%, var(--enx-forest) 50%, #035c38 100%);
  color: #ffffff;
  padding: 4rem 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.enx-container {
  max-width: 1140px;
  margin: 0 auto;
}

.enx-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.enx-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.enx-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--enx-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--enx-mint-glow);
  animation: enxPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes enxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 154, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(61, 154, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 154, 106, 0);
  }
}

.enx-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.enx-title-underline {
  width: 54px;
  height: 3px;
  background-color: var(--enx-gold);
  margin: 0.75rem auto 1rem auto;
  border-radius: 2px;
}

.enx-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 0;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.enx-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.enx-tile {
  background-color: var(--enx-cream);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--enx-gold);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.enx-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.28);
}

.enx-stat-number {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--enx-forest);
  line-height: 1.1;
  margin-bottom: 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.enx-stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
  text-transform: capitalize;
}

.enx-stat-caption {
  font-size: 0.85rem;
  color: var(--enx-gray-subtle);
  margin: 0;
  line-height: 1.4;
}

.enx-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.enx-footer-note span.dot-sep {
  opacity: 0.5;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .enx-pulse-dot {
    animation: none;
  }
  .enx-tile {
    transition: none;
  }
  .enx-tile:hover {
    transform: none;
  }
}
