/* ===== Unified Visitor Counter CSS v4.1 ===== */
/* Shared across all pages, all languages, all devices */

.pz-visitor-counter {
  margin: 1.2rem auto 0;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.pz-vc-label {
  font-size: 0.7rem;
  color: #A88A4E;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.pz-vc-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.4);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  flex-wrap: wrap;
  min-width: auto;
}

.pz-vc-icon {
  font-size: 1rem;
  color: #C9A96E;
  flex-shrink: 0;
}

.pz-vc-num {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #B8860B;
  letter-spacing: 0.1em;
  font-weight: 600;
  min-width: 6ch;
  text-align: center;
  white-space: nowrap;
}

.pz-vc-refresh {
  background: transparent;
  border: none;
  color: #C9A96E;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  margin-left: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.pz-vc-refresh:hover {
  color: #E8C97A;
  transform: scale(1.15);
}

.pz-vc-refresh:active {
  transform: scale(0.95);
}

.pz-vc-refresh.pz-spin span {
  display: inline-block;
  animation: pz-vc-spin 0.8s linear infinite;
}

@keyframes pz-vc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pz-vc-error {
  display: none;
  color: #c0392b;
  font-size: 0.72rem;
  margin-top: 0.35rem;
  text-align: center;
  font-family: var(--font-sans, 'Noto Sans SC', sans-serif);
}

/* Mobile vertical adaptation */
@media (max-width: 480px) {
  .pz-visitor-counter {
    margin-top: 0.9rem;
  }
  .pz-vc-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .pz-vc-box {
    padding: 0.35rem 0.7rem;
    gap: 0.35rem;
  }
  .pz-vc-num {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    min-width: 5ch;
  }
  .pz-vc-icon {
    font-size: 0.9rem;
  }
  .pz-vc-refresh {
    font-size: 0.9rem;
  }
  .pz-vc-error {
    font-size: 0.65rem;
  }
}

/* Landscape / small tablet */
@media (min-width: 481px) and (max-width: 1024px) {
  .pz-vc-box {
    padding: 0.4rem 0.9rem;
  }
  .pz-vc-num {
    font-size: 0.88rem;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .pz-vc-num {
    font-size: 1.05rem;
  }
}
