/* Disco-Train — Artiesten
   Zelfde kleurenpalet als discotrain-mec-styling (bewust gedupliceerd i.p.v.
   een gedeeld bestand, zodat deze plugin los blijft van die andere — zie
   docs/disco-train-artiesten-plan.md, punt 1). */
:root {
    --discotrain-accent: #ff007f;
    --discotrain-accent-hover: #e6006f;
    --discotrain-teal: #006b7d;
    --discotrain-dark: #0d0d0d;
    --discotrain-dark-alt: #1a1a1a;
    --discotrain-text: #ffffff;
    --discotrain-text-muted: #a3a3a3;
    --discotrain-border: rgba(255, 255, 255, 0.08);
    --discotrain-radius: 16px;
}

.discotrain-artiesten-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Shared card look, reused for grid items, list rows, profile sections. */
.discotrain-artiesten-card {
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: var(--discotrain-radius);
    padding: 24px;
    margin-bottom: 20px;
    color: var(--discotrain-text);
}

.discotrain-artiesten-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--discotrain-text) !important;
    margin: 0 0 16px;
    font-size: 20px;
}

.discotrain-artiesten-empty {
    color: var(--discotrain-text-muted);
}

/* Stijl badges — margin-top:auto pins this row to the bottom of the card
   body (a flex column, see .discotrain-artiesten-card-body), so it lands in
   a fixed "footer" spot at the same height across every card in a grid row,
   regardless of title length or how many badges wrap to a 2nd line. */
.discotrain-artiesten-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
}

.discotrain-artiesten-badge {
    background: rgba(255, 0, 127, 0.12);
    color: var(--discotrain-accent);
    border: 1px solid rgba(255, 0, 127, 0.35);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Grid overview */
.discotrain-artiesten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.discotrain-artiesten-card-image-placeholder,
.discotrain-artiesten-card-image {
    background: var(--discotrain-dark);
    border-radius: calc(var(--discotrain-radius) - 4px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discotrain-artiesten-card-image-placeholder {
    color: var(--discotrain-text-muted);
}

.discotrain-artiesten-card-image-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Cards stretch to their grid row's height (CSS grid's default align-items:
   stretch), then flex-column + margin-top:auto on the badges below pins
   the "stijl" badges to a fixed spot at the bottom of every card in that
   row, regardless of title length or how many badges wrap. */
a.discotrain-artiesten-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

a.discotrain-artiesten-card:hover {
    border-color: var(--discotrain-accent);
}

/* !important nodig: Betheme's globale img:not([src*='.svg']){height:auto}
   heeft dezelfde specificiteit en wint anders de cascade-tie — zie
   discotrain-fotogalleries.css voor de uitleg. */
.discotrain-artiesten-card-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.discotrain-artiesten-card-body {
    padding: 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.discotrain-artiesten-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--discotrain-text) !important;
}

/* List overview */
.discotrain-artiesten-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discotrain-artiesten-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: var(--discotrain-radius);
    padding: 12px 16px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.discotrain-artiesten-list-row:hover {
    border-color: var(--discotrain-accent);
}

.discotrain-artiesten-list-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.discotrain-artiesten-list-thumb .discotrain-artiesten-card-image-placeholder {
    width: 100%;
    height: 100%;
}

/* !important: zie discotrain-fotogalleries.css — Betheme's globale
   img:not([src*='.svg']){height:auto} wint anders de specificiteit-tie. */
.discotrain-artiesten-list-thumb img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.discotrain-artiesten-list-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discotrain-artiesten-list-title {
    color: var(--discotrain-text) !important;
    font-weight: 600;
    font-size: 16px;
}

/* Single artiestprofiel — page-width matches the theme's own
   .section_wrapper/.container (1220px, see homepage). */
.discotrain-artiesten-single {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 0 60px;
    box-sizing: border-box;
}

.discotrain-artiesten-back-link {
    display: inline-block;
    color: var(--discotrain-text-muted) !important;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.discotrain-artiesten-back-link:hover {
    color: var(--discotrain-accent) !important;
}

/* Volle-breedte header-afbeelding boven op de bio-kaart, i.p.v. het
   voormalige kleine (260px) vierkante thumbnail naast de titel — op
   klantverzoek, was op mobiel nauwelijks een "header" te noemen.
   Negatieve margin trekt de kaart-padding (24px, zie .discotrain-artiesten-
   card) weg zodat de afbeelding zelf tot de randen van de kaart loopt;
   overflow:hidden + alleen boven afgeronde hoeken zodat 'm nog past bij de
   kaart-radius. */
.discotrain-artiesten-header-image {
    margin: -24px -24px 24px;
    border-radius: var(--discotrain-radius) var(--discotrain-radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--discotrain-dark);
}

.discotrain-artiesten-header-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.discotrain-artiesten-header-image .discotrain-artiesten-card-image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

/* Profiel-body (titel/badges/socials) staat nu los onder de header-
   afbeelding i.p.v. ernaast — geen eigen breedte/flex meer nodig, gewoon de
   volle kaart-breedte. */
.discotrain-artiesten-profile-body {
    margin-bottom: 24px;
}

.discotrain-artiesten-card .discotrain-artiesten-profile-body:last-child {
    margin-bottom: 0;
}

.discotrain-artiesten-profile-title {
    margin: 0 0 8px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--discotrain-text) !important;
}

.discotrain-artiesten-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.discotrain-artiesten-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    color: var(--discotrain-text) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.discotrain-artiesten-social-link:hover {
    background: var(--discotrain-accent);
    border-color: var(--discotrain-accent);
}

.discotrain-artiesten-bio-body {
    color: var(--discotrain-text-muted);
    line-height: 1.6;
}

.discotrain-artiesten-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.discotrain-artiesten-event-card {
    display: block;
    text-decoration: none;
    background: var(--discotrain-dark);
    border-radius: calc(var(--discotrain-radius) - 4px);
    overflow: hidden;
    border: 1px solid var(--discotrain-border);
    transition: border-color 0.15s ease;
}

.discotrain-artiesten-event-card:hover {
    border-color: var(--discotrain-accent);
}

.discotrain-artiesten-event-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.discotrain-artiesten-event-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discotrain-artiesten-event-card-date {
    color: var(--discotrain-accent) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.discotrain-artiesten-event-card-title {
    color: var(--discotrain-text) !important;
    font-size: 14px;
    font-weight: 600;
}

/* Archiefpagina — zelfde 1220px page-width conventie. */
.discotrain-artiesten-archive {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 0 60px;
    box-sizing: border-box;
}

.discotrain-artiesten-archive-title {
    color: var(--discotrain-text) !important;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 24px;
}

/* Small accent underline below the start of the title (not full-width) —
   same pattern as the Albums and DJ Mixes archive titles, for a consistent
   look across all Disco-Train overview pages. */
.discotrain-artiesten-archive-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 10px;
    background: var(--discotrain-accent);
    border-radius: 2px;
}

/* Line-up artiestenkaartjes op de single-eventpagina (discotrain-mec-styling
   leest deze klassen, zodat de look overeenkomt zonder de CSS te dupliceren
   in twee plugins). */
.discotrain-artiesten-lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.discotrain-artiesten-lineup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
    color: var(--discotrain-text) !important;
}

.discotrain-artiesten-lineup-card-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.discotrain-artiesten-lineup-card:hover .discotrain-artiesten-lineup-card-image {
    border-color: var(--discotrain-accent);
}

/* !important: zie discotrain-fotogalleries.css — Betheme's globale
   img:not([src*='.svg']){height:auto} wint anders de specificiteit-tie. */
.discotrain-artiesten-lineup-card-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.discotrain-artiesten-lineup-card-name {
    font-size: 13px;
    font-weight: 600;
}

/* De header-afbeelding is al volle breedte op elk schermformaat — geen
   aparte mobiele override meer nodig (was voorheen wel zo voor het oude
   260px-vierkante thumbnail). */
@media (max-width: 767px) {
    .discotrain-artiesten-header-image {
        margin: -24px -24px 20px;
    }
}

/* [discotrain_artiesten_carousel] — "DJ Post Carousel Slider".
   --discotrain-carousel-visible drives both the CSS (slide width) and the
   JS (discotrain-artiesten.js reads the same breakpoints to know how many
   cards are on-screen, so the two stay in sync without duplicating numbers
   in two places beyond this one custom property + its matching JS consts). */
.discotrain-artiesten-carousel {
    --discotrain-carousel-visible: 4;
    --discotrain-carousel-gap: 20px;
    position: relative;
    padding: 0 44px;
}

/* overflow:hidden lives on this separate, non-transformed wrapper — NOT on
   the track itself. Putting both overflow:hidden and transform on the same
   element makes the clipping "window" slide along with the transform
   (since a transformed element clips relative to its own, now-shifted, box),
   so the visible viewport itself drifts off-screen as the carousel
   advances instead of staying put while only the content inside scrolls. */
.discotrain-artiesten-carousel-viewport {
    overflow: hidden;
}

/* No CSS transition here on purpose — the scroll position is driven by
   requestAnimationFrame in discotrain-artiesten.js, updating transform on
   every frame for a genuinely continuous motion. A CSS transition would
   fight that (each tiny per-frame jump would re-trigger/interrupt its own
   easing), causing stutter instead of smooth movement. */
/* align-items: stretch (the flexbox default) — cards in the same row line
   up with equal height, matching the grid view's look. This only stays
   safe (no huge empty gaps under a short-content card) because the title
   and badges below are both given a FIXED height via line-clamp / a
   max-1-row cap — see .discotrain-artiesten-carousel-slide
   .discotrain-artiesten-card-title / .discotrain-artiesten-badges below.
   Without that, "stretch" is what originally caused a DJ card with just 1
   badge to be stretched to match a DJ with a 4-line title + 4 badges,
   leaving a big empty gap above the badge (pinned to the bottom via
   margin-top:auto). Clamping content height instead of loosening the
   alignment keeps cards visually equal-height, as requested, while still
   avoiding that gap. */
.discotrain-artiesten-carousel-track {
    display: flex;
    gap: var(--discotrain-carousel-gap);
    will-change: transform;
}

.discotrain-artiesten-carousel-slide {
    flex: 0 0 calc((100% - (var(--discotrain-carousel-visible) - 1) * var(--discotrain-carousel-gap)) / var(--discotrain-carousel-visible));
    min-width: 0;
}

/* The slide wraps a .discotrain-artiesten-card (same class as the grid), so
   it inherits that look for free — just needs full-height/full-width here
   since it's now inside a flex slide instead of a grid cell. */
.discotrain-artiesten-carousel-slide .discotrain-artiesten-card {
    height: 100%;
    margin-bottom: 0;
}

/* Fixed 2-line height for the title, regardless of whether the DJ's name
   is one short word or wraps to 2 lines — a 3rd+ line gets ellipsized
   rather than pushing the card taller. This is the main lever that makes
   "stretch" above safe: without it, "Ben Liebrand" (1 line) vs. "Disco-
   Train DJ Team" (2 lines) alone was already a big chunk of the height
   mismatch between cards. */
.discotrain-artiesten-carousel-slide .discotrain-artiesten-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.25em * 2);
}

/* Fixed 1-row height for the badges — a DJ with many stijl-badges (e.g. 4)
   only shows as many as fit on one line instead of wrapping to a 2nd/3rd
   row (the full list is still visible on the DJ's own profile page/the
   grid view elsewhere, this is just the compact carousel card). This is
   the other main lever alongside the title clamp above. */
.discotrain-artiesten-carousel-slide .discotrain-artiesten-badges {
    flex-wrap: nowrap;
    overflow: hidden;
    max-height: 24px;
}

/* The badge pill's own box is only ~16px tall (10px font + padding), but it
   inherits a much taller line-height (28px) from the card body — meaning
   the text glyphs render well outside the 16px box even though nothing
   normally clips it. The overflow:hidden above (needed for the 1-row cap)
   made that mismatch visible: badge text was getting clipped top/bottom.
   Fixing the line-height directly, scoped to the carousel since that's the
   only place anything actually clips this. */
.discotrain-artiesten-carousel-slide .discotrain-artiesten-badge {
    line-height: 1.2;
}

@media (max-width: 1023px) {
    .discotrain-artiesten-carousel {
        --discotrain-carousel-visible: 3;
    }

    /* Narrower cards at 3-visible wrap the 22px title onto more lines than
       is comfortable — scale it down a bit, carousel-only (the grid/list
       views keep the full 22px, their cards are wider). */
    .discotrain-artiesten-carousel-slide .discotrain-artiesten-card-title {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .discotrain-artiesten-carousel {
        /* 1 card at a time on mobile (explicit client request), and no side
           padding — the card runs the full width like everything else on
           the page. The arrows lose their dedicated gutter as a result, so
           they switch to floating on top of the card edges instead (see
           .discotrain-artiesten-carousel-nav below). */
        --discotrain-carousel-visible: 1;
        --discotrain-carousel-gap: 12px;
        padding: 0;
    }

    .discotrain-artiesten-carousel-slide .discotrain-artiesten-card-title {
        font-size: 20px;
    }

    /* No side padding left to sit in on mobile, so the arrows float
       directly over the card edges instead, inset slightly so they're not
       flush against the viewport clipping edge. */
    .discotrain-artiesten-carousel-nav {
        left: 8px;
        right: 8px;
    }
}

.discotrain-artiesten-carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.discotrain-artiesten-carousel-arrow {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: 50%;
    color: var(--discotrain-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.discotrain-artiesten-carousel-arrow:hover {
    background: var(--discotrain-accent);
    border-color: var(--discotrain-accent);
}

.discotrain-artiesten-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
