/* Studio Profile V2 -- Team Section
 * Redesigned (2026-03-26)
 * REPLACES previous sp-artists-grid + sp-artist-card styles
 */

 /*
 * Section title counter
 * ---------------------------------------------------------------- */

.sp-team-count {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
}

 /*
 * Row container
 * Mobile: horizontal scroll with snap
 * Tablet+: flex-wrap, left-aligned
 * ---------------------------------------------------------------- */

.sp-team-row {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    /* Fade-right mask for scroll hint on mobile */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.sp-team-row::-webkit-scrollbar {
    display: none;
}

 /*
 * Individual member item (link wrapper)
 * ---------------------------------------------------------------- */

.sp-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 96px;
    /* Subtle interaction hint */
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.sp-member:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.sp-member:active {
    transform: translateY(0);
    opacity: 0.7;
}

 /*
 * Avatar circle
 * ---------------------------------------------------------------- */

.sp-member__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.sp-member:hover .sp-member__avatar {
    border-color: var(--color-brand-accent);
}

.sp-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder (initials) */
.sp-member__avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-elevated) 100%);
    color: var(--color-text-muted);
    border-radius: 50%;
}

 /*
 * Info block (below avatar)
 * ---------------------------------------------------------------- */

.sp-member__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    width: 100%;
}

.sp-member__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
}

.sp-member__styles {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
}

.sp-member__meta {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    line-height: 1.3;
}

.sp-member__star {
    color: var(--color-brand-accent);
}

 /*
 * Responsive
 * ---------------------------------------------------------------- */

@media (min-width: 1024px) {
    .sp-team-row {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        -webkit-mask-image: none;
        mask-image: none;
        gap: var(--space-10);
    }

    .sp-member {
        flex-shrink: 1;
        width: 104px;
    }

    .sp-member__avatar {
        width: 96px;
        height: 96px;
    }
}

 /*
 * Accessibility: keyboard focus
 * ---------------------------------------------------------------- */

.sp-member:focus-visible {
    outline: 2px solid var(--color-brand-accent);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

 /*
 * Empty state
 * ---------------------------------------------------------------- */

.sp-team-empty {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-4) 0;
}

/* Studio Profile V2 -- Artists at Studio Section (legacy) */

.sp-artists {
    padding: 0 0 var(--space-12);
}

.sp-artists-grid {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.sp-artists-grid::-webkit-scrollbar {
    display: none;
}

.sp-artist-card {
    flex-shrink: 0;
    width: var(--sp-artists-card-width);
    scroll-snap-align: start;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.sp-artist-card:hover {
    border-color: var(--color-text-secondary);
    background: var(--color-bg-card);
}

.sp-artist-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg-card);
}

.sp-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-artist-info {
    min-width: 0;
    flex: 1;
}

.sp-artist-name {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-artist-rating {
    font-size: var(--text-xs);
    color: var(--color-brand-accent);
    margin-top: 2px;
}

.sp-artist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.sp-artist-tag {
    font-size: var(--text-xs);
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    .sp-artists-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(var(--sp-artists-card-width), 1fr));
        overflow-x: visible;
    }

    .sp-artist-card {
        width: auto;
    }
}
