/* assets/css/custom.css — bewust klein gehouden; alles wat met losse
   Tailwind-classes kan, staat in de templates zelf. Hier alleen wat
   met utility-classes niet praktisch is. */

.font-mono { font-feature-settings: "tnum" 1; }

.prose-news h2 { font-family: '"Plus Jakarta Sans"', sans-serif; font-weight: 700; font-size: 1.4rem; margin: 1.75rem 0 0.75rem; }
.prose-news h3 { font-family: '"Plus Jakarta Sans"', sans-serif; font-weight: 700; font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose-news p { margin: 0.9rem 0; }
.prose-news a { color: #2856E0; text-decoration: underline; text-decoration-color: #FF4317; }
.prose-news img { border-radius: 0.75rem; margin: 1.25rem 0; }
.prose-news blockquote { border-left: 3px solid #FF4317; padding-left: 1rem; color: #6B7280; margin: 1.25rem 0; }
.prose-news ul, .prose-news ol { margin: 0.9rem 0; padding-left: 1.4rem; }

/* Breaking-news indicator: een rustige pulse, geen knipperende reclame-vibe */
.breaking-dot { animation: breakingPulse 1.6s ease-in-out infinite; }
@keyframes breakingPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .breaking-dot { animation: none; } }

/* Lightbox voor foto's bij een artikel */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,10,12,0.94); z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 85vh; }
.lightbox-img { max-width: 90vw; max-height: 70vh; object-fit: contain; border-radius: 0.5rem; }
.lightbox-caption { color: #fff; margin-top: 1rem; text-align: center; max-width: 32rem; }
.lightbox-caption:empty { display: none; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; color: #fff; font-size: 2.25rem; background: none; border: none; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2rem;
  background: rgba(255,255,255,0.12); border: none; width: 3rem; height: 3rem; border-radius: 9999px; cursor: pointer;
}
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }

/* Horizontaal scrollende stroken (bv. "Plaatsen" op de homepage) — wel
   swipebaar/scrollbaar, maar zonder de lelijke scrollbalk te tonen. */
.scroll-clean { scrollbar-width: none; -ms-overflow-style: none; }
.scroll-clean::-webkit-scrollbar { display: none; }

/* Kenteken in NL-kentekenplaat-stijl — speelse, herkenbare details op de voertuigenpagina */
.license-plate {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: #FFD814;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 3px;
  padding: 1px 6px;
  display: inline-block;
}

/* Gekleurde gloed op voertuigkaarten bij hover, kleur per type via --glow */
.vehicle-card:hover { box-shadow: 0 20px 40px -15px var(--glow, rgba(0,0,0,0.3)); }

/* Rustige, getrapte entree-animatie voor kaarten (bv. voertuigenpagina) */
.fade-in-up { animation: fadeInUp 0.5s ease-out backwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade-in-up { animation: none; } }

/* WordPress-galerijen die bij de import zijn meegekomen netjes als grid tonen
   i.p.v. de kale bullet-list die de oude wp-block-gallery markup anders geeft. */
.prose-news .wp-block-gallery { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 0.5rem; }
.prose-news .wp-block-gallery li { margin: 0; }
.prose-news .wp-block-gallery figure { margin: 0; }

/* Duty-log rail: nieuwe items glijden subtiel in, met respect voor reduced-motion */
.duty-item { animation: dutyIn 0.4s ease-out backwards; }
.duty-item:nth-child(1) { animation-delay: 0.05s; }
.duty-item:nth-child(2) { animation-delay: 0.1s; }
.duty-item:nth-child(3) { animation-delay: 0.15s; }
.duty-item:nth-child(4) { animation-delay: 0.2s; }
.duty-item:nth-child(5) { animation-delay: 0.25s; }
.duty-item:nth-child(6) { animation-delay: 0.3s; }
@keyframes dutyIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.ticker { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .duty-item { animation: none; }
  * { scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #E8491D;
  outline-offset: 2px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
