.games-listing-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 20px;
}

.games-listing-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
	padding: 15px;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.game-image-container{
	text-align: center;
	height: 300px;
}
.games-listing-card img {
	width: auto;
  	max-height: 300px;
	border-radius: 8px;
	display: inline-block;
}

.games-listing-card h3 {
	font-size: 16px;
	margin-top: 10px;
	color: #333;
}

.games-listing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Game Types Section */
.game-types {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 15px;
}

.game-type-item {
	width: 100%;
}

/* Type Buttons */
.type-button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	width: 100%;
	border: none;
	font-family: inherit;
	font-size: 14px;
	transition: all 0.3s ease;
	cursor: pointer;
}

/* Available Button Styles */
.type-button.available {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: white;
	box-shadow: 0px 2px 4px rgba(40, 167, 69, 0.3);
}

.type-button.available:hover {
	background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
	transform: translateY(-2px);
	box-shadow: 0px 4px 8px rgba(40, 167, 69, 0.4);
}

/* Unavailable Button Styles */
.type-button.unavailable {
	background: #e9ecef;
	color: #6c757d;
	cursor: not-allowed;
	opacity: 0.7;
	box-shadow: none;
}

/* Type Name */
.type-name {
	font-weight: 600;
	text-transform: capitalize;
	font-size: 14px;
}

/* Type Info Container */
.type-info {
	display: flex;
	gap: 12px;
	align-items: center;
	font-size: 13px;
}

/* Stock Display */
.type-stock {
	background: rgba(255, 255, 255, 0.2);
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.type-button.unavailable .type-stock,
.type-button.unavailable .type-status {
	background: transparent;
}

/* Price Display */
.type-price {
	font-weight: bold;
	font-size: 15px;
}

/* Status Display (for unavailable items) */
.type-status {
	font-weight: 600;
	font-style: italic;
}

/* Color coding by type (optional - for visual distinction) */
.game-type-item.offline .type-button.available {
	background: linear-gradient(135deg, #f64e60 0%, #ff6b6b 100%);
	box-shadow: 0px 2px 4px rgba(246, 78, 96, 0.3);
}

.game-type-item.offline .type-button.available:hover {
	background: linear-gradient(135deg, #d63447 0%, #e85555 100%);
	box-shadow: 0px 4px 8px rgba(246, 78, 96, 0.4);
}

.game-type-item.primary .type-button.available {
	background: linear-gradient(135deg, #1bc5bd 0%, #17a2b8 100%);
	box-shadow: 0px 2px 4px rgba(27, 197, 189, 0.3);
}

.game-type-item.primary .type-button.available:hover {
	background: linear-gradient(135deg, #159e96 0%, #138496 100%);
	box-shadow: 0px 4px 8px rgba(27, 197, 189, 0.4);
}

.game-type-item.secondary .type-button.available {
	background: linear-gradient(135deg, #ffa800 0%, #ffb84d 100%);
	box-shadow: 0px 2px 4px rgba(255, 168, 0, 0.3);
}

.game-type-item.secondary .type-button.available:hover {
	background: linear-gradient(135deg, #cc8600 0%, #e69500 100%);
	box-shadow: 0px 4px 8px rgba(255, 168, 0, 0.4);
}

/* Responsive Grid */
@media (max-width: 1024px) {
	.games-listing-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.games-listing-container {
		grid-template-columns: repeat(1, 1fr);
	}
	
	.type-info {
		gap: 8px;
		font-size: 12px;
	}
	
	.type-button {
		padding: 8px 10px;
	}
}

/* Pagination */
.games-listing-pagination {
	margin-top: 20px;
	text-align: center;
}

.games-listing-pagination a {
	padding: 8px 12px;
	margin: 5px;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #333;
	transition: background 0.3s;
}

.games-listing-pagination a.active {
	background: #007bff;
	color: #fff;
}

.games-listing-pagination a:hover {
	background: #007bff;
	color: white;
}