/* OS Compatibility Section Styles - Add to game.css */

/* OS Compatibility Section */
.os-compatibility {
	text-align: center;
	margin: 50px auto;
	padding: 30px 50px;
	background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, rgba(31, 31, 31, 0.9) 100%);
	border-radius: 15px;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(145, 71, 255, 0.2);
	max-width: fit-content;
	min-width: 300px;
}

.os-compatibility h2 {
	margin-bottom: 30px;
	font-size: 32px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
	padding-bottom: 15px;
}

.os-compatibility h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	border-radius: 2px;
}

/* OS Grid Layout */
.os-grid {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Individual OS Badge */
.os-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 25px 20px;
	background: linear-gradient(135deg, var(--dark-bg-tertiary) 0%, rgba(42, 42, 42, 0.8) 100%);
	border-radius: 12px;
	transition: all var(--transition-normal);
	border: 2px solid transparent;
	cursor: default;
	position: relative;
	overflow: hidden;
}

/* Animated background on hover */
.os-badge::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(145, 71, 255, 0.15) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.os-badge:hover::before {
	opacity: 1;
}

.os-badge:hover {
	transform: translateY(-8px) scale(1.05);
	box-shadow: var(--shadow-xl), var(--glow-accent);
	border-color: var(--accent);
}

/* OS Icon */
.os-badge i {
	font-size: 48px;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition: all var(--transition-normal);
	position: relative;
	z-index: 1;
}

.os-badge:hover i {
	transform: scale(1.15) rotate(5deg);
}

/* OS Name */
.os-badge span {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: 0.5px;
	transition: color var(--transition-normal);
	position: relative;
	z-index: 1;
}

.os-badge:hover span {
	color: var(--accent-light);
}

/* Specific OS Colors (optional) */
.os-badge:has(i.fa-windows) {
	border-color: rgba(0, 120, 215, 0.3);
}

.os-badge:has(i.fa-windows):hover {
	border-color: rgb(0, 120, 215);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 120, 215, 0.3);
}

.os-badge:has(i.fa-apple) {
	border-color: rgba(160, 160, 160, 0.3);
}

.os-badge:has(i.fa-apple):hover {
	border-color: rgb(160, 160, 160);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(160, 160, 160, 0.3);
}

.os-badge:has(i.fa-linux) {
	border-color: rgba(255, 191, 0, 0.3);
}

.os-badge:has(i.fa-linux):hover {
	border-color: rgb(255, 191, 0);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 191, 0, 0.3);
}

.os-badge:has(i.fa-android) {
	border-color: rgba(61, 220, 132, 0.3);
}

.os-badge:has(i.fa-android):hover {
	border-color: rgb(61, 220, 132);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(61, 220, 132, 0.3);
}

.os-badge:has(i.fa-globe) {
	border-color: rgba(145, 71, 255, 0.3);
}

.os-badge:has(i.fa-globe):hover {
	border-color: var(--accent);
}

/* Light mode adjustments */
[data-theme="light"] .os-compatibility {
	background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, #f8f8f8 100%);
	border: 1px solid #e0e0e0;
}

[data-theme="light"] .os-badge {
	background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
	border: 2px solid #e0e0e0;
}

[data-theme="light"] .os-badge:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(125, 42, 232, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
	.os-compatibility {
		padding: 30px 20px;
		margin-top: 40px;
		margin-bottom: 40px;
		margin-left: auto;
		margin-right: auto;
	}

	.os-compatibility h2 {
		font-size: 26px;
	}

	.os-grid {
		gap: 15px;
	}

	.os-badge {
		min-width: 100px;
		padding: 20px 15px;
	}

	.os-badge i {
		font-size: 40px;
		margin-bottom: 10px;
	}

	.os-badge span {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.os-compatibility {
		padding: 25px 15px;
		margin-top: 40px;
		margin-bottom: 40px;
		margin-left: auto;
		margin-right: auto;
		min-width: auto;
	}

	.os-grid {
		gap: 12px;
	}

	.os-badge {
		min-width: 80px;
		padding: 18px 12px;
	}

	.os-badge i {
		font-size: 36px;
	}

	.os-badge span {
		font-size: 13px;
	}
}

/* Animation for badges appearing */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.os-badge {
	animation: fadeInUp 0.6s ease;
	animation-fill-mode: both;
}

.os-badge:nth-child(1) { animation-delay: 0.1s; }
.os-badge:nth-child(2) { animation-delay: 0.2s; }
.os-badge:nth-child(3) { animation-delay: 0.3s; }
.os-badge:nth-child(4) { animation-delay: 0.4s; }
.os-badge:nth-child(5) { animation-delay: 0.5s; }
.os-badge:nth-child(6) { animation-delay: 0.6s; }
