/* ==========================================================================
   NEXUS · Blog article stats (views / likes)
   Standalone stylesheet — no existing CSS file is modified.
   ========================================================================== */

.nx-astat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
}

.nx-astat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--nx-ink-45, #8B9098);
  white-space: nowrap;
}

.nx-astat svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nx-astat b,
.nx-astat-btn b {
  font-weight: 600;
  color: var(--nx-ink-70, #5A5F66);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* The article meta row is uppercase by default; counters stay natural case. */
.nx-article__meta .nx-astat,
.nx-article__meta .nx-astat-btn {
  text-transform: none;
  letter-spacing: normal;
}

.nx-astat-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--nx-line, #E2E8F1);
  border-radius: 3px;
  background: var(--nx-white, #FFFFFF);
  color: var(--nx-ink, #001C53);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s ease, color .18s ease,
              background .18s ease, transform .12s ease;
}

.nx-astat-btn:hover {
  border-color: var(--nx-amber-bright, #2E8BE6);
  color: var(--nx-amber-bright, #2E8BE6);
}

.nx-astat-btn:active { transform: scale(.97); }

.nx-astat-btn:focus-visible {
  outline: 2px solid var(--nx-amber-bright, #2E8BE6);
  outline-offset: 2px;
}

.nx-astat-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nx-astat-btn.is-liked {
  border-color: var(--nx-success, #2E7D5B);
  color: var(--nx-success, #2E7D5B);
  background: rgba(46, 125, 91, .06);
}

.nx-astat-btn.is-liked svg { fill: currentColor; }
.nx-astat-btn.is-busy { opacity: .55; pointer-events: none; }

.nx-astat-btn--sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.nx-astat-btn__pop {
  position: absolute;
  right: 8px;
  top: -2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nx-success, #2E7D5B);
  opacity: 0;
  pointer-events: none;
}

.nx-astat-btn__pop.is-go { animation: nxAstatPop .7s ease-out forwards; }

@keyframes nxAstatPop {
  0%   { opacity: 0; transform: translateY(2px); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}

[dir="rtl"] .nx-astat-btn__pop { right: auto; left: 8px; }

@media (max-width: 768px) {
  .nx-article__meta { gap: 10px 14px; }
  .nx-astat, .nx-astat-btn { font-size: 12.5px; }
  /* Comfortable touch targets on phones / tablets. */
  .nx-astat-btn { min-height: 40px; padding: 8px 14px; }
  .nx-astat-btn--sm { min-height: 38px; padding: 7px 12px; }
  .nx-astat-row { gap: 8px 12px; }
}

@media (max-width: 480px) {
  .nx-astat-row { gap: 8px; }
  .nx-astat { font-size: 12px; }
  .nx-astat-btn { min-height: 40px; }
  .nx-article__meta .nx-astat-btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-astat-btn__pop.is-go { animation: none; }
  .nx-astat-btn { transition: none; }
}
