/* Universal Link Handler Styles */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500&display=swap');

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	text-align: center;
	color: #333;
	line-height: 1.4;
	background-color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	max-width: 100%;
	width: 90%;
	max-width: 500px;
	padding: 30px 20px;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.app-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
}

.app-logo {
	width: 50px;
	height: 50px;
	border-radius: 15px;
	margin-right: 15px;
	object-fit: contain;
}

.app-name {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 22px;
	text-align: center;
	margin: 0;
}

.preview-container {
	display: none;
	text-align: center;
	border-radius: 10px;
	overflow: hidden;
	max-width: 100%;
	min-height: 100px;
	position: relative;
	aspect-ratio: 16/9;
	background-color: #f5f5f5;
	height: auto;
}

/* Loading state for image container */
.loading-image::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #f5f5f5;
	z-index: 1;
}

.loading-image::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #007AFF;
	border-radius: 50%;
	z-index: 2;
	animation: spin 1s linear infinite;
}

.preview-image {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	margin: 0 auto;
	object-fit: contain;
	transition: opacity 0.3s ease;
	position: relative;
	z-index: 3;
}

.content-section {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.app-tagline {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
}

.app-description {
	font-family: 'Outfit', sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: #666;
	text-align: center;
}

.button-container {
	position: relative;
	width: 100%;
	height: 50px;
	margin: 15px auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.open-button {
	font-family: 'Outfit', sans-serif;
	font-weight: 500;
	background-color: #fff;
	color: #007AFF;
	border: none;
	padding: 15px 40px;
	font-size: 18px;
	border-radius: 10px;
	width: 180px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.2s;
	display: block;
	margin: 0 auto;
}

.open-button:hover {
	background-color: #f5f5f5;
}

.loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	align-items: center;
	justify-content: center;
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-left: 4px solid #007AFF;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Store buttons styling */
#store-buttons {
	display: none;
	/* Hidden by default, shown via JS */
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin: 10px auto;
	width: 100%;
}

.store-button {
	font-family: 'Outfit', sans-serif;
	font-weight: 500;
	background-color: #fff;
	color: #007AFF;
	border: none;
	padding: 15px 20px;
	font-size: 16px;
	border-radius: 10px;
	width: 220px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: block;
	text-align: center;
	margin: 0 auto;
}

.store-button:hover {
	background-color: #f5f5f5;
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	background-color: #f8f8f8;
	border-top: 1px solid #eee;
	text-align: center;
}

/* Mobile-specific styles */
@media (max-width: 600px) {
	.container {
		padding: 20px 15px;
		width: 95%;
	}

	.app-logo {
		width: 50px;
		height: 50px;
	}

	.app-name {
		font-size: 20px;
	}

	.open-button,
	.store-button {
		width: 100%;
		max-width: 280px;
		margin: 0 auto;
	}
}