/* FunWithGames.net - Modern Finnish Gaming Platform Styles */

/* CSS Variables for consistent theming */
:root {
	--funwithgames-primary: #2e8b57; /* Sea Green - Finnish nature inspired */
	--funwithgames-secondary: #ff6b35; /* Vibrant Orange - Finnish flag inspired */
	--funwithgames-accent: #4a90e2; /* Sky Blue */
	--funwithgames-dark: #1a1a1a;
	--funwithgames-light: #f8f9fa;
	--funwithgames-white: #ffffff;
	--funwithgames-gray: #6c757d;
	--funwithgames-success: #28a745;
	--funwithgames-danger: #dc3545;
	--funwithgames-warning: #ffc107;
	--funwithgames-info: #17a2b8;

	/* Typography */
	--funwithgames-font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	--funwithgames-font-heading: "Arial", sans-serif;

	/* Spacing */
	--funwithgames-spacing-xs: 0.25rem;
	--funwithgames-spacing-sm: 0.5rem;
	--funwithgames-spacing-md: 1rem;
	--funwithgames-spacing-lg: 1.5rem;
	--funwithgames-spacing-xl: 2rem;
	--funwithgames-spacing-xxl: 3rem;

	/* Border radius */
	--funwithgames-radius-sm: 4px;
	--funwithgames-radius-md: 8px;
	--funwithgames-radius-lg: 12px;
	--funwithgames-radius-xl: 16px;

	/* Shadows */
	--funwithgames-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
	--funwithgames-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
	--funwithgames-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
	--funwithgames-shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--funwithgames-font-primary);
	line-height: 1.6;
	color: var(--funwithgames-dark);
	background-color: var(--funwithgames-light);
	overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--funwithgames-font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--funwithgames-spacing-md);
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.75rem;
}
h4 {
	font-size: 1.5rem;
}
h5 {
	font-size: 1.25rem;
}
h6 {
	font-size: 1rem;
}

p {
	margin-bottom: var(--funwithgames-spacing-md);
	font-size: 1rem;
}

/* Utility Classes */
.funwithgames-text-center {
	text-align: center;
}
.funwithgames-text-left {
	text-align: left;
}
.funwithgames-text-right {
	text-align: right;
}

.funwithgames-mb-5 {
	margin-bottom: 3rem;
}
.funwithgames-mt-4 {
	margin-top: 1.5rem;
}
.funwithgames-mt-5 {
	margin-top: 3rem;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--funwithgames-spacing-md);
}

/* Navigation */
.funwithgames-navbar {
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary) 0%,
		var(--funwithgames-accent) 100%
	);
	box-shadow: var(--funwithgames-shadow-md);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: var(--funwithgames-spacing-md) 0;
}

.funwithgames-navbar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.funwithgames-navbar-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--funwithgames-white);
	font-size: 1.5rem;
	font-weight: 700;
	transition: transform 0.3s ease;
}

.funwithgames-navbar-brand:hover {
	transform: scale(1.05);
	color: var(--funwithgames-white);
	text-decoration: none;
}

.funwithgames-navbar-logo {
	height: 40px;
	width: auto;
	margin-right: var(--funwithgames-spacing-sm);
	border-radius: var(--funwithgames-radius-sm);
}

.funwithgames-navbar-menu {
	display: flex;
	list-style: none;
	align-items: center;
	gap: var(--funwithgames-spacing-lg);
	margin: 0;
	padding: 0;
}

.funwithgames-navbar-link {
	color: var(--funwithgames-white);
	text-decoration: none;
	font-weight: 500;
	padding: var(--funwithgames-spacing-sm) var(--funwithgames-spacing-md);
	border-radius: var(--funwithgames-radius-md);
	transition: all 0.3s ease;
	position: relative;
}

.funwithgames-navbar-link:hover,
.funwithgames-navbar-link.active {
	background-color: rgba(255, 255, 255, 0.2);
	color: var(--funwithgames-white);
	text-decoration: none;
	transform: translateY(-2px);
}

.funwithgames-navbar-cta {
	background: var(--funwithgames-secondary);
	color: var(--funwithgames-white);
	text-decoration: none;
	font-weight: 600;
	padding: var(--funwithgames-spacing-sm) var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-lg);
	transition: all 0.3s ease;
	box-shadow: var(--funwithgames-shadow-sm);
}

.funwithgames-navbar-cta:hover {
	background: #e55a2b;
	color: var(--funwithgames-white);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--funwithgames-shadow-md);
}

/* Mobile Navigation Toggle */
.funwithgames-navbar-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--funwithgames-spacing-sm);
}

.funwithgames-navbar-toggle-bar {
	width: 25px;
	height: 3px;
	background-color: var(--funwithgames-white);
	margin: 3px 0;
	transition: 0.3s;
	border-radius: 2px;
}

.funwithgames-navbar-toggle:hover .funwithgames-navbar-toggle-bar {
	background-color: var(--funwithgames-secondary);
}

/* Mobile Menu */
@media (max-width: 768px) {
	html {
		font-size: 15px !important;
	}

	.funwithgames-navbar-toggle {
		display: flex;
	}

	.funwithgames-navbar-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: linear-gradient(
			135deg,
			var(--funwithgames-primary) 0%,
			var(--funwithgames-accent) 100%
		);
		flex-direction: column;
		padding: var(--funwithgames-spacing-lg);
		box-shadow: var(--funwithgames-shadow-lg);
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
	}

	.funwithgames-navbar-menu.active {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.funwithgames-navbar-link {
		width: 100%;
		text-align: center;
		margin: var(--funwithgames-spacing-sm) 0;
	}
}

/* Hero Section */
.funwithgames-hero {
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary) 0%,
		var(--funwithgames-accent) 50%,
		var(--funwithgames-secondary) 100%
	);
	color: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xxl) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.funwithgames-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.3;
}

.funwithgames-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.funwithgames-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: var(--funwithgames-spacing-sm) var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-xl);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: var(--funwithgames-spacing-lg);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.funwithgames-hero-title {
	font-size: 3.5rem;
	margin-bottom: var(--funwithgames-spacing-lg);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.funwithgames-hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: var(--funwithgames-spacing-xl);
	opacity: 0.95;
	line-height: 1.6;
}

.funwithgames-hero-cta {
	display: inline-block;
	background: var(--funwithgames-secondary);
	color: var(--funwithgames-white);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	padding: var(--funwithgames-spacing-md) var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-lg);
	transition: all 0.3s ease;
	box-shadow: var(--funwithgames-shadow-md);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.funwithgames-hero-cta:hover {
	background: #e55a2b;
	color: var(--funwithgames-white);
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: var(--funwithgames-shadow-lg);
}

/* Sections */
.funwithgames-section {
	padding: var(--funwithgames-spacing-xxl) 0;
}

.funwithgames-section:nth-child(even) {
	background-color: var(--funwithgames-white);
}

.funwithgames-section:nth-child(odd) {
	background-color: var(--funwithgames-light);
}

/* Features Grid */
.funwithgames-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--funwithgames-spacing-xl);
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-feature-card {
	background: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-lg);
	text-align: center;
	box-shadow: var(--funwithgames-shadow-sm);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.funwithgames-feature-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--funwithgames-shadow-lg);
}

.funwithgames-feature-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--funwithgames-spacing-lg);
	font-size: 2rem;
	color: var(--funwithgames-white);
}

.funwithgames-feature-title {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-md);
	font-size: 1.5rem;
}

.funwithgames-feature-desc {
	color: var(--funwithgames-gray);
	line-height: 1.6;
}

/* Game Categories */
.funwithgames-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: var(--funwithgames-spacing-xl);
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-category-card {
	background: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-lg);
	text-align: center;
	box-shadow: var(--funwithgames-shadow-sm);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.funwithgames-category-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--funwithgames-shadow-lg);
}

.funwithgames-category-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(
		135deg,
		var(--funwithgames-secondary),
		var(--funwithgames-accent)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--funwithgames-spacing-lg);
	font-size: 2rem;
	color: var(--funwithgames-white);
}

.funwithgames-category-games {
	display: flex;
	flex-wrap: wrap;
	gap: var(--funwithgames-spacing-sm);
	justify-content: center;
	margin-top: var(--funwithgames-spacing-lg);
}

.funwithgames-game-tag {
	background: var(--funwithgames-light);
	color: var(--funwithgames-dark);
	padding: var(--funwithgames-spacing-xs) var(--funwithgames-spacing-md);
	border-radius: var(--funwithgames-radius-xl);
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Games Grid */
.funwithgames-games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--funwithgames-spacing-xl);
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-game-card {
	background: var(--funwithgames-white);
	border-radius: var(--funwithgames-radius-lg);
	overflow: hidden;
	box-shadow: var(--funwithgames-shadow-sm);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
}

.funwithgames-game-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--funwithgames-shadow-lg);
}

.funwithgames-game-card.funwithgames-featured {
	border: 2px solid var(--funwithgames-secondary);
	box-shadow: var(--funwithgames-shadow-md);
}

.funwithgames-game-badge {
	position: absolute;
	top: var(--funwithgames-spacing-md);
	right: var(--funwithgames-spacing-md);
	background: var(--funwithgames-secondary);
	color: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xs) var(--funwithgames-spacing-md);
	border-radius: var(--funwithgames-radius-xl);
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
}

.funwithgames-game-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}

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

.funwithgames-game-card:hover .funwithgames-game-image img {
	transform: scale(1.05);
}

.funwithgames-game-content {
	padding: var(--funwithgames-spacing-lg);
}

.funwithgames-game-title {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-sm);
	font-size: 1.25rem;
}

.funwithgames-game-desc {
	color: var(--funwithgames-gray);
	margin-bottom: var(--funwithgames-spacing-lg);
	line-height: 1.5;
}

.funwithgames-game-stats {
	display: flex;
	gap: var(--funwithgames-spacing-lg);
	margin-bottom: var(--funwithgames-spacing-lg);
	font-size: 0.9rem;
	color: var(--funwithgames-gray);
}

.funwithgames-game-stats span {
	display: flex;
	align-items: center;
	gap: var(--funwithgames-spacing-xs);
}

.funwithgames-game-play {
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	color: var(--funwithgames-white);
	border: none;
	padding: var(--funwithgames-spacing-md) var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-md);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	font-size: 1rem;
}

.funwithgames-game-play:hover {
	background: linear-gradient(135deg, #267a4a, #3a7bc8);
	transform: translateY(-2px);
	box-shadow: var(--funwithgames-shadow-md);
}

/* Buttons */
.funwithgames-btn {
	display: inline-block;
	padding: var(--funwithgames-spacing-md) var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-md);
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	font-size: 1rem;
}

.funwithgames-btn-primary {
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	color: var(--funwithgames-white);
}

.funwithgames-btn-primary:hover {
	background: linear-gradient(135deg, #267a4a, #3a7bc8);
	color: var(--funwithgames-white);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--funwithgames-shadow-md);
}

.funwithgames-btn-secondary {
	background: var(--funwithgames-light);
	color: var(--funwithgames-dark);
	border: 2px solid var(--funwithgames-primary);
}

.funwithgames-btn-secondary:hover {
	background: var(--funwithgames-primary);
	color: var(--funwithgames-white);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--funwithgames-shadow-md);
}

/* Alerts */
.funwithgames-alert {
	padding: var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-md);
	margin-top: var(--funwithgames-spacing-lg);
	border-left: 4px solid;
}

.funwithgames-alert-info {
	background-color: #d1ecf1;
	border-color: var(--funwithgames-info);
	color: #0c5460;
}

.funwithgames-alert-success {
	background-color: #d4edda;
	border-color: var(--funwithgames-success);
	color: #155724;
}

.funwithgames-alert-danger {
	background-color: #f8d7da;
	border-color: var(--funwithgames-danger);
	color: #721c24;
}

/* Contact Form */
.funwithgames-contact-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--funwithgames-spacing-xxl);
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-contact-info-card,
.funwithgames-contact-form-card {
	background: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-lg);
	box-shadow: var(--funwithgames-shadow-sm);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.funwithgames-contact-details {
	margin-top: var(--funwithgames-spacing-lg);
}

.funwithgames-contact-detail-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: var(--funwithgames-spacing-lg);
}

.funwithgames-contact-detail-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: var(--funwithgames-spacing-md);
	color: var(--funwithgames-white);
	flex-shrink: 0;
}

.funwithgames-contact-detail-content h4 {
	margin-bottom: var(--funwithgames-spacing-xs);
	color: var(--funwithgames-dark);
}

.funwithgames-contact-detail-content p {
	margin: 0;
	color: var(--funwithgames-gray);
}

.funwithgames-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--funwithgames-spacing-lg);
}

.funwithgames-form-group {
	margin-bottom: var(--funwithgames-spacing-lg);
}

.funwithgames-form-label {
	display: block;
	margin-bottom: var(--funwithgames-spacing-sm);
	font-weight: 600;
	color: var(--funwithgames-dark);
}

.funwithgames-form-control {
	width: 100%;
	padding: var(--funwithgames-spacing-md);
	border: 2px solid #e9ecef;
	border-radius: var(--funwithgames-radius-md);
	font-size: 1rem;
	transition: border-color 0.3s ease;
	background: var(--funwithgames-white);
}

.funwithgames-form-control:focus {
	outline: none;
	border-color: var(--funwithgames-primary);
	box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.funwithgames-form-control::placeholder {
	color: var(--funwithgames-gray);
}

/* Footer */
.funwithgames-footer {
	background: var(--funwithgames-dark);
	color: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xxl) 0 var(--funwithgames-spacing-lg);
}

.funwithgames-footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--funwithgames-spacing-xl);
	margin-bottom: var(--funwithgames-spacing-xl);
}

.funwithgames-footer-section h3 {
	color: var(--funwithgames-white);
	margin-bottom: var(--funwithgames-spacing-lg);
	font-size: 1.25rem;
}

.funwithgames-footer-section p {
	margin-bottom: var(--funwithgames-spacing-sm);
	color: #cccccc;
	line-height: 1.6;
}

.funwithgames-footer-section a {
	color: #cccccc;
	text-decoration: none;
	transition: color 0.3s ease;
}

.funwithgames-footer-section a:hover {
	color: var(--funwithgames-secondary);
	text-decoration: none;
}

.funwithgames-disclaimer {
	background: rgba(255, 255, 255, 0.05);
	padding: var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-md);
	margin-bottom: var(--funwithgames-spacing-lg);
	border-left: 4px solid var(--funwithgames-secondary);
}

.funwithgames-disclaimer p {
	margin-bottom: var(--funwithgames-spacing-sm);
	font-size: 0.9rem;
	line-height: 1.5;
}

.funwithgames-footer-bottom {
	text-align: center;
	padding-top: var(--funwithgames-spacing-lg);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #cccccc;
}

/* Cookie Popup */
.funwithgames-cookie-popup {
	position: fixed;
	bottom: var(--funwithgames-spacing-lg);
	left: var(--funwithgames-spacing-lg);
	right: var(--funwithgames-spacing-lg);
	background: var(--funwithgames-white);
	border-radius: var(--funwithgames-radius-lg);
	box-shadow: var(--funwithgames-shadow-xl);
	z-index: 10000;
	display: none;
	max-width: 500px;
	margin: 0 auto;
}

.funwithgames-cookie-content {
	padding: var(--funwithgames-spacing-lg);
}

.funwithgames-cookie-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: var(--funwithgames-spacing-sm);
	color: var(--funwithgames-dark);
}

.funwithgames-cookie-text {
	margin-bottom: var(--funwithgames-spacing-lg);
	color: var(--funwithgames-gray);
	line-height: 1.5;
}

.funwithgames-cookie-buttons {
	display: flex;
	gap: var(--funwithgames-spacing-md);
	align-items: center;
}

.funwithgames-cookie-accept {
	background: var(--funwithgames-primary);
	color: var(--funwithgames-white);
	border: none;
	padding: var(--funwithgames-spacing-sm) var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-md);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.funwithgames-cookie-accept:hover {
	background: #267a4a;
}

.funwithgames-cookie-policy {
	color: var(--funwithgames-primary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.funwithgames-cookie-policy:hover {
	color: #267a4a;
	text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.funwithgames-hero-title {
		font-size: 2.5rem;
	}

	.funwithgames-hero-subtitle {
		font-size: 1.1rem;
	}

	.funwithgames-features-grid,
	.funwithgames-categories-grid,
	.funwithgames-games-grid {
		grid-template-columns: 1fr;
	}

	.funwithgames-contact-content {
		grid-template-columns: 1fr;
	}

	.funwithgames-form-row {
		grid-template-columns: 1fr;
	}

	.funwithgames-cookie-popup {
		left: var(--funwithgames-spacing-sm);
		right: var(--funwithgames-spacing-sm);
	}

	.funwithgames-cookie-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.funwithgames-cookie-accept {
		margin-bottom: var(--funwithgames-spacing-sm);
	}
}

@media (max-width: 480px) {
	html {
		font-size: 14px !important;
	}
	.container {
		padding: 0 var(--funwithgames-spacing-sm);
	}

	.funwithgames-hero {
		padding: var(--funwithgames-spacing-xl) 0;
	}

	.funwithgames-hero-title {
		font-size: 2rem;
	}

	.funwithgames-section {
		padding: var(--funwithgames-spacing-xl) 0;
	}

	.funwithgames-feature-card,
	.funwithgames-category-card,
	.funwithgames-game-card {
		padding: var(--funwithgames-spacing-lg);
	}
}

/* Animation Classes */
.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

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

/* Loading States */
.funwithgames-btn-loading {
	display: inline-flex;
	align-items: center;
	gap: var(--funwithgames-spacing-sm);
}

.funwithgames-btn-loading .fa-spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles for accessibility */
.funwithgames-navbar-link:focus,
.funwithgames-navbar-cta:focus,
.funwithgames-btn:focus,
.funwithgames-game-play:focus,
.funwithgames-form-control:focus {
	outline: 2px solid var(--funwithgames-secondary);
	outline-offset: 2px;
}

/* Page-specific Hero Sections */
.funwithgames-about-hero,
.funwithgames-games-hero,
.funwithgames-contact-hero,
.funwithgames-privacy-hero,
.funwithgames-terms-hero,
.funwithgames-cookies-hero {
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary) 0%,
		var(--funwithgames-accent) 100%
	);
	color: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xxl) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.funwithgames-about-hero::before,
.funwithgames-games-hero::before,
.funwithgames-contact-hero::before,
.funwithgames-privacy-hero::before,
.funwithgames-terms-hero::before,
.funwithgames-cookies-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.3;
}

.funwithgames-about-hero-content,
.funwithgames-games-hero-content,
.funwithgames-contact-hero-content,
.funwithgames-privacy-hero-content,
.funwithgames-terms-hero-content,
.funwithgames-cookies-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.funwithgames-about-hero-icon,
.funwithgames-games-hero-icon,
.funwithgames-contact-hero-icon,
.funwithgames-privacy-hero-icon,
.funwithgames-terms-hero-icon,
.funwithgames-cookies-hero-icon {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--funwithgames-spacing-lg);
	font-size: 2rem;
	color: var(--funwithgames-white);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.funwithgames-about-hero-subtitle,
.funwithgames-games-hero-subtitle,
.funwithgames-contact-hero-subtitle,
.funwithgames-privacy-hero-subtitle,
.funwithgames-terms-hero-subtitle,
.funwithgames-cookies-hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: var(--funwithgames-spacing-lg);
	opacity: 0.95;
	line-height: 1.6;
}

.funwithgames-about-hero-date,
.funwithgames-games-hero-date,
.funwithgames-contact-hero-date,
.funwithgames-privacy-hero-date,
.funwithgames-terms-hero-date,
.funwithgames-cookies-hero-date {
	font-size: 0.9rem;
	opacity: 0.8;
	font-style: italic;
}

/* About Page Specific Styles */
.funwithgames-about-mission {
	background: var(--funwithgames-white);
}

.funwithgames-about-mission-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--funwithgames-spacing-xxl);
	align-items: center;
}

.funwithgames-about-mission-text h2 {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-lg);
}

.funwithgames-about-mission-text p {
	color: var(--funwithgames-gray);
	line-height: 1.7;
	margin-bottom: var(--funwithgames-spacing-lg);
}

.funwithgames-about-mission-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.funwithgames-about-mission-card {
	width: 200px;
	height: 200px;
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	color: var(--funwithgames-white);
	box-shadow: var(--funwithgames-shadow-lg);
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

.funwithgames-about-features {
	background: var(--funwithgames-light);
}

.funwithgames-about-community {
	background: var(--funwithgames-white);
}

.funwithgames-about-disclaimer {
	background: var(--funwithgames-light);
}

/* Games Page Specific Styles */
.funwithgames-games-stats {
	display: flex;
	justify-content: center;
	gap: var(--funwithgames-spacing-xl);
	margin-top: var(--funwithgames-spacing-xl);
	flex-wrap: wrap;
}

.funwithgames-stat-item {
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	padding: var(--funwithgames-spacing-lg);
	border-radius: var(--funwithgames-radius-lg);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	min-width: 120px;
}

.funwithgames-stat-number {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: var(--funwithgames-white);
	margin-bottom: var(--funwithgames-spacing-xs);
}

.funwithgames-stat-label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.funwithgames-popular-games {
	background: var(--funwithgames-white);
}

.funwithgames-all-games {
	background: var(--funwithgames-light);
}

.funwithgames-disclaimer-section {
	background: var(--funwithgames-white);
}

/* Contact Page Specific Styles */
.funwithgames-contact-overview {
	background: var(--funwithgames-light);
}

.funwithgames-contact-main {
	background: var(--funwithgames-white);
}

.funwithgames-contact-cta {
	background: var(--funwithgames-light);
}

.funwithgames-overview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--funwithgames-spacing-xl);
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-overview-card {
	background: var(--funwithgames-white);
	padding: var(--funwithgames-spacing-xl);
	border-radius: var(--funwithgames-radius-lg);
	text-align: center;
	box-shadow: var(--funwithgames-shadow-sm);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.funwithgames-overview-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--funwithgames-shadow-lg);
}

.funwithgames-overview-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.funwithgames-overview-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(
		135deg,
		var(--funwithgames-primary),
		var(--funwithgames-accent)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto var(--funwithgames-spacing-lg);
	font-size: 1.5rem;
	color: var(--funwithgames-white);
}

.funwithgames-overview-card h3 {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-md);
	font-size: 1.25rem;
}

.funwithgames-overview-card p {
	color: var(--funwithgames-gray);
	line-height: 1.6;
	margin: 0;
}

/* Privacy, Terms, Cookies Page Specific Styles */
.funwithgames-privacy-overview,
.funwithgames-terms-overview,
.funwithgames-cookies-overview {
	background: var(--funwithgames-light);
}

.funwithgames-privacy-detailed,
.funwithgames-terms-detailed,
.funwithgames-cookies-detailed {
	background: var(--funwithgames-white);
}

.funwithgames-privacy-disclaimer,
.funwithgames-terms-disclaimer,
.funwithgames-cookies-disclaimer {
	background: var(--funwithgames-light);
}

.funwithgames-privacy-content,
.funwithgames-terms-content,
.funwithgames-cookies-content {
	max-width: 800px;
	margin: 0 auto;
}

.funwithgames-privacy-section,
.funwithgames-terms-section,
.funwithgames-cookies-section {
	margin-bottom: var(--funwithgames-spacing-xxl);
	padding-bottom: var(--funwithgames-spacing-xl);
	border-bottom: 1px solid #e9ecef;
}

.funwithgames-privacy-section:last-child,
.funwithgames-terms-section:last-child,
.funwithgames-cookies-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.funwithgames-privacy-section h2,
.funwithgames-terms-section h2,
.funwithgames-cookies-section h2 {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-lg);
	font-size: 1.75rem;
	display: flex;
	align-items: center;
	gap: var(--funwithgames-spacing-md);
}

.funwithgames-privacy-section h3,
.funwithgames-terms-section h3,
.funwithgames-cookies-section h3 {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-md);
	font-size: 1.25rem;
	margin-top: var(--funwithgames-spacing-xl);
}

.funwithgames-privacy-section p,
.funwithgames-terms-section p,
.funwithgames-cookies-section p {
	color: var(--funwithgames-gray);
	line-height: 1.7;
	margin-bottom: var(--funwithgames-spacing-md);
}

.funwithgames-privacy-section ul,
.funwithgames-terms-section ul,
.funwithgames-cookies-section ul {
	color: var(--funwithgames-gray);
	line-height: 1.7;
	margin-bottom: var(--funwithgames-spacing-md);
	padding-left: var(--funwithgames-spacing-lg);
}

.funwithgames-privacy-section li,
.funwithgames-terms-section li,
.funwithgames-cookies-section li {
	margin-bottom: var(--funwithgames-spacing-sm);
}

.funwithgames-privacy-section strong,
.funwithgames-terms-section strong,
.funwithgames-cookies-section strong {
	color: var(--funwithgames-dark);
	font-weight: 600;
}

.funwithgames-privacy-section a,
.funwithgames-terms-section a,
.funwithgames-cookies-section a {
	color: var(--funwithgames-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.funwithgames-privacy-section a:hover,
.funwithgames-terms-section a:hover,
.funwithgames-cookies-section a:hover {
	color: #267a4a;
	text-decoration: underline;
}

/* Terms Page Specific Styles */
.funwithgames-terms-cta {
	background: var(--funwithgames-white);
}

.funwithgames-cta-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.funwithgames-cta-content h2 {
	color: var(--funwithgames-dark);
	margin-bottom: var(--funwithgames-spacing-lg);
	font-size: 2rem;
}

.funwithgames-cta-content p {
	color: var(--funwithgames-gray);
	margin-bottom: var(--funwithgames-spacing-xl);
	font-size: 1.1rem;
	line-height: 1.6;
}

.funwithgames-cta-actions {
	display: flex;
	gap: var(--funwithgames-spacing-lg);
	justify-content: center;
	flex-wrap: wrap;
}

/* Responsive Design for Page-specific Elements */
@media (max-width: 768px) {
	.funwithgames-about-mission-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.funwithgames-about-mission-card {
		width: 150px;
		height: 150px;
		font-size: 3rem;
	}

	.funwithgames-games-stats {
		gap: var(--funwithgames-spacing-lg);
	}

	.funwithgames-stat-item {
		min-width: 100px;
		padding: var(--funwithgames-spacing-md);
	}

	.funwithgames-stat-number {
		font-size: 1.5rem;
	}

	.funwithgames-cta-actions {
		flex-direction: column;
		align-items: center;
	}

	.funwithgames-privacy-section h2,
	.funwithgames-terms-section h2,
	.funwithgames-cookies-section h2 {
		font-size: 1.5rem;
		flex-direction: column;
		text-align: center;
		gap: var(--funwithgames-spacing-sm);
	}
}

@media (max-width: 480px) {
	.funwithgames-about-hero-icon,
	.funwithgames-games-hero-icon,
	.funwithgames-contact-hero-icon,
	.funwithgames-privacy-hero-icon,
	.funwithgames-terms-hero-icon,
	.funwithgames-cookies-hero-icon {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}

	.funwithgames-footer-section {
		align-items: center;
		text-align: center;
	}

	.funwithgames-about-mission-card {
		width: 120px;
		height: 120px;
		font-size: 2.5rem;
	}

	.funwithgames-games-stats {
		flex-direction: column;
		align-items: center;
	}

	.funwithgames-stat-item {
		width: 100%;
		max-width: 200px;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	:root {
		--funwithgames-primary: #000000;
		--funwithgames-secondary: #ff0000;
		--funwithgames-accent: #0000ff;
	}
}
