/* ============================================
   CAROUSEL ARTISTES - STYLES COMPLETS
   v1.2.0
   ============================================ */

/* ─── CONTENEUR PRINCIPAL ───────────────────── */

.unpop-carousel-artists {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 0;
    overflow: visible;
}

/* ─── WRAPPER & SLIDES ──────────────────────── */

.unpop-carousel-artists__wrapper {
    display: grid;
    grid-template-columns: repeat(var(--carousel-slides-per-view, 3), minmax(320px, 1fr));
    grid-auto-rows: auto;
    align-items: start;
    justify-content: center;
    gap: var(--carousel-slides-gap, 20px);
    padding-bottom: 10px;
}

/* BASE : utilise les variables injectées par PHP */
.unpop-carousel-artists__slide {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* ← PAS de min-width fixe */
    min-height: 1px;
}

/* ─── CARD ARTISTE ──────────────────────────── */

.unpop-artist-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(1, 11, 19, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.unpop-artist-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 60px rgba(180, 210, 255, 0.18),
        0 8px 32px rgba(180, 210, 255, 0.10),
        0 0 0 1px rgba(180, 210, 255, 0.12);
}

.unpop-artist-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.unpop-artist-card:hover .unpop-artist-card__bg {
    transform: scale(1.05);
}

.unpop-artist-card__bg--placeholder {
    background-color: #1a2535;
}

.unpop-artist-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(1, 11, 19, 0.5) 60%,
        rgba(1, 11, 19, 0.95) 100%
    );
    transition: opacity 0.3s ease;
}

.unpop-artist-card:hover .unpop-artist-card__gradient {
    opacity: 0.85;
}

.unpop-artist-card__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(1, 11, 19, 0.75);
    color: #FB923C;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.55);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.unpop-artist-card:hover .unpop-artist-card__tag {
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(1, 11, 19, 0.95);
}

.unpop-artist-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unpop-artist-card__content::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #FB923C;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: width 0.3s ease;
}

.unpop-artist-card:hover .unpop-artist-card__content::before {
    width: 64px;
}

.unpop-artist-card__name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.unpop-artist-card__role {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #FB923C;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── LARGE DESKTOP ──────────────────────────── */

@media ( min-width: 1400px ) {
    .unpop-carousel-artists {
        max-width: 1480px;
    }
}

/* ─── TABLET ─────────────────────────────────── */

@media ( max-width: 1024px ) {
    .unpop-carousel-artists__wrapper {
        grid-template-columns: repeat(var(--carousel-slides-per-view-tablet, 2), minmax(0, 1fr));
    }
}

/* ─── MOBILE ──────────────────────────────────── */

@media ( max-width: 767px ) {
    .unpop-carousel-artists {
        padding: 20px 16px;
    }

    .unpop-carousel-artists__wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .unpop-artist-card {
        aspect-ratio: 4 / 3;
    }
}
