/* SInior Games Frontend Styles */

/* Grid Container */
.sinior-games-grid {
	display: grid;
	gap: 20px;
	margin: 20px 0;
}

/* Game Card */
.sinior-game-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sinior-game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sinior-game-card-content {
	padding: 20px;
	text-align: center;
}

.sinior-game-name {
	margin: 0 0 15px 0;
	font-size: 1.25rem;
	color: #333;
}

.sinior-game-link {
	display: block;
	width: 100%;
	padding: 12px 24px;
	text-align: center;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	box-sizing: border-box;
}

.sinior-game-link:hover {
	background: #135e96;
	color: #fff;
	transform: scale(1.02);
}

.sinior-game-link:active {
	transform: scale(0.98);
}

/* Single Game Card */
.sinior-game-single {
	max-width: 400px;
	margin: 20px auto;
}

/* Messages */
.sinior-games-no-games,
.sinior-games-error {
	padding: 20px;
	text-align: center;
	color: #666;
}

.sinior-games-error {
	color: #d63638;
	background: #fcf0f1;
	border-radius: 6px;
}

/* Modal Styles */
.sinior-game-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

.sinior-game-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sinior-game-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.sinior-game-modal-content {
	position: relative;
	width: 90%;
	height: 90%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.sinior-game-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f0f0f1;
	border-bottom: 1px solid #ddd;
}

.sinior-game-modal-title {
	margin: 0;
	font-size: 1.25rem;
	color: #333;
}

.sinior-game-modal-close {
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0 10px;
	transition: color 0.2s;
}

.sinior-game-modal-close:hover {
	color: #d63638;
}

.sinior-game-modal-body {
	flex: 1;
	overflow: hidden;
}

.sinior-game-modal-body iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.sinior-games-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.sinior-game-modal-content {
		width: 95%;
		height: 95%;
	}
}

@media screen and (max-width: 480px) {
	.sinior-games-grid {
		grid-template-columns: 1fr !important;
	}
}
