/*
 * This file is part of Moodle - http://moodle.org/
 *
 * Moodle is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Moodle is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Game Menu block styles
 *
 * @package    block_gamemenu
 * @copyright  2025 Stefan Scholz <sts@bdecent.de>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 * @author     Stefan Scholz <sts@bdecent.de>
 */

.game-menu-container {
	background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
	color: #fff;
	padding: 60px 20px;
	text-align: center;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 15px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

.game-menu-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
	pointer-events: none;
}

.game-title {
	font-family: "Arial Black", Arial, sans-serif;
	font-size: 48px;
	font-weight: 900;
	margin-bottom: 40px;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
	letter-spacing: 3px;
	position: relative;
	z-index: 1;
	animation: pulse 3s infinite;
}

.game-menu-items {
	position: relative;
	z-index: 1;
}

.game-menu-item {
	display: block;
	font-family: "Arial", sans-serif;
	font-size: 24px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	padding: 15px 30px;
	margin: 10px auto;
	max-width: 300px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.game-menu-item i {
	margin-right: 8px;
	font-size: 1.2em;
	vertical-align: middle;
}

.game-menu-item .icon {
	margin-right: 8px;
	vertical-align: middle;
	filter: brightness(0) invert(1);
}

.game-menu-item .iconsmall {
	width: 24px;
	height: 24px;
}

.game-menu-item:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	color: #fff;
	text-decoration: none;
}

.game-menu-item:active {
	transform: translateY(0);
}

.game-menu-empty {
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
	margin-top: 20px;
}

.game-menu-empty p {
	margin: 10px 0;
}

.game-menu-empty small {
	font-size: 14px;
	opacity: 0.8;
}

@keyframes pulse {
	0%, 100% { 
		opacity: 1; 
	}
	50% { 
		opacity: 0.7; 
	}
}

/* Transparent variant */
.game-menu-container.game-menu-transparent {
	background: transparent !important;
	box-shadow: none !important;
}

.game-menu-container.game-menu-transparent::before {
	display: none !important;
}

/* Remove rounded corners variant */
.game-menu-container.game-menu-no-rounded-corners {
	border-radius: 0 !important;
}

/* Full width variant - removes all spacing around the block */
.block.game-menu-full-width {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

.block.game-menu-full-width .card {
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
}

.block.game-menu-full-width .card-body {
	padding: 0 !important;
}

.block.game-menu-full-width .card-text {
	margin: 0 !important;
	padding: 0 !important;
}

body:not(.editing) .block.game-menu-full-width .block-controls {
	display: none !important;
}

/* Target the content wrapper that has mt-3 class */
.block.game-menu-full-width .content {
	margin: 0 !important;
	padding: 0 !important;
}

/* Additional specific targeting for Bootstrap margin classes */
.block.game-menu-full-width .mt-1,
.block.game-menu-full-width .mt-2,
.block.game-menu-full-width .mt-3,
.block.game-menu-full-width .mt-4,
.block.game-menu-full-width .mt-5,
.block.game-menu-full-width .my-1,
.block.game-menu-full-width .my-2,
.block.game-menu-full-width .my-3,
.block.game-menu-full-width .my-4,
.block.game-menu-full-width .my-5 {
	margin-top: 0 !important;
}

.game-menu-container.game-menu-full-width {
	margin: 0 !important;
	border-radius: 0 !important;
}
