/* ============================================
   HOMEPAGE-WEGWIJZER (includes/home-wegwijzer.php)
   Compacte, visuele ingang naar alle openbare inhoud.
   ============================================ */

.ww-section {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0 0.5rem;
}

.ww-panel {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, rgba(26, 35, 64, 0.92) 0%, rgba(10, 17, 40, 0.94) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Dunne gouden lichtlijn langs de bovenrand */
.ww-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kht-gold-1, #D4AF37), transparent);
    opacity: 0.8;
}

/* ---------- Kop ---------- */
.ww-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.ww-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kht-gold-1, #D4AF37);
}

.ww-title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--kht-white, #fff);
}

.ww-intro {
    margin: 0.3rem 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--kht-text-light, #e8e8e8);
    opacity: 0.85;
}

/* Pijlknoppen alleen tonen als de kaarten horizontaal scrollen */
.ww-arrows {
    display: none;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ww-scrollable .ww-arrows {
    display: flex;
}

.ww-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    background: rgba(10, 17, 40, 0.6);
    color: var(--kht-gold-1, #D4AF37);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ww-arrow:hover {
    background: var(--kht-gold-1, #D4AF37);
    color: var(--kht-dark-blue-1, #0a1128);
}

.ww-at-start .ww-arrow[data-ww-dir="-1"],
.ww-at-end .ww-arrow[data-ww-dir="1"] {
    opacity: 0.35;
    pointer-events: none;
}

/* ---------- Kaarten ---------- */
.ww-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ww-item {
    display: flex;
    min-width: 0;
}

.ww-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.ww-card:hover,
.ww-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.ww-card:focus-visible,
.ww-chip:focus-visible,
.ww-arrow:focus-visible {
    outline: 2px solid var(--kht-gold-1, #D4AF37);
    outline-offset: 3px;
}

.ww-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, 0.28), rgba(10, 17, 40, 0.4) 70%);
    color: var(--kht-gold-1, #D4AF37);
    transition: background 0.25s ease, color 0.25s ease;
}

.ww-icon svg {
    width: 22px;
    height: 22px;
}

.ww-card:hover .ww-icon,
.ww-card:focus-visible .ww-icon {
    background: linear-gradient(135deg, var(--kht-gold-1, #D4AF37), var(--kht-gold-2, #C9A961));
    color: var(--kht-dark-blue-1, #0a1128);
}

.ww-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ww-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--kht-white, #fff);
}

.ww-card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--kht-text-light, #e8e8e8);
    opacity: 0.8;
}

.ww-card-count {
    margin-top: 0.3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kht-gold-1, #D4AF37);
}

.ww-card-arrow {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    color: var(--kht-gold-1, #D4AF37);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ww-card:hover .ww-card-arrow,
.ww-card:focus-visible .ww-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Snelle links ---------- */
.ww-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    list-style: none;
}

.ww-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--kht-text-light, #e8e8e8);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ww-chip svg {
    width: 15px;
    height: 15px;
    color: var(--kht-gold-1, #D4AF37);
    transition: color 0.2s ease;
}

.ww-chip:hover,
.ww-chip:focus-visible {
    border-color: var(--kht-gold-1, #D4AF37);
    background: var(--kht-gold-1, #D4AF37);
    color: var(--kht-dark-blue-1, #0a1128);
}

.ww-chip:hover svg,
.ww-chip:focus-visible svg {
    color: var(--kht-dark-blue-1, #0a1128);
}

/* ---------- Verschijn-animatie (alleen met JS en zonder reduced motion) ---------- */
.ww-animate .ww-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--ww-i, 0) * 60ms);
}

.ww-animate.ww-visible .ww-item {
    opacity: 1;
    transform: none;
}

/* ---------- Tablet & mobiel: kaarten horizontaal swipen ---------- */
@media (max-width: 1023px) {
    .ww-track {
        display: flex;
        gap: 0.7rem;
        margin: 0 -1.5rem;
        padding: 0.25rem 1.5rem 0.6rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .ww-track::-webkit-scrollbar {
        display: none;
    }

    .ww-item {
        flex: 0 0 15.5rem;
        scroll-snap-align: start;
    }

    /* Zachte vervaging aan de randen die nog verder scrollen */
    .ww-scrollable:not(.ww-at-end) .ww-track {
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }

    .ww-scrollable.ww-at-end:not(.ww-at-start) .ww-track {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%);
        mask-image: linear-gradient(90deg, transparent, #000 15%);
    }

    .ww-scrollable:not(.ww-at-start):not(.ww-at-end) .ww-track {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 88%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 10%, #000 88%, transparent);
    }
}

@media (max-width: 600px) {
    .ww-section {
        padding: 1.75rem 0 0.25rem;
    }

    .ww-panel {
        padding: 1.15rem 1rem 1rem;
        border-radius: 14px;
    }

    .ww-head {
        margin-bottom: 0.85rem;
    }

    .ww-intro {
        font-size: 0.82rem;
    }

    /* Op de telefoon swipe je; de pijlen kosten daar alleen ruimte */
    .ww-scrollable .ww-arrows {
        display: none;
    }

    .ww-track {
        margin: 0 -1rem;
        padding: 0.25rem 1rem 0.5rem;
        scroll-padding: 0 1rem;
    }

    .ww-item {
        flex-basis: 78%;
        max-width: 16rem;
    }

    .ww-card {
        padding: 0.8rem 0.85rem;
    }

    .ww-icon {
        width: 38px;
        height: 38px;
    }

    .ww-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Snelle links op één swipebare regel */
    .ww-quick {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0.75rem -1rem 0;
        padding: 0.85rem 1rem 0.15rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ww-quick::-webkit-scrollbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ww-card,
    .ww-card-arrow,
    .ww-icon,
    .ww-chip,
    .ww-arrow {
        transition: none;
    }

    .ww-card:hover,
    .ww-card:focus-visible {
        transform: none;
    }

    .ww-track {
        scroll-behavior: auto;
    }
}
