/* =====================================================
   Scrollbar
   ===================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =====================================================
   Dialog backdrop
   ===================================================== */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* =====================================================
   Text shadow utility
   ===================================================== */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Select — placeholder (prázdná volba) vypadá jako placeholder
   ===================================================== */
select:has(option[value=""]:checked) {
  color: #4b5563;
}

/* =====================================================
   Range slider — používá se v modal-hypo
   ===================================================== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #562f83;
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 0 4px rgba(86, 47, 131, 0.2);
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #562f83;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(86, 47, 131, 0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #e5e7eb;
  border-radius: 2px;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(86, 47, 131, 0.3);
}

/* =====================================================
   Scrollbar hide utility — používá se v modalech
   ===================================================== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =====================================================
   Logo marquee — fade out edges
   ===================================================== */
.logo-marquee {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

/* =====================================================
   Anti-bot trap field — visually hidden (CSP-safe, no inline style).
   The class name is deliberately nondescript: "honeypot" in the markup would
   tell a scraper to skip the field, which is exactly what it must not do.
   Used by templates/honeypot/honeypot_field.html.
   ===================================================== */
.field-note {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Dialog — centrování na obrazovce ve všech prohlížečích */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: 90vh;
  overflow: visible;
}
/* =====================================================
   Hero carousel — slow Ken Burns zoom on each slide
   ===================================================== */
@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.hero-slide {
  transform-origin: center;
  will-change: transform;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }
}
