/* ═══════════════════════════════════════════════
   Global Humanity Mission Counter – counter.css
   v3.0.0 | Transparent background
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* ── Section wrapper — TRANSPARENT ── */
.ghm-counter-section {
  background: transparent;          /* ← fully transparent */
  padding: 80px 24px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  width: 100%;
  box-sizing: border-box;
}

/* Subtle radial gold glow — still visible on any bg */
.ghm-counter-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(240,185,11,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Big number ── */
.ghm-counter-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 900;
  color: #F0B90B;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(240,185,11,0.28);
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

/* ── Heading label ── */
.ghm-counter-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* ── Sub label ── */
.ghm-counter-sub {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #848E9C;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* ── Live pulsing dot ── */
.ghm-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1DB954;
  margin-right: 6px;
  vertical-align: middle;
  animation: ghmPulse 1.4s ease-in-out infinite;
}

@keyframes ghmPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.4; }
}

/* ── Loading state — shows dash until server responds ── */
.ghm-counter-number.ghm-loading {
  opacity: 0.4;
  font-size: clamp(36px, 8vw, 64px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ghm-counter-section { padding: 56px 16px 64px; }
  .ghm-counter-label   { letter-spacing: 1px; }
}
