/* ==============================================
   Artist Card — Top Artist profile card
   Layout: circular avatar left, body right
   Consistent with highlight-card design language
   ============================================== */

/* --- Variables --- */
.artist-card {
    --ac-radius: 18px;
    --ac-accent: rgba(168, 85, 247, 0.7);
    --ac-glass-bg: var(--t-glass-bg, rgba(255, 255, 255, 0.04));
    --ac-glass-border: var(--t-glass-border, rgba(255, 255, 255, 0.08));
    --ac-text-primary: var(--t-text-strong, #f3f4f6);
    --ac-text-secondary: var(--t-text-muted, rgba(255, 255, 255, 0.55));
    --ac-icon-color: var(--t-placeholder, rgba(255, 255, 255, 0.35));
    --ac-photo-size: 130px;

    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: var(--ac-radius);
    background: var(--ac-glass-bg);
    border: 1px solid var(--ac-glass-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Gradient border overlay */
.artist-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ac-radius);
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.02) 40%,
            rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Desktop hover */
@media (min-width: 641px) {
    .artist-card:hover {
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
}


/* --- Photo (circular avatar) --- */
.artist-card__photo {
    flex-shrink: 0;
    width: var(--ac-photo-size);
    height: var(--ac-photo-size);
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(168, 85, 247, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.artist-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.7);
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transition: filter 0.4s ease;
}

@media (min-width: 641px) {
    .artist-card:hover .artist-card__photo img {
        filter: brightness(1) contrast(1.05) saturate(1.2);
    }
}


/* --- Body (label + name + bio + platforms) --- */
.artist-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    position: relative;
    z-index: 1;
}

/* --- Label --- */
.artist-card__label {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ac-accent);
    margin-bottom: 0;
}

/* --- Name --- */
.artist-card__name {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    font-weight: 700;
    color: var(--ac-text-primary);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

/* --- Bio (fade-out) --- */
.artist-card .artist-card__bio {
    margin: 0.15rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--ac-text-secondary);
    line-height: 1.5;
    overflow: hidden;
    max-height: 4.5em;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}


/* --- Platform links --- */
.artist-card__platforms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.artist-card__platform {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    color: var(--ac-icon-color);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.artist-card__platform svg {
    width: 18px;
    height: 18px;
}

/* Desktop hover */
@media (min-width: 641px) {
    .artist-card__platform:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
        transform: scale(1.15);
    }

    .artist-card__platform[data-platform="spotify"]:hover {
        color: #1DB954;
        background: rgba(29, 185, 84, 0.12);
        border-color: rgba(29, 185, 84, 0.25);
        box-shadow: 0 0 14px rgba(29, 185, 84, 0.2);
    }

    .artist-card__platform[data-platform="youtube"]:hover {
        color: #FF0000;
        background: rgba(255, 0, 0, 0.1);
        border-color: rgba(255, 0, 0, 0.2);
        box-shadow: 0 0 14px rgba(255, 0, 0, 0.15);
    }

    .artist-card__platform[data-platform="apple"]:hover {
        color: #FC3C44;
        background: rgba(252, 60, 68, 0.1);
        border-color: rgba(252, 60, 68, 0.2);
        box-shadow: 0 0 14px rgba(252, 60, 68, 0.15);
    }
}

/* Default platform emphasis */
.artist-card__platform--default {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.artist-card__platform--default[data-platform="spotify"] {
    color: #1DB954;
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.15);
}

.artist-card__platform--default[data-platform="youtube"] {
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.12);
}

.artist-card__platform--default[data-platform="apple"] {
    color: #FC3C44;
    border-color: rgba(252, 60, 68, 0.25);
    box-shadow: 0 0 10px rgba(252, 60, 68, 0.12);
}

.artist-card__platform--default[data-platform="shortcut"] {
    color: var(--t-accent, #ef4444);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}


/* ==============================================
   Responsive — Mobile
   ============================================== */
@media (max-width: 640px) {
    .artist-card {
        --ac-photo-size: 90px;
        padding: 1rem;
        margin: 1rem 0;
        gap: 1rem;
    }

    /* --- Disable ALL hover effects on mobile --- */
    .artist-card:hover {
        transform: none;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .artist-card:hover .artist-card__photo img {
        filter: brightness(0.95) contrast(1.05) saturate(1.1);
    }

    .artist-card__name {
        font-size: 0.9375rem;
    }

    .artist-card .artist-card__bio {
        font-size: 0.75rem;
        line-height: 1.4;
        max-height: 4em;
    }

    .artist-card__platforms {
        margin-top: 0.375rem;
        gap: 0.375rem;
    }

    .artist-card__platform {
        width: 2rem;
        height: 2rem;
    }

    .artist-card__platform svg {
        width: 16px;
        height: 16px;
    }

    .artist-card__platform:hover {
        background: rgba(255, 255, 255, 0.03);
        border-color: transparent;
        transform: none;
        box-shadow: none;
    }

    /* Brand colors visible on touch */
    .artist-card__platform[data-platform="spotify"] {
        color: #1DB954;
    }

    .artist-card__platform[data-platform="youtube"] {
        color: #FF0000;
    }

    .artist-card__platform[data-platform="apple"] {
        color: #FC3C44;
    }
}


/* ==============================================
   Reduced motion
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    .artist-card {
        transition: none;
    }

    .artist-card__photo img {
        transition: none;
    }

    .artist-card__platform {
        transition: none;
    }
}