/* ================================================================
 * SPV Profile Widgets — CSS Frontend
 * ================================================================ */

/* ── Reset base ── */
[class^="spv-p"],
[class^="spv-a"],
[class^="spv-t"],
[class^="spv-pg"] {
	box-sizing: border-box;
}

/* ================================================================
 * WIDGET: Profile Header (.spv-ph)
 * ================================================================ */
.spv-ph {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 32px;
	position: relative;
}

.spv-ph__avatar img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e0e0e0;
}

.spv-ph__info {
	flex: 1;
}

.spv-ph__name {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a2e;
	line-height: 1.2;
}

.spv-ph__badge {
	display: inline-block;
	background: #27ae60;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.spv-ph__subtitle {
	margin: 4px 0 0;
	font-size: 0.95rem;
	color: #666;
}

.spv-ph__social {
	display: flex;
	gap: 8px;
	align-items: center;
}

.spv-ph__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.spv-ph__social a:hover {
	opacity: 0.8;
}

/* ================================================================
 * WIDGET: Profile Info Grid (.spv-pig)
 * ================================================================ */
.spv-pig__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #27ae60;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #27ae60;
}

.spv-pig__grid {
	display: grid;
	gap: 0;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.spv-pig__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.spv-pig__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.spv-pig__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.spv-pig__grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

.spv-pig__cell {
	padding: 12px 16px;
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.spv-pig__cell:last-child {
	border-right: none;
}

.spv-pig__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #666;
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.spv-pig__value {
	display: block;
	font-size: 0.95rem;
	color: #1a1a2e;
}

.spv-pig__empty {
	color: #999;
	font-style: italic;
}

/* ================================================================
 * WIDGET: Profile Bio (.spv-pbio)
 * ================================================================ */
.spv-pbio__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #27ae60;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #27ae60;
}

.spv-pbio__text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #333;
}

.spv-pbio__text p:last-child {
	margin-bottom: 0;
}

/* ================================================================
 * WIDGET: Profile Social (.spv-ps)
 * ================================================================ */
.spv-ps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.spv-ps__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #333;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.2s;
}

.spv-ps__link:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

.spv-ps--icons_text .spv-ps__link {
	width: auto;
	border-radius: 20px;
	padding: 6px 16px;
	font-size: 0.85rem;
}

/* ================================================================
 * WIDGET: Profiles Grid (.spv-pg)
 * ================================================================ */
.spv-pg {
	display: grid;
	gap: 20px;
}

.spv-pg--cols-1 { grid-template-columns: 1fr; }
.spv-pg--cols-2 { grid-template-columns: repeat(2, 1fr); }
.spv-pg--cols-3 { grid-template-columns: repeat(3, 1fr); }
.spv-pg--cols-4 { grid-template-columns: repeat(4, 1fr); }

.spv-pg--list {
	grid-template-columns: 1fr;
}

.spv-pg--list .spv-pg__card {
	display: flex;
	align-items: center;
	gap: 16px;
}

.spv-pg--carousel {
	display: flex;
	gap: 20px;
	overflow: hidden;
	position: relative;
}

.spv-pg__card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s, transform 0.2s;
}

.spv-pg__card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

.spv-pg__avatar {
	padding: 20px 20px 0;
	text-align: center;
}

.spv-pg--list .spv-pg__avatar {
	padding: 12px;
	flex-shrink: 0;
}

.spv-pg__avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e0e0e0;
}

.spv-pg__body {
	padding: 16px 20px 20px;
	text-align: center;
}

.spv-pg--list .spv-pg__body {
	text-align: left;
	flex: 1;
}

.spv-pg__name {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a2e;
}

.spv-pg__meta {
	display: block;
	font-size: 0.82rem;
	color: #666;
	margin-bottom: 2px;
}

.spv-pg__type {
	font-weight: 600;
	color: #27ae60;
}

.spv-pg__bio {
	font-size: 0.85rem;
	color: #555;
	margin: 8px 0;
	line-height: 1.4;
}

.spv-pg__btn {
	display: inline-block;
	background: #27ae60;
	color: #fff;
	padding: 8px 20px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	margin-top: 10px;
	transition: background 0.2s;
}

.spv-pg__btn:hover {
	background: #219a52;
	color: #fff;
}

.spv-pg__empty {
	text-align: center;
	color: #999;
	font-style: italic;
	padding: 24px;
}

/* Carousel arrows */
.spv-pg__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
}

.spv-pg__arrow--prev { left: -12px; }
.spv-pg__arrow--next { right: -12px; }

/* Table layout */
.spv-pg--table {
	display: block;
}

.spv-pg__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.spv-pg__table th,
.spv-pg__table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.spv-pg__table thead th {
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.spv-pg__table tbody tr:last-child td {
	border-bottom: none;
}

.spv-pg__table-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e0e0e0;
}

.spv-pg__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.spv-pg__badge-type {
	background: #27ae60;
	color: #fff;
}

.spv-pg__btn-small {
	padding: 6px 14px;
	font-size: 0.8rem;
}

.spv-pg__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.spv-pg__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.spv-pg__dot:hover {
	background: #27ae60;
}

/* ================================================================
 * WIDGET: Athlete Data (.spv-ad)
 * ================================================================ */
.spv-ad__heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #27ae60;
	margin: 24px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #27ae60;
}

.spv-ad__section:first-child .spv-ad__heading {
	margin-top: 0;
}

.spv-ad__table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	margin-bottom: 8px;
}

.spv-ad__table th,
.spv-ad__table td {
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	font-size: 0.9rem;
	text-align: left;
}

.spv-ad__table thead th {
	background: #f5f5f5;
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.spv-ad__table tbody tr:nth-child(even) {
	background: #fafafa;
}

.spv-ad__table a {
	color: #27ae60;
	text-decoration: none;
	font-weight: 500;
}

.spv-ad__table a:hover {
	text-decoration: underline;
}

.spv-ad__pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #27ae60;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.spv-ad__status {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 10px;
	text-transform: capitalize;
}

.spv-ad__status--scheduled   { background: #e3f2fd; color: #1565c0; }
.spv-ad__status--completed   { background: #e8f5e9; color: #2e7d32; }
.spv-ad__status--cancelled   { background: #fbe9e7; color: #c62828; }
.spv-ad__status--in_progress { background: #fff8e1; color: #f57f17; }

.spv-ad__cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.spv-ad__card {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.spv-ad__card--ranking {
	align-items: center;
}

.spv-ad__card-body {
	flex: 1;
}

.spv-ad__card-date {
	font-weight: 600;
	color: #27ae60;
	font-size: 0.85rem;
}

.spv-ad__card-event {
	font-weight: 600;
	font-size: 1rem;
	margin-top: 4px;
}

.spv-ad__card-round,
.spv-ad__card-loc,
.spv-ad__card-meta {
	font-size: 0.82rem;
	color: #666;
	margin-top: 2px;
}

.spv-ad__card-title {
	font-weight: 600;
	font-size: 0.95rem;
}

.spv-ad__card-title a {
	color: #1a1a2e;
	text-decoration: none;
}

.spv-ad__card-title a:hover {
	color: #27ae60;
}

.spv-ad__card-score {
	font-size: 1.1rem;
	font-weight: 700;
	color: #27ae60;
	margin-top: 4px;
}

.spv-ad__empty {
	color: #999;
	font-style: italic;
}

/* ================================================================
 * WIDGET: Teacher Courses (.spv-tc)
 * ================================================================ */
.spv-tc__heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #27ae60;
	margin: 24px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #27ae60;
}

.spv-tc__section:first-child .spv-tc__heading {
	margin-top: 0;
}

.spv-tc__grid {
	display: grid;
	gap: 16px;
}

.spv-tc__grid--cols-1 { grid-template-columns: 1fr; }
.spv-tc__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.spv-tc__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.spv-tc__card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s;
}

.spv-tc__card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.spv-tc__thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.spv-tc__body {
	padding: 16px;
}

.spv-tc__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.spv-tc__title a {
	color: #1a1a2e;
	text-decoration: none;
}

.spv-tc__title a:hover {
	color: #27ae60;
}

.spv-tc__date {
	font-size: 0.82rem;
	color: #27ae60;
	font-weight: 600;
	margin-bottom: 6px;
}

.spv-tc__excerpt {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.4;
	margin: 0 0 10px;
}

.spv-tc__btn {
	display: inline-block;
	background: #27ae60;
	color: #fff;
	padding: 7px 18px;
	border-radius: 4px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.spv-tc__btn:hover {
	background: #219a52;
	color: #fff;
}

.spv-tc__btn--sm {
	padding: 4px 12px;
	font-size: 0.78rem;
}

.spv-tc__table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
}

.spv-tc__table th,
.spv-tc__table td {
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	font-size: 0.9rem;
}

.spv-tc__table thead th {
	background: #f5f5f5;
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.spv-tc__table a {
	color: #27ae60;
	text-decoration: none;
}

.spv-tc__table a:hover {
	text-decoration: underline;
}

.spv-tc__empty {
	color: #999;
	font-style: italic;
}

/* ================================================================
 * WIDGET: President Teams (.spv-pt)
 * ================================================================ */
.spv-pt__heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #27ae60;
	margin: 0 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #27ae60;
}

.spv-pt__grid {
	display: grid;
	gap: 16px;
}

.spv-pt__grid--cols-1 { grid-template-columns: 1fr; }
.spv-pt__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.spv-pt__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.spv-pt__card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s;
}

.spv-pt__card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.spv-pt__thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.spv-pt__body {
	padding: 16px;
}

.spv-pt__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.spv-pt__title a {
	color: #1a1a2e;
	text-decoration: none;
}

.spv-pt__title a:hover {
	color: #27ae60;
}

.spv-pt__excerpt {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.4;
	margin: 0 0 10px;
}

.spv-pt__btn {
	display: inline-block;
	background: #27ae60;
	color: #fff;
	padding: 7px 18px;
	border-radius: 4px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.spv-pt__btn:hover {
	background: #219a52;
	color: #fff;
}

.spv-pt__empty {
	color: #999;
	font-style: italic;
}

/* ================================================================
 * RESPONSIVE
 * ================================================================ */
@media (max-width: 768px) {
	.spv-ph {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.spv-ph__social {
		justify-content: center;
	}

	.spv-pig__grid--cols-3,
	.spv-pig__grid--cols-4,
	.spv-pig__grid--cols-5 {
		grid-template-columns: repeat(2, 1fr);
	}

	.spv-pg--cols-3,
	.spv-pg--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.spv-tc__grid--cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.spv-pt__grid--cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.spv-ad__cards {
		grid-template-columns: 1fr;
	}

	.spv-ad__table {
		font-size: 0.82rem;
	}

	.spv-ad__table th,
	.spv-ad__table td {
		padding: 8px 10px;
	}

	/* Table responsive */
	.spv-pg__table {
		font-size: 0.85rem;
	}

	.spv-pg__table th,
	.spv-pg__table td {
		padding: 8px 10px;
	}

	.spv-pg__table-avatar {
		width: 36px;
		height: 36px;
	}

	.spv-pg__table .spv-pg__th-avatar,
	.spv-pg__table .spv-pg__td-avatar,
	.spv-pg__table .spv-pg__th-city,
	.spv-pg__table .spv-pg__td-city,
	.spv-pg__table .spv-pg__th-assoc,
	.spv-pg__table .spv-pg__td-assoc {
		display: none;
	}
}

@media (max-width: 480px) {
	.spv-pig__grid--cols-2,
	.spv-pig__grid--cols-3,
	.spv-pig__grid--cols-4,
	.spv-pig__grid--cols-5 {
		grid-template-columns: 1fr;
	}

	.spv-pg--cols-2,
	.spv-pg--cols-3,
	.spv-pg--cols-4 {
		grid-template-columns: 1fr;
	}

	.spv-tc__grid--cols-2,
	.spv-tc__grid--cols-3 {
		grid-template-columns: 1fr;
	}

	.spv-pt__grid--cols-2,
	.spv-pt__grid--cols-3 {
		grid-template-columns: 1fr;
	}
}
