/* =============================================
   VISIT COUNTER — STYLES
   Importuj po style.css w index.html
   ============================================= */

#visit-counter {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  background: rgba(17, 18, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  user-select: none;
}

#visit-counter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visit-counter__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #ff6b2b);
  box-shadow: 0 0 6px rgba(255, 107, 43, 0.55);
  flex-shrink: 0;
  animation: counter-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes counter-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.visit-counter__icon {
  width: 13px;
  height: 13px;
  color: var(--text-3, #6b7280);
  flex-shrink: 0;
}

.visit-counter__num {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2, #9ea3af);
  letter-spacing: 0.02em;
  line-height: 1;
  min-width: 3ch;
  transition: color 0.3s ease;
}

#visit-counter:hover .visit-counter__num {
  color: var(--text, #f0f0f0);
}

.visit-counter__label {
  font-family: var(--font-body, sans-serif);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-3, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

/* Ukryj etykietę na bardzo małych ekranach */
@media (max-width: 400px) {
  #visit-counter {
    bottom: 16px;
    right: 16px;
  }

  .visit-counter__label {
    display: none;
  }
}
