/* ------------------------------------------------------------------
   Sports Team Management — Public / Front-end styles
   Mobile-first, responsive layout.
------------------------------------------------------------------- */

.stm-empty {
	padding: 16px;
	text-align: center;
	color: #666;
	font-style: italic;
}

/* Standings table */
.stm-standings-wrap {
	overflow-x: auto;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}

.stm-standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 420px;
}

.stm-standings-table th,
.stm-standings-table td {
	padding: 10px 8px;
	text-align: center;
	border-bottom: 1px solid #e5e5e5;
}

.stm-standings-table th {
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.stm-standings-table .stm-col-team {
	text-align: left;
}

.stm-standings-table tbody tr:nth-child(odd) {
	background: #f8f9fa;
}

.stm-standings-table tbody tr:hover {
	background: #eef4fb;
}

.stm-team-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.stm-team-logo-sm {
	width: 24px;
	height: 24px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Team card grid */
.stm-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.stm-team-card {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stm-team-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stm-team-card-logo img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 12px;
	display: block;
}

.stm-team-card-logo-placeholder {
	width: 90px;
	height: 90px;
	line-height: 90px;
	font-size: 36px;
	border-radius: 50%;
	background: #f1f1f1;
	margin: 0 auto 12px;
}

.stm-team-card-title {
	margin: 8px 0 4px;
	font-size: 18px;
}

.stm-team-card-coach {
	margin: 0 0 6px;
	color: #666;
	font-size: 13px;
}

.stm-team-card-record {
	font-weight: 700;
	font-size: 15px;
	color: #1d2327;
	background: #f1f1f1;
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
}

/* Schedule cards */
.stm-schedule-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 20px 0;
}

.stm-schedule-card {
	border: 1px solid #e5e5e5;
	border-left: 4px solid #2271b1;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stm-schedule-card.stm-status-postponed { border-left-color: #dba617; }
.stm-schedule-card.stm-status-cancelled { border-left-color: #d63638; }
.stm-schedule-card.stm-status-rematch   { border-left-color: #8c34eb; }
.stm-schedule-card.stm-status-completed { border-left-color: #00a32a; }

.stm-schedule-teams {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.stm-schedule-team {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 16px;
}

.stm-schedule-team img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 50%;
}

.stm-schedule-vs {
	color: #999;
	font-weight: 600;
}

.stm-schedule-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 13px;
	color: #555;
}

.stm-schedule-location {
	white-space: nowrap;
}

.stm-schedule-location a {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
}

.stm-schedule-location a:hover {
	color: #2271b1;
}

.stm-schedule-map-link {
	white-space: nowrap;
	text-decoration: none;
	color: #2271b1;
	font-weight: 600;
}

.stm-schedule-map-link:hover {
	text-decoration: underline;
}

.stm-schedule-notes {
	margin: 10px 0 0;
	font-size: 13px;
	color: #666;
	text-align: center;
	border-top: 1px dashed #e5e5e5;
	padding-top: 8px;
}

.stm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	background: #6c757d;
}

.stm-badge-scheduled { background: #2271b1; }
.stm-badge-completed { background: #00a32a; }
.stm-badge-postponed { background: #dba617; }
.stm-badge-cancelled { background: #d63638; }
.stm-badge-rematch   { background: #8c34eb; }

/* Combined dashboard shortcode */
.stm-dashboard {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.stm-dashboard-section {
	width: 100%;
}

.stm-dashboard-heading {
	font-size: 22px;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #2271b1;
	display: inline-block;
}


@media (max-width: 600px) {
	.stm-team-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 12px;
	}

	.stm-team-card {
		padding: 14px;
	}

	.stm-team-card-logo img,
	.stm-team-card-logo-placeholder {
		width: 64px;
		height: 64px;
		line-height: 64px;
		font-size: 26px;
	}

	.stm-schedule-teams {
		flex-direction: column;
		gap: 6px;
	}

	.stm-schedule-vs {
		display: none;
	}

	.stm-standings-table {
		font-size: 13px;
	}
}
