/*!
Theme Name: Redirect Preloader
Theme URI: https://example.com
Description: A lightweight preloader/redirect theme for WordPress
Version: 1.0.0
Author: WordPress Developer
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redirect-preloader
Domain Path: /languages
*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: #fff;
	gap: 2rem;
}

.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 2rem;
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
}

/* Typography */
.spinner-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 1rem;
	line-height: 1.4;
}

.spinner-subtitle {
	font-size: 1rem;
	font-weight: 400;
	opacity: 0.95;
	line-height: 1.5;
	margin: 0.5rem 0;
}

.partner-name {
	font-weight: 700;
	display: inline;
}

/* Progress Bar */
.progress-bar-container {
	width: 100%;
	max-width: 300px;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	overflow: hidden;
	margin: 1rem 0;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background-color: #fff;
	border-radius: 10px;
	animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
	0% {
		width: 0%;
	}
	50% {
		width: 70%;
	}
	100% {
		width: 100%;
	}
}

/* Fallback Button */
.fallback-link {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.75rem 1.5rem;
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	text-decoration: none;
	border-radius: 30px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	font-size: 0.95rem;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.fallback-link:hover {
	background-color: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-2px);
}

.fallback-link:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 640px) {
	html,
	body {
		gap: 1.5rem;
	}

	.container {
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.spinner-title {
		font-size: 1.25rem;
	}

	.spinner-subtitle {
		font-size: 0.9rem;
	}

	.progress-bar-container {
		max-width: 250px;
	}

	.fallback-link {
		padding: 0.65rem 1.25rem;
		font-size: 0.85rem;
	}
}
