/* HL2GO External Link Landing Page Styles */

:root {
	--hl2go-primary: #00ff88;
	--hl2go-secondary: #0099ff;
	--hl2go-bg-dark: #0a0e27;
	--hl2go-bg-darker: #050811;
	--hl2go-bg-card: #111827;
	--hl2go-text-primary: #ffffff;
	--hl2go-text-secondary: #b0b8c4;
	--hl2go-border-color: #1f2937;
	--hl2go-shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hl2go-exit-landing-body {
	margin: 0;
	padding: 0;
	background: var(--hl2go-bg-darker);
	color: var(--hl2go-text-primary);
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	overflow-x: visible; /* Allow ads to display fully */
}

.hl2go-exit-landing {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--hl2go-bg-darker);
	overflow: visible; /* Allow ads to display fully */
}

/* Top Ad - Centered with container limit (AdSense auto-sizing) */
.hl2go-exit-ad-top {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
	padding: 15px 20px;
	max-width: 1400px; /* Match content wrapper width */
	margin: 0 auto;
}

.hl2go-exit-ad-top > * {
	max-width: 100%;
	width: auto; /* Let AdSense control width */
	overflow: visible;
}

/* Content Wrapper */
.hl2go-exit-content-wrapper {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
	gap: 20px;
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	overflow: visible;
}

/* Side Ads - Responsive with smart limits (AdSense auto-sizing) */
.hl2go-exit-ad-left,
.hl2go-exit-ad-right {
	width: 100%;
	max-width: 320px; /* Smart limit for side ads to prevent content compression */
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow: visible;
	flex-shrink: 0;
	flex-grow: 0; /* Prevent side ads from growing */
}

.hl2go-exit-ad-left > *,
.hl2go-exit-ad-right > * {
	max-width: 100%;
	width: auto; /* Let AdSense control width */
	overflow: visible;
}

/* Center Content - Ensure minimum width */
.hl2go-exit-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 300px; /* Minimum width to prevent excessive compression */
	max-width: 100%;
	overflow: visible;
}

.hl2go-exit-card {
	background: var(--hl2go-bg-card);
	border: 1px solid var(--hl2go-border-color);
	border-radius: 12px;
	padding: 40px;
	max-width: 600px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.hl2go-exit-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: var(--hl2go-text-primary);
	font-family: 'Orbitron', sans-serif;
}

.hl2go-exit-description {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 30px 0;
	color: var(--hl2go-text-secondary);
}

.hl2go-exit-url-display {
	background: var(--hl2go-bg-darker);
	border: 1px solid var(--hl2go-border-color);
	border-radius: 6px;
	padding: 15px;
	margin: 0 0 30px 0;
	word-break: break-all;
}

.hl2go-exit-url-display strong {
	color: var(--hl2go-primary);
	font-size: 14px;
	font-weight: 500;
}

.hl2go-exit-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.hl2go-exit-btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	font-family: inherit;
}

.hl2go-exit-btn-continue {
	background: var(--hl2go-primary);
	color: #000;
	box-shadow: var(--hl2go-shadow-glow);
}

.hl2go-exit-btn-continue:hover {
	background: #00cc6f;
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.hl2go-exit-btn-cancel {
	background: var(--hl2go-bg-darker);
	color: var(--hl2go-text-primary);
	border: 1px solid var(--hl2go-border-color);
}

.hl2go-exit-btn-cancel:hover {
	background: var(--hl2go-bg-card);
	border-color: var(--hl2go-text-secondary);
}

.hl2go-exit-back-link {
	display: inline-block;
	color: var(--hl2go-text-secondary);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.hl2go-exit-back-link:hover {
	color: var(--hl2go-primary);
}

/* Bottom Ad - Centered with container limit (AdSense auto-sizing) */
.hl2go-exit-ad-bottom {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
	padding: 15px 20px;
	max-width: 1400px; /* Match content wrapper width */
	margin: 0 auto;
}

.hl2go-exit-ad-bottom > * {
	max-width: 100%;
	width: auto; /* Let AdSense control width */
	overflow: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
	/* On smaller screens, reduce side ad width to give more space to content */
	.hl2go-exit-ad-left,
	.hl2go-exit-ad-right {
		max-width: 280px;
	}
	
	.hl2go-exit-center {
		min-width: 350px; /* Ensure content has enough space */
	}
}

@media (max-width: 1024px) {
	.hl2go-exit-content-wrapper {
		flex-direction: column;
	}
	
	.hl2go-exit-ad-left,
	.hl2go-exit-ad-right {
		display: none;
	}
	
	.hl2go-exit-center {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.hl2go-exit-card {
		padding: 30px 20px;
	}
	
	.hl2go-exit-title {
		font-size: 24px;
	}
	
	.hl2go-exit-description {
		font-size: 14px;
	}
	
	.hl2go-exit-buttons {
		flex-direction: column;
	}
	
	.hl2go-exit-btn {
		width: 100%;
	}
	
	.hl2go-exit-content-wrapper {
		padding: 20px 15px;
	}
}

/* Ad Container Styles - Fully responsive (AdSense auto-sizing) */
.hl2go-exit-ad {
	position: relative;
	overflow: visible;
	min-width: 0; /* Prevent flex overflow issues */
}

.hl2go-exit-ad iframe,
.hl2go-exit-ad ins {
	max-width: 100% !important;
	width: auto !important; /* Let AdSense control width */
	display: block !important;
	margin: 0 auto;
}

.hl2go-exit-ad ins {
	display: block !important;
	width: auto !important; /* Let AdSense control width */
}

.hl2go-exit-ad iframe {
	height: auto !important;
	max-height: none !important; /* Don't restrict height */
}

/* Ensure ads are responsive on mobile (AdSense handles sizing) */
@media (max-width: 768px) {
	.hl2go-exit-ad-top,
	.hl2go-exit-ad-bottom {
		padding: 10px 15px; /* Smaller padding on mobile */
		max-width: 100%; /* Full width on mobile */
	}
	
	/* Ensure AdSense ads are responsive on mobile */
	.hl2go-exit-ad ins.adsbygoogle,
	.hl2go-exit-ad .adsbygoogle,
	.hl2go-exit-ad iframe {
		width: auto !important; /* Let AdSense control width */
		max-width: 100% !important;
		min-width: 320px !important; /* AdSense minimum requirement */
		overflow: visible !important;
	}
}

