/**
 * Reverie Sounds — Artists Archive + Single Styles
 */

/* ════════════════════════════════════════════
   ARTISTS GRID (Archive)
   ════════════════════════════════════════════ */
.rvs-artists-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* ── Artist Card ── */
.rvs-artist-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.rvs-artist-card:hover {
	border-color: var(--bg-hover);
}

.rvs-artist-card__photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--border);
	background: var(--bg-card-2);
	flex-shrink: 0;
}

.rvs-artist-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rvs-artist-card__placeholder {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.rvs-artist-card__name {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	margin: 12px 0 4px;
}

.rvs-artist-card__desc {
	font-family: var(--font-body);
	font-size: 12px;
	color: var(--text-dim);
	margin: 0 0 8px;
}

.rvs-artist-card .rvs-label-badges {
	justify-content: center;
}

/* ════════════════════════════════════════════
   SINGLE ARTIST DETAIL
   ════════════════════════════════════════════ */
.rvs-artist-detail-wrap {
	max-width: 800px;
}

.rvs-artist-detail__header {
	display: flex;
	gap: 40px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.rvs-artist-detail__photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--border);
	background: var(--bg-card-2);
	flex-shrink: 0;
}

.rvs-artist-detail__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rvs-artist-detail__placeholder {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.rvs-artist-detail__info {
	flex: 1;
	min-width: 280px;
}

/* ── Social Icons (above name) ── */
.rvs-artist-detail__social-icons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.rvs-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-dim);
	transition: all 0.2s ease;
	text-decoration: none;
}

.rvs-social-icon:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--text-primary);
	transform: translateY(-1px);
}

.rvs-social-icon img {
	display: block;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.rvs-social-icon:hover img {
	opacity: 1;
}

.rvs-social-icon svg {
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.rvs-social-icon:hover svg {
	opacity: 1;
}

.rvs-artist-detail__name {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 4px;
}

.rvs-artist-detail__desc {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text-dim);
	margin: 0 0 16px;
}

.rvs-artist-detail__desc .rvs-label-badges {
	margin: 0;
}

/* ── Bio ── */
.rvs-artist-detail__bio {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.7;
	margin-bottom: 8px;
	position: relative;
}

.rvs-artist-detail__bio--clamped {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rvs-artist-detail__bio--clamped::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 28px;
	background: linear-gradient(to bottom, transparent, var(--bg-primary));
	pointer-events: none;
}

.rvs-artist-detail__bio--expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.rvs-artist-detail__bio--expanded::after {
	display: none;
}

.rvs-artist-detail__bio-toggle {
	background: none;
	border: none;
	color: var(--rs-accent);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin-bottom: 16px;
	transition: color 0.2s ease;
}

.rvs-artist-detail__bio-toggle:hover {
	color: var(--text-primary);
}

/* Hide toggle if bio is short enough (handled by JS) */
.rvs-artist-detail__bio-toggle--hidden {
	display: none;
}

.rvs-artist-detail__bio p {
	margin-bottom: 12px;
}

/* ── Social Links (legacy — replaced by .rvs-social-icon above name) ── */
.rvs-artist-detail__socials {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}

/* ── Their Releases ── */
.rvs-artist-detail__releases {
	margin-top: 40px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.rvs-artists-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.rvs-artists-grid {
		grid-template-columns: 1fr;
		max-width: 320px;
	}

	.rvs-artist-card__photo {
		width: 100px;
		height: 100px;
	}

	.rvs-artist-detail__header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.rvs-artist-detail__info {
		min-width: 0;
	}

	.rvs-artist-detail__photo {
		width: 160px;
		height: 160px;
	}

	.rvs-artist-detail__name {
		font-size: 28px;
	}

	.rvs-artist-detail__social-icons {
		justify-content: center;
	}

	.rvs-artist-detail__desc {
		justify-content: center;
	}

	.rvs-artist-detail__socials {
		justify-content: center;
	}
}
