/* =============================================
   Custom CSS — Werken bij DN Traffic
   Aanvulling op Tailwind CDN
============================================= */

/* ── Typografie ────────────────────────────── */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navigatie: actieve link ───────────────── */
.nav-link.active {
    color: #feff66 !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #feff66;
    border-radius: 9999px;
}

/* Mobiel menu: actieve link heeft geen underline, alleen kleur */
#mobile-menu .nav-link.active::after {
    display: none;
}

/* ── Mobiel menu animatie ──────────────────── */
.mobile-menu-closed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
}

/* ── Hero patroon ──────────────────────────── */
.hero-pattern {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(254, 255, 102, 0.08) 20px,
            rgba(254, 255, 102, 0.08) 21px
        );
}

/* ── Vacature filterknop ───────────────────── */
.vacature-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1.5px solid #e5e7eb;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.vacature-filter:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.vacature-filter.active-filter {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #feff66;
}

/* ── Vacaturekaart verborgen (gefilterd) ───── */
.vacature-card.hidden-by-filter {
    display: none;
}

/* ── FAQ item ──────────────────────────────── */
.faq-item {
    border: 1px solid #f0f0f0;
    transition: border-color 0.15s;
}

.faq-item:hover {
    border-color: #feff66;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ── Cookie banner ─────────────────────────── */
.cookie-banner {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ── Floating WhatsApp-knop ────────────────── */
.floating-whatsapp {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}

.floating-whatsapp:hover {
    box-shadow: 0 6px 28px rgba(34, 197, 94, 0.55);
}

/* Ruimte zodat floating knop de footer niet overlapt op mobiel */
@media (max-width: 640px) {
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
    }
}

/* ── Kaart accent (linker gele rand) ───────── */
.card-accent {
    border-left: 4px solid #feff66;
}

/* ── Smooth focus ring voor toegankelijkheid ─ */
:focus-visible {
    outline: 2px solid #feff66;
    outline-offset: 3px;
}

/* ── Scroll behavior ───────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Link in proza ─────────────────────────── */
.prose-content a {
    color: #c8c900;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
}

.prose-content a:hover {
    opacity: 0.8;
}

/* ── Selectie kleur ────────────────────────── */
::selection {
    background-color: #feff66;
    color: #1a1a1a;
}
