/**
 * Current Games Shortcode Styles
 * Uses shared design-tokens, theme-reset, and game-card CSS
 *
 * @package BasketApiPro
 */

/* Container setup - using class selector */
.bapro-current-games {
	--c-grey: var(--bapro-grey);
	--c-black: var(--bapro-black);
	--c-orange: var(--bapro-orange);
	--c-blue: var(--bapro-blue);
	--c-text: var(--bapro-text);
	--c-border: var(--bapro-border);
	--radius: var(--bapro-radius);
	--shadow: var(--bapro-shadow);
	container-type: inline-size;
	container-name: current-games;
	/* margin: 2rem 10px; */
	padding: 2rem 10px;
    background-color: var(--c-grey);
}

.bapro-current-games h3 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: var(--bapro-text, #1a2a34);
}

.bapro-current-games-header {
	text-align: center;
	margin-bottom: 1rem;
}

.bapro-current-games-logo {
	max-width: 250px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.bapro-current-games-list {
	margin: 0;
	padding: 0;
	display: block;
}

/* Game Card - Current Games Specific Overrides */
.bapro-current-games .bapro-game {
	font-family: inherit;
	margin-right: 10px;
	width: 250px;
	height: 120px;
	gap: 0;
}

.bapro-current-games .bapro-game__row--meta {
	justify-content: center;
}

/* Teams - Current Games Specific */
.bapro-current-games .bapro-team__name--full {
	display: none;
}

.bapro-current-games .bapro-team__name--code {
	display: block;
}

/* Responsive */
@media (max-width: 700px) {
	.bapro-current-games .bapro-game__row--teams {
		flex-wrap: wrap;
	}
}

@container current-games (width <= 700px) {
	.bapro-current-games .bapro-game__row--teams {
		flex-wrap: wrap;
	}
}

/* Flickity carousel support */
.flickity-enabled .bapro-current-games-list {
	display: block;
}

.flickity-button {
	background: rgba(15, 23, 42, 0.75);
	color: #fff;
}

.flickity-button:hover {
	background: rgba(15, 23, 42, 1);
}

/* Position dots up a bit */
.bapro-current-games .flickity-page-dots {
	bottom: -22px;
}

/* Dots are lines */
.bapro-current-games .flickity-page-dots .dot {
	height: 4px;
	width: 35px;
	margin: 0;
	border-radius: 0;
	background: var(--bapro-blue);
	opacity: 1;
}

.bapro-current-games .flickity-page-dots .dot.is-selected {
	background: var(--bapro-orange);
	opacity: 1;
}

/* View all games link */
.bapro-current-games .bapro-current-games__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 3rem;
	color: var(--bapro-orange) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	transition: color 0.2s ease;
	width: 100%;
	justify-content: center;
}

.bapro-current-games .bapro-current-games__view-all:hover {
	color: var(--bapro-blue) !important;
	text-decoration: none !important;
}

.bapro-current-games .bapro-current-games__arrow {
	display: inline-block;
	font-size: 1.2em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.bapro-current-games .bapro-current-games__view-all:hover .bapro-current-games__arrow {
	transform: translateX(4px);
}
