/* -------------------------------------------------------------------------
   Ezoic Rewarded PDF Downloader — Reward Card
   Clean, static (no animation) design. Accent color comes from an inline
   --erpdf-accent custom property set per-card from the admin Design tab.
   2-column grid (image | content) on desktop, stacked 1-column on mobile.
   ------------------------------------------------------------------------- */

.erpdf-card {
	--erpdf-accent: #e11d48;
	--erpdf-ink: #0f172a;
	--erpdf-muted: #55627a;
	--erpdf-surface: #ffffff;
	--erpdf-border: #e6e9f0;

	margin: 32px 0;
	max-width: 720px;
}

.erpdf-card.erpdf-block-hidden {
	display: none !important;
}

.erpdf-card-inner {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: center;
	background: var(--erpdf-surface);
	border: 1px solid var(--erpdf-border);
	border-top: 4px solid var(--erpdf-accent);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 30px -14px rgba(15, 23, 42, 0.22);
	padding: 28px;
	box-sizing: border-box;
}

.erpdf-card.erpdf-img-right .erpdf-card-inner {
	grid-template-columns: 1fr 220px;
}

.erpdf-card.erpdf-img-right .erpdf-card-media {
	order: 2;
}

.erpdf-card-media {
	width: 100%;
}

.erpdf-card-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.3);
}

.erpdf-card-body {
	min-width: 0;
}

.erpdf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--erpdf-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.erpdf-card-heading {
	margin: 0 0 8px 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--erpdf-ink);
}

.erpdf-card-subheading {
	margin: 0 0 20px 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--erpdf-muted);
}

.erpdf-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.erpdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}

.erpdf-btn-watch {
	background-color: var(--erpdf-accent);
	color: #ffffff;
}

.erpdf-btn-watch:hover {
	filter: brightness(0.9);
}

.erpdf-btn-watch:disabled {
	opacity: 0.7;
	cursor: progress;
}

.erpdf-btn-download {
	background-color: var(--erpdf-ink);
	color: #ffffff;
}

.erpdf-btn-download:hover {
	filter: brightness(1.25);
	color: #ffffff;
}

.erpdf-card-note {
	margin: 10px 0 0 0;
	font-size: 13px;
	color: var(--erpdf-muted);
	font-style: italic;
}

.erpdf-hidden {
	display: none !important;
}

@media (max-width: 640px) {
	.erpdf-card-inner {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.erpdf-card.erpdf-img-right .erpdf-card-media {
		order: 0;
	}

	.erpdf-card-actions {
		flex-direction: column;
	}

	.erpdf-btn {
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Content Locker (blur one or more target selectors — e.g. a recipe card —
   until the visitor completes a rewarded ad). Accent color is set inline
   per-locked-element via --erpdf-accent from the admin Design tab.
   ------------------------------------------------------------------------- */

.erpdf-premium-section {
	--erpdf-accent: #e11d48;
	position: relative;
	margin-top: 20px;
}

.erpdf-locked-content {
	filter: blur(9px);
	pointer-events: none;
	user-select: none;
}

.erpdf-unlock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	pointer-events: none;
}

.erpdf-unlock-card-box {
	position: sticky;
	top: 30%;
	margin: 0 auto;
	width: 90%;
	max-width: 440px;
	background: #ffffff;
	border: 1px solid #e6e9f0;
	border-top: 4px solid var(--erpdf-accent);
	box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.28);
	border-radius: 14px;
	text-align: center;
	padding: 32px 22px;
	box-sizing: border-box;
	pointer-events: auto;
}

.erpdf-locker-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--erpdf-accent);
	font-size: 20px;
	margin-bottom: 12px;
}

.erpdf-unlock-card-box h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
}

.erpdf-unlock-card-box p {
	color: #55627a;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 20px 0;
}

/* -------------------------------------------------------------------------
   Block editor preview tweaks
   ------------------------------------------------------------------------- */

.erpdf-block-editor-preview .erpdf-btn {
	pointer-events: none;
}
