/* SGWF Galactic Theme */
:root {
	--bg-color: #050508;
	--container-bg: rgba(20, 20, 30, 0.9);
	--text-color: #E0E0FF;
	--header-bg: #000000;
	--accent-primary: #BC13FE;
	--accent-secondary: #00D2FF;
	--border-color: #2A2A40;
	--sidebar-bg: #0A0A12;
}

[data-theme="light"] {
	--bg-color: #E8E8F0;
	--container-bg: #FFFFFF;
	--text-color: #101020;
	
	--header-bg: #7A00B0;
	--accent-primary: #7A00B0;
	--accent-secondary: #004080;
	--border-color: #C0C0D0;
	--sidebar-bg: #D8D8E8;
}

html, body {
	height: 100vh;
	margin: 0;
	overflow: hidden; /* Prevents whole-page scrolling */
}

body {
	background-color: var(--bg-color);
	background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
	background-size: 40px 40px;
	font-family: 'Segoe UI', sans-serif;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	transition: background-color 0.5s ease, color 0.5s ease;
}

header {
	background-color: var(--header-bg);
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 2px solid var(--accent-primary);
	box-shadow: 0 0 15px var(--accent-primary);
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: 90px;
	flex-shrink: 0;
	box-sizing: border-box;
}

header h1 {
	margin: 0;
	font-size: 1.4rem;
	letter-spacing: 2px;
	color: #FFF;
	text-transform: uppercase;
	text-shadow: 0 0 8px var(--accent-primary);
	text-align: center;
}

.mobile-title { display: none; }
.full-title { display: inline; }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 25px;
	height: 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	position: absolute;
	left: 20px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: var(--accent-secondary);
	border-radius: 10px;
	transition: all 0.3s linear;
}

.container {
	display: flex;
	flex-direction: row;
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 15px;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	flex: 1;
	overflow: hidden; /* Contains sidebar and main scroll */
}

.sidebar {
	flex: 0 0 180px;
	background-color: var(--sidebar-bg);
	padding: 12px;
	border: 1px solid var(--accent-secondary);
	border-radius: 0 12px 0 12px;
	height: fit-content;
	position: sticky;
	top: 0;
}

.sidebar h2 {
	font-size: 0.75rem;
	color: var(--accent-secondary);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar a {
	text-decoration: none;
	color: var(--text-color);
	display: block;
	padding: 8px;
	font-size: 0.85rem;
	cursor: pointer;
	border-left: 3px solid transparent;
}

.sidebar a:hover {
	color: var(--accent-primary);
	border-left: 3px solid var(--accent-primary);
	transition: 0.2s ease;
}

.return-link {
	font-size: 0.55rem;
	color: var(--accent-secondary);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
}

.main-content {
	flex: 1;
	background-color: var(--container-bg);
	padding: 25px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	backdrop-filter: blur(5px);
	overflow-y: auto; /* Allows content to scroll independently */
	max-height: 100%;
}

.roster-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.card-link {
	text-decoration: none;
	color: inherit;
	display: block; 
	width: 100%;
}

.wrestler-card {
	background: rgba(10, 10, 18, 0.8);
	border: 1px solid var(--border-color);
	border-radius: 0 12px 0 12px;
	overflow: hidden;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
}

[data-theme="light"] .wrestler-card {
	background: rgba(255, 255, 255, 0.9);
}

.wrestler-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-secondary);
	box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.wrestler-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wrestler-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.wrestler-card:hover .wrestler-image img {
	transform: scale(1.05);
	filter: brightness(1.1);
}

.wrestler-info {
	padding: 8px 5px;
	text-align: center;
	background: rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease;
}

[data-theme="light"] .wrestler-info {
	background: rgba(0, 0, 0, 0.05);
}

.wrestler-card:hover .wrestler-info {
	background: rgba(188, 19, 254, 0.1);
}

.wrestler-info h3 {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.2;
	color: var(--text-color);
	text-transform: uppercase;
	font-weight: 600;
}

.wrestler-info p {
	color: var(--text-color);
	line-height: 1.4;
	padding: 5px 0;
	margin: 0;
}

.theme-btn {
	background: none;
	border: 1px solid var(--border-color);
	color: var(--text-color);
	padding: 6px;
	font-size: 0.65rem;
	width: 100%;
	margin-top: 15px;
	cursor: pointer;
	text-transform: uppercase;
}

footer {
	flex-shrink: 0;
	text-align: center;
	padding: 10px;
	font-size: 0.75rem;
	color: #555;
	background: var(--bg-color);
	position: sticky;
	bottom: 0;
	z-index: 1000;
	border-top: 1px solid var(--border-color);
}

.fade-in {
	animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.archive-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	border-bottom: 2px solid var(--accent-primary);
	padding-bottom: 10px;
}

.show-item {
	background: rgba(10, 10, 18, 0.5);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.show-info h3 { margin: 5px 0; color: var(--accent-secondary); text-transform: uppercase; font-size: 1.1rem; }
.show-date { font-family: monospace; font-size: 0.85rem; opacity: 0.7; color: var(--text-color); }

.match-result-card {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border-color);
	border-left: 5px solid var(--accent-primary);
	padding: 20px;
	margin-bottom: 20px;
	border-radius: 0 4px 4px 0;
}

.winner-line { font-size: 1.2rem; margin: 15px 0; }
.winner-name { color: #00ff00; font-weight: bold; text-transform: uppercase; }
.loser-name { opacity: 0.8; color: var(--text-color); }
.vs-label { margin: 0 10px; opacity: 0.5; font-style: italic; }

.btn {
	padding: 8px 16px;
	border: 1px solid var(--accent-secondary);
	background: transparent;
	color: var(--text-color);
	cursor: pointer;
	text-decoration: none;
	font-size: 0.75rem;
	border-radius: 3px;
	transition: 0.2s;
	display: inline-block;
	text-transform: uppercase;
	font-weight: bold;
}

.btn:hover { background: var(--accent-secondary); color: #000; }
.btn-yt { background: #c4302b; border-color: #c4302b; color: white; }
.btn-yt:hover { background: #ff0000; border-color: #ff0000; }

@media (max-width: 768px) {
	html, body { overflow: auto; height: auto; } /* Revert for mobile usability */
	.menu-toggle {
		display: flex;
	}
	.full-title { display: none; }
	.mobile-title { display: inline; font-size: 1.6rem; }

	header h1 {
		padding: 0 35px;
	}

	.container {
		margin: 10px auto;
		padding: 0 10px;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	.sidebar {
		position: fixed;
		left: 0;
		top: 60px;
		bottom: 0;
		width: 220px;
		z-index: 999;
		transform: translateX(-110%);
		border-radius: 0 12px 0 0;
		background-color: var(--sidebar-bg);
		box-shadow: 5px 0 15px rgba(0,0,0,0.5);
	}

	.sidebar.active {
		transform: translateX(0);
	}

	.main-content {
		overflow: visible;
		max-height: none;
	}

	.roster-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}