/* ── TVFL Image Box Widget ─────────────────────────────────────────────────── */

.tvfl-image-box-wrap {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	column-gap: 24px;
	row-gap: 24px;
}

.tvfl-image-box {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

/* ── Image ─────────────────────────────────────────────────────────────────── */

.tvfl-image-box__image {
	width: 100%;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 8px 8px 0 0;
	box-sizing: border-box;
}

.tvfl-image-box__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 8px 8px 0 0;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */

.tvfl-image-box__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */

.tvfl-image-box__title {
	margin: 0 0 12px;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

/* ── Button wrapper — inherits text-align for alignment control ─────────────── */

.tvfl-image-box__btn-wrap {
	margin-top: auto;
}

/* ── Button ────────────────────────────────────────────────────────────────── */

.tvfl-image-box__btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	background-color: var(--e-global-color-primary);
	color: #ffffff;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.5px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.tvfl-image-box__btn:hover {
	text-decoration: none;
}

/* ── Offseason (disabled) state ────────────────────────────────────────────── */

.tvfl-image-box--offseason {
	border-color: rgba(150, 150, 150, 0.35);
	opacity: 0.65;
}

.tvfl-image-box--offseason .tvfl-image-box__btn {
	background-color: rgba(100, 100, 100, 0.25);
	color: rgba(200, 200, 200, 0.6);
	cursor: default;
	pointer-events: none;
	letter-spacing: 1.5px;
	font-size: 0.6875rem;
	text-transform: uppercase;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.tvfl-image-box-wrap {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 16px;
		row-gap: 16px;
	}
}

@media (max-width: 767px) {
	.tvfl-image-box-wrap {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 12px;
		row-gap: 12px;
	}
}
