/*
 * Scrollify Profiles Shortcode — v2.2.0
 * Poppins font. All rules scoped under .sp-profiles-list.
 * Zero styles leak outside the plugin container.
 * No !important — isolation achieved via selector specificity.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   BOX-SIZING — scoped to plugin container only
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list,
.sp-profiles-list *,
.sp-profiles-list *::before,
.sp-profiles-list *::after {
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: 'Poppins', sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARD
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-profile-card {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
	padding: 22px 24px;
	margin: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sp-profiles-list .sp-profile-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border-color: #e8e0ff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LEFT COLUMN
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-card-left {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   AVATAR
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-avatar-wrap {
	position: relative;
	width: 110px;
	height: 110px;
}

.sp-profiles-list .sp-avatar-img {
	display: block;
	width: 110px;
	height: 110px;
	max-width: none;
	border-radius: 10px;
	object-fit: cover;
	background: #f5f5f5;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
}

.sp-profiles-list .sp-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fce7f3 0%, #ede9fe 100%);
	color: #be185d;
	font-size: 38px;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	line-height: 1;
	user-select: none;
	margin: 0;
	padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RANK BADGE
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-rank-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ec4899;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	line-height: 26px;
	text-align: center;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: 0 1px 4px rgba(236, 72, 153, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RIGHT COLUMN
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-card-right {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	align-self: stretch;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAME — h3 reset to prevent theme heading overrides
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-name {
	margin: 0 0 4px 0;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	color: #111111;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: none;
	background: none;
	box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOCATION
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-location {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 4px 0;
	padding: 0;
	font-size: 12px;
	font-weight: 400;
	font-family: 'Poppins', sans-serif;
	color: #888888;
	line-height: 1.3;
	background: none;
}

.sp-profiles-list .sp-location svg {
	flex-shrink: 0;
	color: #aaaaaa;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-category {
	margin: 0 0 8px 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	color: #ec4899;
	line-height: 1.3;
	background: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BIO
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-bio {
	margin: 0 0 14px 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	font-family: 'Poppins', sans-serif;
	color: #555555;
	line-height: 1.6;
	background: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STATS ROW
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px 0;
	padding: 0;
	list-style: none;
}

.sp-profiles-list .sp-stat-box {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 14px;
	margin: 0;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	min-width: 76px;
}

.sp-profiles-list .sp-stat-box--accent {
	background: #fdf2f8;
	border-color: #fbcfe8;
}

.sp-profiles-list .sp-stat-box--accent .sp-stat-label {
	color: #be185d;
}

.sp-profiles-list .sp-stat-box--accent .sp-stat-value {
	color: #be185d;
}

.sp-profiles-list .sp-stat-label {
	display: block;
	font-size: 10px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	color: #aaaaaa;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.sp-profiles-list .sp-stat-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	color: #111111;
	line-height: 1.25;
	white-space: nowrap;
	margin: 0;
	padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PLATFORM TAGS
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px 0;
	padding: 0;
	list-style: none;
}

.sp-profiles-list .sp-platform-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	color: #ec4899;
	background: #fdf2f8;
	border: 1px solid #fce7f3;
	padding: 4px 10px;
	margin: 0;
	border-radius: 20px;
	line-height: 1.4;
	white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIEW PROFILE BUTTON — all states fully scoped, prevents any theme override
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	color: #ffffff;
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
	border: none;
	border-radius: 22px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	width: fit-content;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
	transition: opacity 0.13s ease, transform 0.1s ease, box-shadow 0.13s ease;
}

.sp-profiles-list .sp-view-btn:link,
.sp-profiles-list .sp-view-btn:visited {
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.sp-profiles-list .sp-view-btn:hover,
.sp-profiles-list .sp-view-btn:focus {
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
	opacity: 0.9;
	box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
	outline: none;
}

.sp-profiles-list .sp-view-btn:active {
	transform: scale(0.97);
	opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NO RESULTS
   ───────────────────────────────────────────────────────────────────────────── */
.sp-profiles-list .sp-no-results {
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
	color: #bbbbbb;
	margin: 10px 0;
	padding: 0;
	background: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — tablet
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.sp-profiles-list .sp-profile-card {
		padding: 18px;
		gap: 18px;
	}

	.sp-profiles-list .sp-avatar-wrap {
		width: 88px;
		height: 88px;
	}

	.sp-profiles-list .sp-avatar-img {
		width: 88px;
		height: 88px;
	}

	.sp-profiles-list .sp-avatar-placeholder {
		width: 88px;
		height: 88px;
		font-size: 30px;
	}

	.sp-profiles-list .sp-name {
		font-size: 17px;
	}

	.sp-profiles-list .sp-stat-box {
		min-width: 66px;
		padding: 7px 11px;
	}

	.sp-profiles-list .sp-stat-value {
		font-size: 14px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE — mobile (stacks card vertically)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
	.sp-profiles-list .sp-profile-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 16px;
	}

	.sp-profiles-list .sp-avatar-wrap {
		width: 72px;
		height: 72px;
	}

	.sp-profiles-list .sp-avatar-img {
		width: 72px;
		height: 72px;
	}

	.sp-profiles-list .sp-avatar-placeholder {
		width: 72px;
		height: 72px;
		font-size: 25px;
	}

	.sp-profiles-list .sp-name {
		white-space: normal;
	}

	.sp-profiles-list .sp-stat-box {
		min-width: 60px;
	}
}
