/**
 * Sports AutoPost Hub - Frontend Live Scores & Widget Styling
 * Mobile-First, Ultra 3D Realistic Dark Mode & Glassmorphism Sports Design
 */

.sports-widget-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Kanit", "Prompt", sans-serif;
	margin: 28px 0;
	background: radial-gradient(circle at 20% 20%, #1e293b 0%, #0f172a 70%, #080d1a 100%);
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 2px solid rgba(0, 0, 0, 0.6);
	box-shadow: 
		0 20px 40px -10px rgba(0, 0, 0, 0.5),
		0 0 40px -10px rgba(14, 165, 233, 0.25),
		inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
		inset 0 -2px 4px rgba(0, 0, 0, 0.5);
	color: #f8fafc;
	overflow: hidden;
}

.sports-widget-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sports-widget-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	color: #38bdf8;
	display: flex;
	align-items: center;
	gap: 10px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sports-widget-date {
	font-size: 13.5px;
	color: #94a3b8;
	font-weight: 600;
}

.sports-matches-list {
	display: flex;
	flex-direction: column;
}

.sports-match-card {
	display: grid;
	grid-template-columns: 85px 1fr 110px 70px;
	align-items: center;
	padding: 16px 24px;
	transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
}

.sports-match-card:last-child {
	border-bottom: none;
}

.sports-match-card:hover {
	background: rgba(255, 255, 255, 0.05);
}

.sports-col-time {
	font-size: 13.5px;
	color: #94a3b8;
	font-weight: 700;
}

.sports-col-teams {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sports-team-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15.5px;
	font-weight: 700;
	color: #f1f5f9;
}

.sports-team-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sports-col-score {
	display: flex;
	justify-content: center;
	align-items: center;
}

.sports-score-badge {
	background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
	color: #fff;
	padding: 5px 14px;
	border-radius: 8px;
	font-weight: 900;
	font-size: 16px;
	letter-spacing: 1.5px;
	box-shadow: 
		0 3px 0 #075985,
		0 6px 14px rgba(2, 132, 199, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.sports-col-status {
	text-align: right;
}

.sports-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.status-in-play {
	background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
	animation: sportsPulse 1.8s infinite ease-in-out;
	box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.status-finished {
	background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-timed {
	background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes sportsPulse {
	0% { opacity: 1; transform: scale(1); filter: brightness(1.1); }
	50% { opacity: 0.8; transform: scale(1.05); filter: brightness(0.9); }
	100% { opacity: 1; transform: scale(1); filter: brightness(1.1); }
}

.sports-widget-ad {
	padding: 14px 20px;
	background: linear-gradient(180deg, #090e1c 0%, #050811 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}

/* 3D Styles for Injected Sports Portal Box and Member Registration CTA */
.sports-portal-showcase-box,
.sports-register-cta-box {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.sports-portal-showcase-box:hover,
.sports-register-cta-box:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4) !important;
}

.sports-register-cta-btn:hover {
	filter: brightness(1.1) !important;
}

.sports-register-cta-btn:active {
	filter: brightness(0.95) !important;
}

@media (max-width: 640px) {
	.sports-match-card {
		grid-template-columns: 70px 1fr 85px;
		gap: 10px;
		padding: 14px 16px;
	}
	.sports-col-status {
		display: none;
	}
	.sports-team-row {
		font-size: 14.5px;
	}
	.sports-score-badge {
		font-size: 14.5px;
		padding: 4px 10px;
	}
}
