/**
 * SP Results Slider — Frontend Styles
 * @version 1.3.0
 */

/* ===== Wrapper ===== */
.sprs-slider-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	padding: 0 40px; /* espacio para flechas */
	user-select: none;
	-webkit-user-select: none;
}

/* ===== Viewport & Track ===== */
.sprs-slider-viewport {
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.sprs-slider-track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.sprs-slider-track.sprs-dragging {
	transition: none;
}

/* ===== Slide ===== */
.sprs-slide {
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0 6px;
}

/* ===== Card ===== */
.sprs-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	min-height: 0;
	box-sizing: border-box;
}

.sprs-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

/* ===== Header: Liga · Jornada ===== */
.sprs-card-header {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	max-width: 100%;
}

/* ===== Team names row ===== */
.sprs-card-teams {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	gap: 0;
}

.sprs-team-name {
	flex: 1 1 0%;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.sprs-team-name a {
	color: inherit;
	text-decoration: none;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sprs-team-name a:hover {
	color: #2271b1;
}

.sprs-team-name.sprs-local {
	text-align: right;
	padding-right: 6px;
}

.sprs-team-name.sprs-visitor {
	text-align: left;
	padding-left: 6px;
}

/* Equipo destacado (el club seleccionado) */
.sprs-team-name.sprs-highlighted {
	color: #111;
	font-weight: 800;
}

.sprs-vs {
	flex: 0 0 20px;
	text-align: center;
	font-size: 10px;
	color: #aaa;
	font-weight: 400;
}

/* ===== Result row: Logo – Score – Logo ===== */
.sprs-card-result {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 0;
	min-height: 44px;
}

.sprs-logo {
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.sprs-logo a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

.sprs-logo img {
	max-width: 36px;
	max-height: 36px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

/* Reset SportsPress logo float/margins */
.sprs-logo .team-logo,
.sprs-logo .logo-odd,
.sprs-logo .logo-even {
	float: none !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
}

.sprs-score {
	flex: 1 1 auto;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.sprs-score a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.sprs-score a:hover {
	opacity: 0.8;
}

.sprs-score-number {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	line-height: 1;
	min-width: 24px;
	text-align: center;
}

.sprs-score-sep {
	font-size: 18px;
	font-weight: 400;
	color: #bbb;
	line-height: 1;
}

/* ===== Scheduled match badge ===== */
.sprs-score.sprs-is-scheduled {
	min-width: 60px;
}

.sprs-time-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	padding: 4px 10px;
	border-radius: 6px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sprs-score a:hover .sprs-time-badge {
	background: #e2e8f0;
	border-color: #94a3b8;
	color: #0284c7;
}

.sprs-time-badge.is-tbd {
	color: #94a3b8;
	background: #f8fafc;
	border-style: dashed;
}

/* ===== Date ===== */
.sprs-card-date {
	text-align: center;
	font-size: 11px;
	color: #666;
	line-height: 1.3;
}

.sprs-card-date a {
	color: inherit;
	text-decoration: none;
}

.sprs-card-date a:hover {
	color: #2271b1;
}

/* ===== Venue ===== */
.sprs-card-venue {
	text-align: center;
	font-size: 10px;
	color: #999;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ===== Navigation arrows ===== */
.sprs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	color: #555;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
	outline: none;
}

.sprs-nav:hover {
	background: #f7f7f7;
	color: #111;
	border-color: #bbb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sprs-nav:active {
	transform: translateY(-50%) scale(0.95);
}

.sprs-prev {
	left: 2px;
}

.sprs-next {
	right: 2px;
}

.sprs-nav svg {
	width: 16px;
	height: 16px;
}

/* ===== Dots ===== */
.sprs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 0;
}

.sprs-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
	outline: none;
}

.sprs-dot:hover {
	background: #bbb;
}

.sprs-dot.sprs-dot-active {
	background: #2271b1;
	transform: scale(1.2);
}

/* ===== Empty state ===== */
.sprs-empty {
	text-align: center;
	padding: 20px;
	color: #888;
	font-size: 14px;
	font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
	.sprs-slider-wrapper {
		padding: 0 30px;
	}

	.sprs-nav {
		width: 28px;
		height: 28px;
	}

	.sprs-nav svg {
		width: 14px;
		height: 14px;
	}

	.sprs-card {
		padding: 12px 10px;
	}

	.sprs-score-number {
		font-size: 20px;
	}

	.sprs-time-badge {
		font-size: 13px;
		padding: 3px 8px;
	}
}

@media (max-width: 480px) {
	.sprs-slider-wrapper {
		padding: 0 26px;
	}
}
