/* Tetris module styles */

.tetris-tabs {
	margin-bottom: 20px !important;
}

.tetris-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.tetris-main-panel {
	display: flex;
	gap: 15px;
	background: #181c24;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.3);
	border: 1px solid #2a313e;
}

.tetris-board-container {
	position: relative;
	width: 300px;
	height: 600px;
	background: #0d1117;
	border-radius: 6px;
	box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
	border: 2px solid #30363d;
	overflow: hidden;
}

#tetris-canvas {
	display: block;
	background: transparent;
}

.tetris-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(13, 17, 23, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	backdrop-filter: blur(4px);
	transition: opacity 0.3s ease;
}

.overlay-card {
	text-align: center;
	padding: 25px 20px;
	color: #fff;
	max-width: 250px;
}

.overlay-card h2 {
	color: #58a6ff;
	margin: 0 0 10px 0;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

.overlay-card p {
	font-size: 13px;
	color: #8b949e;
	margin-bottom: 20px;
	line-height: 1.4;
}

.btn-tetris-action {
	padding: 10px 24px;
	font-size: 15px;
	font-weight: bold;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.tetris-sidebar-panel {
	display: flex;
	flex-direction: column;
	width: 140px;
	gap: 12px;
}

.tetris-box {
	background: #21262d;
	border: 1px solid #30363d;
	border-radius: 6px;
	padding: 10px;
	text-align: center;
}

.tetris-box h3 {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #8b949e;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid #30363d;
	padding-bottom: 4px;
}

.canvas-box {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #0d1117;
	border-radius: 4px;
	padding: 5px;
}

.canvas-box canvas {
	display: block;
}

.tetris-stats-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
}

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-label {
	font-size: 11px;
	color: #8b949e;
	text-transform: uppercase;
}

.stat-value {
	font-size: 18px;
	font-weight: bold;
	color: #58a6ff;
	font-family: monospace, monospace;
}

.tetris-controls-btns {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.tetris-controls-btns .btn {
	width: 100%;
	font-size: 11px;
	padding: 6px 0;
}

.tetris-mini-top-panel {
	flex: 1;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tetris-mini-table {
	margin-bottom: 8px;
}

.mini-top-footer {
	text-align: right;
}

.tetris-guide-box {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 12px 15px;
}

.tetris-guide-box h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #333;
}

.tetris-guide-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tetris-guide-box li {
	font-size: 12px;
	color: #555;
	margin-bottom: 6px;
	line-height: 1.4;
}

.tetris-guide-box kbd {
	background-color: #eee;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.2);
	color: #333;
	display: inline-block;
	font-size: 11px;
	font-weight: bold;
	padding: 1px 5px;
	white-space: nowrap;
}

.tetris-guest-alert {
	margin-top: 15px;
	margin-bottom: 20px;
}

.tetris-top-table th {
	background: #272d36;
	color: #58a6ff;
}

.tetris-top-table td img {
	vertical-align: middle;
	margin-right: 4px;
}

@media (prefers-color-scheme: dark) {
	.tetris-top-table th {
		background: #272d36 !important;
		color: #58a6ff !important;
		border-bottom: 2px solid #343b44 !important;
	}
	.tetris-top-table td {
		border-top: 1px solid #2c343e !important;
		color: #c9d1d9;
	}
	.tetris-top-table.table-striped tbody tr:nth-child(odd) td {
		background-color: #1e242c !important;
	}
	.tetris-top-table.table-striped tbody tr:nth-child(even) td {
		background-color: #222831 !important;
	}
	.tetris-top-table.table-hover tbody tr:hover td {
		background-color: #2c343e !important;
	}
	.tetris-mini-table th {
		background: #21262d !important;
		color: #8b949e !important;
		border-bottom: 1px solid #30363d !important;
	}
	.tetris-mini-table td {
		border-top: 1px solid #21262d !important;
		color: #c9d1d9;
	}
	.tetris-guide-box {
		background: #1e242c !important;
		border-color: #343b44 !important;
	}
	.tetris-guide-box h4 {
		color: #58a6ff !important;
	}
	.tetris-guide-box li {
		color: #c9d1d9 !important;
	}
	.tetris-guide-box kbd {
		background-color: #2c343e !important;
		border-color: #3d4551 !important;
		color: #58a6ff !important;
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
	}
}

@media (max-width: 768px) {
	.tetris-wrapper {
		flex-direction: column;
	}
	
	.tetris-main-panel {
		flex-direction: column;
		align-items: center;
	}
	
	.tetris-sidebar-panel {
		width: 300px;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.tetris-box {
		flex: 1;
		min-width: 130px;
	}

	.tetris-controls-btns {
		width: 100%;
		flex-direction: row;
	}
}
