/* ==========================================================================
   Single app
   ========================================================================== */

.app-page {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	max-width: var(--container);
	margin: 50px auto 80px;
}

.app-main {
	flex: 1;
	min-width: 0;
}

.app-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.app-hero-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.app-hero h1 {
	font-size: 21px;
}

.app-subtitle {
	color: var(--muted-color);
	font-size: 14px;
}

/* App category badge (Mobile Apps / Mobile Games) under the name. */
.app-category {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 12px;
	border-radius: 999px;
	background: #EDE9FE;
	color: #6D28D9;
	font-size: 13px;
	font-weight: 600;
}

.app-category:hover {
	background: #DDD6FE;
}

.related-apps {
	margin-top: 30px;
}

.app-image {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
}

.app-image img,
.app-image .thumb-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
	font-size: 40px;
}

.download-button {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.download-button button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 30px;
	border-radius: 10px;
	background-color: var(--primary-color);
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
}

.download-button button:hover {
	opacity: 0.8;
}

.short-description {
	margin-top: 10px;
	font-size: 16px;
	color: var(--muted-color);
}

.app-content {
	margin-top: 50px;
}

.app-content .entry-content {
	margin-top: 15px;
	line-height: 1.9;
}

.app-content .entry-content > * + * {
	margin-top: 1em;
}

.app-content .entry-content img {
	border-radius: 10px;
}

/* Download popup */
.download-dialog {
	width: min(420px, calc(100% - 32px));
	margin: auto;
	padding: 20px;
	border-radius: 12px;
	background: #fff;
	color: var(--text-color);
}

.download-dialog::backdrop {
	background: rgba(15, 23, 42, 0.6);
}

.download-dialog-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.download-dialog-head h2 {
	font-size: 18px;
}

.download-dialog-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	transition: background-color 0.2s ease-in-out;
}

.download-dialog-close:hover,
.download-dialog-close:focus-visible {
	background-color: var(--bg-color);
	outline: 2px solid var(--primary-color);
	outline-offset: 0;
}

.download-intro {
	margin-bottom: 18px;
	text-align: center;
}

.download-intro img {
	display: block;
	width: 160px;
	height: auto;
	margin: 0 auto 12px;
}

.download-intro p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--muted-color);
}

.download-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.download-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 10px;
	background-color: var(--primary-color);
	color: #fff;
	font-weight: bold;
	transition: opacity 0.3s ease-in-out;
}

.download-link:hover {
	opacity: 0.85;
}

.download-link.is-play {
	background-color: var(--success-color);
}

.download-link.is-ios {
	background-color: var(--dark-color);
}

/* Ad above the download buttons, clearly separated from them. */
.download-ad {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--border-color);
}

.download-ad .mobilo-ad {
	margin: 0;
}

/* Screenshots */
.app-screenshots {
	display: flex;
	gap: 10px;
	margin-top: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
}

.app-screenshots a {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.app-screenshots img {
	display: block;
	height: 320px;
	width: auto;
	border-radius: 10px;
}

/* Sidebar */
.app-sidebar {
	flex: 0 0 320px;
	width: 320px;
}

.header-sidebar {
	margin-bottom: 20px;
}

.suggestions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.suggestion {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px;
	border-radius: 10px;
	transition: background-color 0.3s ease-in-out;
}

.suggestion:hover {
	background-color: #fff;
}

.suggestion:hover h4 {
	color: var(--primary-color);
}

.suggestion h4 {
	font-size: 16px;
	font-weight: 500;
}

.suggestion-image {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
}

.suggestion-image img,
.suggestion-image .thumb-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
	font-size: 28px;
}

@media (max-width: 1180px) {
	.app-page {
		padding: 0 20px;
	}
}

@media (max-width: 950px) {
	.app-page {
		flex-direction: column;
	}

	.app-sidebar {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 700px) {
	.app-hero {
		flex-direction: column;
		align-items: stretch;
	}

	.download-button button {
		flex: 1;
		justify-content: center;
	}

	.app-screenshots img {
		height: 240px;
	}

	.app-image {
		flex-basis: 80px;
		width: 80px;
		height: 80px;
	}
}
