/* ===== ARTIESTEN — voeg toe aan main.css ===== */

#artiesten-wrapper {
    width: 80%;
    margin: auto;
}

#artiesten-wrapper .heading h2 {
    margin: 4em 0 1em 0;
    font-size: 2.3rem;
    text-decoration: underline;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 1.5em;
    transition: transform 0.4s ease;
}

/* Cards */
.artiest-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #444;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    width: calc((100% - 1.5em) / 2); /* 2 cards visible by default */
    transition: border-color 0.3s ease;
}

.artiest-card:hover {
    border-color: var(--accent-color);
}

.artiest-foto {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artiest-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.foto-placeholder {
    position: absolute;
    font-family: monospace;
    font-size: 1rem;
    color: #555;
    pointer-events: none;
}

/* hide placeholder when img loads */
.artiest-foto img[src]:not([src=""]) + .foto-placeholder {
    display: none;
}

.artiest-info {
    padding: 1em;
    text-align: center;
    border-top: 1px solid #333;
}

.artiest-rol {
    font-size: 0.8rem;
    color: var(--accent-color2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2em;
}

.artiest-naam {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Carousel buttons — reuse site button style */
.carousel-btn {
    background: none;
    border: 1px solid #444;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
    background: #212121;
    border-color: var(--accent-color);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1.2em;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-color);
}

a.artiest-foto {
    display: block;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 1024px) {
    #artiesten-wrapper {
        width: 90%;
    }
}

@media screen and (max-width: 700px) {
    .artiest-card {
        width: 100%; /* 1 card visible on mobile */
    }
}
