/* ============================================================
   single-wpdmpro.css — WPDM download page (/download-link/<slug>/).
============================================================ */

.single-wpdmpro-main {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

/* ------------------------------------------------------------
   AD SLOT — GTM-managed (no hardcoded AdSense)

   Top-of-download-flow placement, sits between breadcrumb and
   the 2-column dl-layout grid on /download-link/ and /get/. The
   selector `.ad-slot-download-top` is a stable hook for Google
   Tag Manager / AdSense injection / analytics / experiments —
   do not rename. Container is empty in markup; GTM fills at
   runtime. `:empty` collapses the chrome when no ad is served.
------------------------------------------------------------ */
.ad-slot-download-top {
	max-width: 728px;
	min-height: 90px;
	margin: 18px auto 26px;
	border: 1px solid #e7eaf0;
	border-radius: 16px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ad-slot-download-top:empty {
	display: none;
}

/* Mobile — drop the leaderboard width cap, soften the height, tighten
   the margins so the ad doesn't push the download hero below the fold. */
@media (max-width: 480px) {
	.ad-slot-download-top {
		max-width: 100%;
		min-height: 60px;
		margin: 14px auto 20px;
	}
}

/* ---- Two-column layout ---- */
.dl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 24px;
	align-items: start;
}

.dl-main {
	min-width: 0;
}

.dl-sidebar {
	position: sticky;
	top: 80px;
}

/* ---- Breadcrumb ---- */
.dl-crumb {
	font-size: 14px;
	color: var(--text-3, #6b7280);
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.dl-crumb a {
	color: var(--text-2, #4a5568);
	text-decoration: none;
	font-weight: 500;
}

.dl-crumb a:hover {
	color: var(--primary, #2563eb);
}

.dl-crumb strong {
	color: var(--text, #111827);
}

.dl-sep {
	color: var(--text-muted, #9ca3af);
}

/* ---- Hero ---- */
.dl-hero {
	background: linear-gradient(135deg, #fafbff 0%, #f3f4ff 100%);
	border-radius: 16px;
	padding: 48px 24px;
	text-align: center;
	margin-bottom: 24px;
	position: relative;
}

.dl-hero-icon-wrap {
	margin: 0 auto 16px;
	width: 128px;
	height: 128px;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.dl-hero-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dl-hero-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--text, #111827);
}

.dl-hero-title-name {
	color: var(--primary, #2563eb);
}

.dl-hero-tagline {
	font-size: 16px;
	color: var(--text-2, #6b7280);
	margin: 0 auto 24px;
	max-width: 520px;
	line-height: 1.5;
}

.dl-btn-big {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	padding: 16px 40px;
	border-radius: 12px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
	transition: all 0.2s ease;
}

.dl-btn-big:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
	color: #fff;
}

.dl-hero-meta {
	margin-top: 16px;
	font-size: 14px;
	color: var(--text-2, #6b7280);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dl-hero-meta strong {
	color: var(--text, #111827);
	font-weight: 600;
}

.dl-meta-free {
	color: #059669;
	font-weight: 600;
}

/* ---- Info strip ---- */
.dl-info-strip {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 12px;
	padding: 16px 24px;
	margin-bottom: 24px;
}

.dl-info-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.dl-info-name {
	font-weight: 700;
	font-size: 16px;
	color: var(--text, #111827);
}

.dl-info-version {
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	padding: 2px 8px;
	border-radius: 4px;
}

.dl-info-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	margin-right: 12px;
	color: var(--text-2, #6b7280);
	font-size: 14px;
	flex-wrap: wrap;
}

.dl-info-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dl-info-platform-icon {
	display: inline-flex;
}

.dl-info-platform-icon svg {
	width: 14px;
	height: 14px;
}

.dl-info-license {
	color: #059669;
}

.dl-info-back {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f9fafb;
	color: var(--text-2, #6b7280);
	border: 1px solid var(--border, #e5e7eb);
	text-decoration: none;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.dl-info-back:hover {
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
}

/* ---- Also available ---- */
.dl-also-available {
	background: #fff;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.dl-also-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px;
}

.dl-also-bar {
	width: 4px;
	height: 20px;
	background: var(--primary, #2563eb);
	border-radius: 2px;
}

.dl-platform-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.dl-platform-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: all 0.15s ease;
}

.dl-platform-card:hover {
	border-color: var(--primary, #2563eb);
	background: var(--primary-light, #eff6ff);
	transform: translateY(-2px);
}

.dl-platform-card-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dl-platform-card-icon svg {
	width: 20px;
	height: 20px;
}

.dl-platform-card-icon.platform-windows { background: #eff6ff; color: #2563eb; }
.dl-platform-card-icon.platform-mac     { background: #f3f4f6; color: #1f2937; }
.dl-platform-card-icon.platform-linux   { background: #fef3c7; color: #d97706; }
.dl-platform-card-icon.platform-android { background: #d1fae5; color: #059669; }
.dl-platform-card-icon.platform-iphone  { background: #f3f4f6; color: #6b7280; }

.dl-platform-card-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dl-platform-card-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--text, #111827);
}

.dl-platform-card-size {
	font-size: 12px;
	color: var(--text-3, #6b7280);
	margin-top: 2px;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.dl-hero {
		padding: 32px 16px;
	}

	.dl-hero-title {
		font-size: 24px;
	}

	.dl-btn-big {
		padding: 14px 24px;
		font-size: 16px;
	}

	.dl-info-strip {
		flex-wrap: wrap;
		padding: 16px;
	}

	.dl-info-meta {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		margin-top: 12px;
	}

	.dl-info-back {
		display: none;
	}
}

/* ---- Section titles (shared) ---- */
.dl-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	margin: 32px 0 20px;
}

.dl-section-bar {
	width: 4px;
	height: 20px;
	background: var(--primary, #2563eb);
	border-radius: 2px;
}

/* ---- Top Softwares ---- */
.dl-top-softwares {
	background: #fff;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.dl-top-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.dl-top-card {
	display: flex;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 10px;
	transition: all 0.15s ease;
}

.dl-top-card:hover {
	border-color: var(--primary, #2563eb);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dl-top-icon-link {
	flex-shrink: 0;
	display: block;
	line-height: 0;
}

.dl-top-icon {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
}

.dl-top-icon-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	color: #6b7280;
	font-weight: 700;
	font-size: 24px;
}

.dl-top-content {
	flex: 1;
	min-width: 0;
}

.dl-top-name-link {
	text-decoration: none;
	color: inherit;
}

.dl-top-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.dl-top-name-link:hover .dl-top-name {
	color: var(--primary, #2563eb);
}

.dl-top-license {
	display: inline-block;
	background: #ecfdf5;
	color: #059669;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.dl-top-excerpt {
	margin: 0 0 8px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dl-top-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
}

.dl-top-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
}

.dl-top-rating-value {
	color: #6b7280;
	font-weight: 600;
}

.dl-top-platforms {
	display: inline-flex;
	gap: 4px;
}

.dl-top-platform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 4px;
}

.dl-top-platform svg {
	width: 14px;
	height: 14px;
}

.dl-top-platform.platform-windows { background: #eff6ff; color: #2563eb; }
.dl-top-platform.platform-mac     { background: #f3f4f6; color: #1f2937; }
.dl-top-platform.platform-linux   { background: #fef3c7; color: #d97706; }
.dl-top-platform.platform-android { background: #d1fae5; color: #059669; }
.dl-top-platform.platform-iphone  { background: #f3f4f6; color: #6b7280; }

/* ---- Alternate Softwares ---- */
.dl-alt-softwares {
	background: #fff;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.dl-alt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.dl-alt-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: all 0.15s ease;
}

.dl-alt-card:hover {
	border-color: var(--primary, #2563eb);
	background: #eff6ff;
}

.dl-alt-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	flex-shrink: 0;
	object-fit: cover;
}

.dl-alt-icon-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	color: #6b7280;
	font-weight: 700;
	font-size: 16px;
}

.dl-alt-name {
	font-weight: 600;
	font-size: 13px;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- Top Softwares: 2-up in the (narrower) main column ---- */
.dl-top-grid {
	grid-template-columns: repeat(2, 1fr);
}

/* ---- Alternate Softwares in the sidebar: vertical list ---- */
.dl-sidebar .dl-alt-softwares {
	padding: 20px;
	margin-bottom: 0;
}

.dl-sidebar .dl-alt-grid {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dl-sidebar .dl-alt-card {
	padding: 8px 12px;
}

.dl-sidebar .dl-alt-icon,
.dl-sidebar .dl-alt-icon-placeholder {
	width: 32px;
	height: 32px;
	font-size: 14px;
}

.dl-sidebar .dl-section-title {
	font-size: 16px;
	margin: 0 0 16px;
}

@media (max-width: 900px) {
	.dl-layout {
		grid-template-columns: 1fr;
	}

	.dl-sidebar {
		position: static;
	}

	.dl-top-grid {
		grid-template-columns: 1fr;
	}
}
