/* ==========================================================================
   Lastbrowser Web Platform - Download Counter Component
   Compact, sleek live-metric badge with pulsation & count-up transitions
   ========================================================================== */

@keyframes lb-live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.download-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 24px;
  padding: 14px 22px;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 460px;
  width: calc(100% - 32px);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.download-counter:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.download-counter-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.download-counter-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: lb-live-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  margin-right: 8px;
  vertical-align: 0;
  flex-shrink: 0;
}

.download-counter-value {
  display: inline-block;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text, #f8fafc);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.download-counter-value.tick-up {
  transform: scale(1.18);
  color: #10b981;
}

.download-counter small {
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
  line-height: 1.4;
  max-width: 400px;
}

.download-counter a {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--cyan, #00e5ff);
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.download-counter a:hover {
  opacity: 1;
  color: #38bdf8;
}
