/* AdBoost Recipe Pro - Frontend Styles */

.abrp-ad-wrap {
	margin-top: var(--abrp-mt, 26px);
	margin-bottom: var(--abrp-mb, 26px);
	clear: both;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.abrp-ad-label {
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	user-select: none;
}

.abrp-ad-box {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	box-sizing: border-box;
}

.abrp-anti-cls .abrp-ad-box {
	min-height: var(--abrp-min-h, 260px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.015);
	border-radius: 6px;
}

/* Collapse unfilled AdSense units cleanly */
.abrp-ad-wrap:has(ins[data-ad-status="unfilled"]) {
	display: none !important;
}

.abrp-ad-box ins.adsbygoogle {
	width: 100%;
	margin: 0 auto;
}

/* Device Visibility (Cache-Safe CSS) */
@media (min-width: 769px) {
	.abrp-vis-mobile {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.abrp-vis-desktop {
		display: none !important;
	}
}

/* Admin Visual Preview Badges (?abrp_preview=1) */
.abrp-preview-badge {
	background: #ecfdf5;
	border: 1px dashed #10b981;
	color: #065f46;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 6px;
	margin-bottom: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.abrp-preview-placeholder {
	width: 100%;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	color: #475569;
	font-weight: 600;
	font-size: 14px;
	padding: 20px;
	box-sizing: border-box;
}

/* Ladysavor-Style Top Social & Jump to Recipe Bar */
.abrp-top-recipe-bar {
	margin: 14px 0 30px 0;
	padding: 0;
	box-sizing: border-box;
}

.abrp-social-heading {
	font-size: 15px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 10px;
}

.abrp-social-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.abrp-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 180px;
	flex: 1 1 180px;
	max-width: 280px;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease, transform 0.15s ease;
	box-sizing: border-box;
}

.abrp-social-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	color: #ffffff !important;
}

.abrp-pin-btn {
	background-color: #c81e2b;
}

.abrp-fb-btn {
	background-color: #365899;
}

.abrp-jump-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.abrp-jump-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background-color: var(--abrp-btn-bg, #556b2f) !important;
	color: var(--abrp-btn-color, #ffffff) !important;
	border-radius: var(--abrp-btn-radius, 8px);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: filter 0.2s ease, transform 0.15s ease;
}

.abrp-jump-btn:hover,
.abrp-jump-btn:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: var(--abrp-btn-color, #ffffff) !important;
}

.abrp-print-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	background-color: #f3f4f6;
	color: #374151 !important;
	border: 1px solid #d1d5db;
	border-radius: var(--abrp-btn-radius, 8px);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.abrp-print-btn:hover {
	background-color: #e5e7eb;
	color: #111827 !important;
}

@media (max-width: 540px) {
	.abrp-social-btn {
		min-width: 135px;
		max-width: 100%;
		padding: 9px 14px;
		font-size: 13px;
	}
	.abrp-jump-btn {
		flex: 1 1 auto;
		padding: 13px 20px;
	}
}

/* Sticky Footer Anchor Ad */
.abrp-sticky-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	background: #ffffff;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
	padding: 6px 10px 4px;
	text-align: center;
}

.abrp-sticky-footer .abrp-ad-wrap {
	margin: 0 !important;
}

.abrp-sticky-close {
	position: absolute;
	top: -26px;
	right: 10px;
	width: 26px;
	height: 26px;
	border-radius: 6px 6px 0 0;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	background: #ffffff !important;
	color: #374151 !important;
	font-size: 18px;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
}

/* Official Google Rewarded Web Ad Consent Modal & Recipe Gate */
.abrp-rewarded-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.abrp-rewarded-backdrop[hidden] {
	display: none !important;
}

.abrp-rewarded-dialog {
	background: #ffffff;
	max-width: 420px;
	width: 100%;
	border-radius: 14px;
	padding: 28px 24px;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.abrp-rewarded-icon {
	font-size: 36px;
	margin-bottom: 10px;
}

.abrp-rewarded-dialog h3 {
	margin: 0 0 18px;
	font-size: 19px;
	line-height: 1.4;
	color: #111827;
}

.abrp-rewarded-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.abrp-rewarded-accept {
	background: var(--abrp-btn-bg, #556b2f) !important;
	color: #ffffff !important;
	border: none;
	border-radius: 8px;
	padding: 13px 20px !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.abrp-rewarded-cancel {
	background: transparent !important;
	color: #6b7280 !important;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 16px !important;
	font-size: 14px;
	cursor: pointer;
}

.abrp-recipe-gate-locked {
	position: relative;
	max-height: 360px;
	overflow: hidden;
}

.abrp-recipe-gate-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 70px 20px 28px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 45%, #ffffff 100%);
	text-align: center;
	z-index: 20;
}

@media print {
	.abrp-ad-wrap,
	.abrp-top-recipe-bar,
	.abrp-sticky-footer,
	.abrp-rewarded-backdrop {
		display: none !important;
	}
}
