/* ==========================================================================
   Casino game grid — ported from betjordan-casino.com/casino-games/
   Used inside .inner-section on category pages.
   ========================================================================== */

.cat-game-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-bottom: 36px;
}

.cat-game-card {
	display: block;
}

.cat-game-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cat-game-card-link:hover .cat-game-card-img {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cat-game-card-img {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: #1e1c25;
	transition: box-shadow .25s;
}

.cat-game-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
}

.cat-game-card-link:hover .cat-game-card-img img {
	transform: scale(1.05);
}

/* Badge — top right corner */
.cat-game-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #e8004d;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 3px 8px;
	border-radius: 20px;
	text-transform: uppercase;
	z-index: 2;
}

/* Play overlay — centred green pill */
.cat-game-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .22s;
	z-index: 3;
}

.cat-game-card-link:hover .cat-game-overlay {
	opacity: 1;
}

.cat-game-play {
	display: inline-block;
	background: #cef134;
	color: #000;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	padding: 10px 32px;
	border-radius: 50px;
	white-space: nowrap;
}

/* Info below card */
.cat-game-info {
	padding: 8px 2px 4px;
}

.cat-game-provider {
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.cat-game-name {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.3;
	margin-top: 2px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
	.cat-game-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

@media (max-width: 560px) {
	.cat-game-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}
