/* ==========================================================================
   DS Sport Game Cards — Front-end Carousel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Carousel wrapper
   -------------------------------------------------------------------------- */
.dsgc-carousel-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0 16px;
}

/* --------------------------------------------------------------------------
   Scrollable track
   -------------------------------------------------------------------------- */
.dsgc-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	flex: 1 1 auto;
	padding: 8px 2px 12px;
	/* hide scrollbar */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.dsgc-carousel::-webkit-scrollbar {
	display: none;
}

/* --------------------------------------------------------------------------
   Navigation buttons
   -------------------------------------------------------------------------- */
.dsgc-nav-btn {
	flex: 0 0 auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	line-height: 1;
	cursor: pointer;
	font-size: 22px;
	font-weight: 300;
	color: #374151;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
	transition: background 0.15s, box-shadow 0.15s;
	padding: 0;
}

.dsgc-nav-btn:hover:not(:disabled) {
	background: #f9fafb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dsgc-nav-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

/* --------------------------------------------------------------------------
   Individual card
   -------------------------------------------------------------------------- */
.dsgc-card {
	flex: 0 0 200px;
	width: 200px;
	box-sizing: border-box;
	min-height: 230px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 12px 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	text-decoration: none;
	color: inherit;
}

.dsgc-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Card header — date
   -------------------------------------------------------------------------- */
.dsgc-card-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

.dsgc-card-date {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

/* --------------------------------------------------------------------------
   League name + time
   -------------------------------------------------------------------------- */
.dsgc-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px;
	min-height: 16px;
}

.dsgc-card-league {
	font-size: 10px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100px;
	line-height: 1.4;
}

.dsgc-card-time {
	font-size: 11px;
	font-weight: 700;
	color: #111827;
	white-space: nowrap;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Team rows
   -------------------------------------------------------------------------- */
.dsgc-card-teams {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

.dsgc-card-team {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

/* Team logo circle */
.dsgc-card-logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.dsgc-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Fallback initials when no logo */
.dsgc-card-logo-fallback {
	font-size: 11px;
	font-weight: 700;
	color: #9ca3af;
	text-align: center;
	line-height: 1;
	letter-spacing: 0.03em;
}

/* Team abbreviation label */
.dsgc-card-team-label {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	letter-spacing: 0.01em;
	line-height: 1.2;
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

/* Final score pill */
.dsgc-card-score {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 3px 9px;
	margin-left: auto;
	background: #111827;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	border-radius: 6px;
	text-align: center;
	line-height: 1.4;
}

.dsgc-card.has-score .dsgc-card-team-label {
	-webkit-line-clamp: 1;
}

/* --------------------------------------------------------------------------
   Card footer — broadcast / location
   -------------------------------------------------------------------------- */
.dsgc-card-footer {
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: auto;
	min-height: 36px;
}

.dsgc-card-broadcast {
	font-size: 11px;
	color: #374151;
	font-weight: 500;
}

.dsgc-card-location {
	font-size: 10px;
	color: #9ca3af;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.dsgc-no-games {
	color: #6b7280;
	font-style: italic;
	margin: 12px 0;
}
