/* 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: hidden; /* Prevent horizontal scroll on mobile */
	width: 100%;
	position: relative;
}

.hl2go-exit-landing {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--hl2go-bg-darker);
	overflow-x: hidden; /* Prevent horizontal scroll */
	width: 100%;
	position: relative;
}

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

/* 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-x: hidden; /* Prevent horizontal scroll */
	box-sizing: border-box;
}

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

/* Center Content - Ensure minimum width */
.hl2go-exit-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 350px; /* Ensure minimum width on desktop */
	max-width: 100%;
	overflow-x: hidden; /* Prevent horizontal scroll */
	overflow-y: visible; /* Allow content to be visible */
	box-sizing: border-box;
}

.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;
	box-sizing: border-box;
	overflow-x: hidden; /* Prevent content overflow */
}

.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;
}

/* Center Ad - Between URL and buttons - same as theme */
.hl2go-exit-ad-center {
	width: 100%;
	max-width: 100%;
	text-align: center;
	overflow: visible;
	margin: 20px 0;
	padding: 15px 0;
	box-sizing: border-box;
}


.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);
}

/* Countdown styles */
.hl2go-countdown {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	background: var(--hl2go-bg-darker);
	color: var(--hl2go-text-primary);
	border: 1px solid var(--hl2go-border-color);
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.hl2go-countdown #hl2go-countdown-number {
	color: var(--hl2go-primary);
	font-weight: 700;
}

.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) - same as theme */
.hl2go-exit-ad-bottom {
	width: 100%;
	max-width: 100%;
	text-align: center;
	overflow: visible;
	padding: 15px 20px;
	max-width: 1400px; /* Match content wrapper width */
	margin: 0 auto;
	box-sizing: border-box;
}

/* 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 !important; /* Ensure content has enough space */
	}
}

/* Desktop: Ensure center content is always visible */
@media (min-width: 769px) {
	.hl2go-exit-center {
		min-width: 350px !important; /* Ensure minimum width on desktop */
		flex-shrink: 1; /* Allow shrinking but maintain minimum */
	}
	
	.hl2go-exit-card {
		min-width: 300px; /* Ensure card has minimum width */
	}
}

@media (max-width: 1024px) {
	.hl2go-exit-content-wrapper {
		flex-direction: column;
	}
	
	.hl2go-exit-center {
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}
	
	/* Stack ads vertically on mobile: top, left, right, bottom */
	.hl2go-exit-landing {
		display: flex;
		flex-direction: column;
	}
	
	.hl2go-exit-ad-top,
	.hl2go-exit-ad-left,
	.hl2go-exit-ad-right,
	.hl2go-exit-ad-bottom {
		order: 0; /* Reset order */
		width: 100% !important;
		max-width: 100% !important;
		/* Use text-align: center like theme, not flex */
	}
	
	/* Show left and right ads on mobile (they will be stacked) */
	.hl2go-exit-ad-left,
	.hl2go-exit-ad-right {
		display: block !important; /* Show on mobile, stacked */
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* Order: top first, then left, then right, then content, then bottom */
	.hl2go-exit-ad-top {
		order: 1;
	}
	
	.hl2go-exit-ad-left {
		order: 2;
	}
	
	.hl2go-exit-ad-right {
		order: 3;
	}
	
	.hl2go-exit-content-wrapper {
		order: 4;
	}
	
	.hl2go-exit-ad-bottom {
		order: 5;
	}
}

@media (max-width: 768px) {
	.hl2go-exit-landing-body,
	.hl2go-exit-landing {
		overflow-x: hidden !important;
		width: 100vw !important; /* Full viewport width */
		max-width: 100vw !important; /* Full viewport width */
		margin: 0 !important;
		padding: 0 !important;
	}
	
	.hl2go-exit-card {
		padding: 25px 15px;
		margin: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.hl2go-exit-title {
		font-size: 22px;
		margin-bottom: 15px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	
	.hl2go-exit-description {
		font-size: 14px;
		margin-bottom: 20px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	
	.hl2go-exit-url-display {
		padding: 12px;
		margin-bottom: 20px;
		font-size: 12px;
		word-break: break-all;
		overflow-wrap: break-word;
		box-sizing: border-box;
	}
	
	.hl2go-exit-buttons {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 15px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.hl2go-exit-btn {
		width: 100%;
		padding: 12px 20px;
		font-size: 15px;
		box-sizing: border-box;
	}
	
	.hl2go-exit-content-wrapper {
		padding: 15px 10px;
		gap: 15px;
		width: 100% !important; /* Full width, not viewport width */
		max-width: 100% !important;
		box-sizing: border-box;
		display: flex !important; /* Ensure it's visible */
		flex-direction: column !important;
	}
	
	.hl2go-exit-center {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
	
	/* On very small screens, keep all ads but make them smaller */
	@media (max-width: 480px) {
		.hl2go-exit-card {
			padding: 20px 12px;
		}
		
		.hl2go-exit-title {
			font-size: 20px;
		}
		
		/* All ads visible and stacked on mobile */
		.hl2go-exit-ad-top,
		.hl2go-exit-ad-left,
		.hl2go-exit-ad-right,
		.hl2go-exit-ad-bottom {
			width: 100% !important;
			max-width: 100% !important;
		}
	}
}

/* Ad Container Styles - Fully responsive (AdSense auto-sizing) - Same as theme */
.hl2go-exit-ad {
	position: relative;
	overflow: visible;
	min-width: 0; /* Prevent flex overflow issues */
	margin: 2rem 0;
	text-align: center;
	width: 100%;
	max-width: 100%;
}

/* Google AdSense responsive ad units - Fully auto-sizing (same as theme) */
.hl2go-exit-ad ins.adsbygoogle,
.hl2go-exit-ad .adsbygoogle {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
}

/* AdSense iframes - fully responsive, auto-sizing (AdSense controls height) - same as theme */
.hl2go-exit-ad iframe {
	max-width: 100% !important;
	width: 100% !important;
	display: block;
	margin: 0 auto;
	height: auto !important;
}

/* AdSense images - responsive (same as theme) */
.hl2go-exit-ad img {
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	display: block;
	margin: 0 auto;
}

/* AdSense script containers (same as theme) */
.hl2go-exit-ad div[id*="google_ads"],
.hl2go-exit-ad div[class*="adsbygoogle"] {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
}

/* Desktop: Ensure ads are visible and properly sized (same as theme) */
@media (min-width: 769px) {
	.hl2go-exit-ad-top,
	.hl2go-exit-ad-bottom {
		padding: 15px 20px;
	}
	
	/* Allow AdSense to control ad size on desktop (same as theme) */
	.hl2go-exit-ad ins.adsbygoogle,
	.hl2go-exit-ad .adsbygoogle,
	.hl2go-exit-ad iframe {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
		margin: 0 auto;
	}
	
	/* Ensure center content and card are visible on desktop */
	.hl2go-exit-center {
		overflow: visible !important; /* Allow content to be visible */
		min-width: 350px !important; /* Ensure minimum width */
	}
	
	.hl2go-exit-card {
		overflow: visible !important; /* Allow content to be visible */
		min-width: 300px !important; /* Ensure minimum width */
	}
	
	.hl2go-exit-buttons {
		display: flex !important; /* Ensure buttons are visible */
		overflow: visible !important; /* Allow buttons to be visible */
	}
}

/* Mobile: Responsive adjustments (same as theme) */
@media (max-width: 768px) {
	.hl2go-exit-ad {
		margin: 1.5rem 0;
	}
	
	/* Ensure AdSense ads are responsive on mobile (AdSense handles sizing) - same as theme */
	.hl2go-exit-ad ins.adsbygoogle,
	.hl2go-exit-ad .adsbygoogle,
	.hl2go-exit-ad iframe {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 320px !important; /* AdSense minimum requirement - same as theme */
	}
	
	/* Hide script tag text but allow execution */
	.hl2go-exit-ad script {
		display: none !important;
		visibility: hidden !important;
		position: absolute !important;
		left: -9999px !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		font-size: 0 !important;
		line-height: 0 !important;
		opacity: 0 !important;
	}
}

