/**
 * Beebe Ads - Frontend Stylesheet
 * Universal compatibility across all WordPress themes
 */

/* Container & Clearfix */
.beebe-ad-slot {
	position: relative;
	display: block;
	margin: 1.5rem auto;
	max-width: 100%;
	clear: both;
	text-align: center;
	box-sizing: border-box;
}

.beebe-ad-slot * {
	box-sizing: border-box;
}

/* Alignments */
.beebe-ad-align-left {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.beebe-ad-align-right {
	margin-left: auto;
	margin-right: 0;
	text-align: right;
}

.beebe-ad-align-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Sponsored Badge */
.beebe-ad-badge {
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 10px;
	line-height: 1.4;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8c8f94;
	margin-bottom: 6px;
}

/* Banner Image Formatting */
.beebe-ad-slot .beebe-banner-link {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.beebe-ad-slot .beebe-banner-link:hover {
	opacity: 0.96;
}

.beebe-ad-slot .beebe-banner-img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	border-radius: 6px;
	vertical-align: middle;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Sticky Bottom Anchor */
.beebe-sticky-overlay.beebe-sticky-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	z-index: 999990;
	padding: 10px 15px;
	border-top: 1px solid #e2e4e7;
	text-align: center;
	animation: beebeSlideUp 0.3s ease-out;
}

.beebe-sticky-overlay.beebe-sticky-top {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	z-index: 999990;
	padding: 10px 15px;
	border-bottom: 1px solid #e2e4e7;
	text-align: center;
	animation: beebeSlideDown 0.3s ease-out;
}

.beebe-sticky-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.beebe-sticky-inner .beebe-ad-slot {
	margin: 0;
}

.beebe-sticky-close {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #23282d;
	color: #fff;
	border: none;
	width: 28px;
	height: 28px;
	line-height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	transition: background 0.2s ease;
	z-index: 999991;
}

.beebe-sticky-close:hover {
	background: #d63638;
}

/* Corner Slide-in Card */
.beebe-slidein-card {
	position: fixed;
	bottom: 24px;
	right: 24px;
	max-width: 340px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	border: 1px solid #e2e4e7;
	z-index: 999980;
	overflow: hidden;
	animation: beebeSlideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.beebe-slidein-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f6f7f7;
	border-bottom: 1px solid #f0f0f1;
}

.beebe-slidein-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #646970;
}

.beebe-slidein-close {
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #646970;
	cursor: pointer;
	padding: 0;
}

.beebe-slidein-close:hover {
	color: #d63638;
}

.beebe-slidein-body {
	padding: 12px;
}

.beebe-slidein-body .beebe-ad-slot {
	margin: 0;
}

/* Side Billboards / Gutters (Desktop Only >= 1440px) */
.beebe-gutter-billboard {
	position: fixed;
	top: 120px;
	width: 160px;
	z-index: 99990;
	display: none;
}

@media (min-width: 1440px) {
	.beebe-gutter-billboard {
		display: block;
	}
	.beebe-gutter-left {
		left: 20px;
	}
	.beebe-gutter-right {
		right: 20px;
	}
}

/* ==========================================================================
   FORMAT 1: PARALLAX "FLYING CARPET" SCROLLER
   ========================================================================== */
.beebe-parallax-scroller {
	position: relative;
	width: 100%;
	margin: 2.5rem 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.beebe-parallax-window {
	position: relative;
	width: 100%;
	height: var(--beebe-parallax-height, 380px);
	background-attachment: fixed;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
}

.beebe-parallax-overlay {
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 24px 32px;
	border-radius: 12px;
	max-width: 540px;
	color: #ffffff;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.beebe-parallax-overlay .beebe-ad-badge {
	color: #94a3b8;
}

.beebe-parallax-title {
	margin: 8px 0 10px 0;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.beebe-parallax-desc {
	margin: 0 0 18px 0;
	font-size: 14px;
	color: #e2e8f0;
	line-height: 1.5;
}

.beebe-parallax-btn {
	display: inline-block;
	background: #3b82f6;
	color: #ffffff;
	padding: 10px 24px;
	font-weight: 600;
	font-size: 14px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.beebe-parallax-btn:hover {
	background: #2563eb;
	color: #ffffff;
	transform: translateY(-2px);
}

/* ==========================================================================
   FORMAT 2: OUTSTREAM FLOATING PICTURE-IN-PICTURE (PIP) VIDEO
   ========================================================================== */
.beebe-pip-video-wrap {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 2rem auto;
}

.beebe-pip-video-container {
	position: relative;
	width: 100%;
	background: #0f172a;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.beebe-pip-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px;
	background: #1e293b;
	color: #94a3b8;
}

.beebe-pip-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #cbd5e1;
}

.beebe-pip-close {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.beebe-pip-close:hover {
	color: #ef4444;
}

.beebe-pip-player,
.beebe-pip-iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	display: block;
}

/* Docked State */
.beebe-pip-video-wrap.is-docked .beebe-pip-video-container {
	position: fixed;
	bottom: 24px;
	width: 320px;
	z-index: 999980;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
	border: 1px solid #334155;
	animation: beebeSlideUp 0.3s ease-out;
}

.beebe-pip-video-wrap[data-dock="bottom-right"].is-docked .beebe-pip-video-container {
	right: 24px;
}

.beebe-pip-video-wrap[data-dock="bottom-left"].is-docked .beebe-pip-video-container {
	left: 24px;
}

/* ==========================================================================
   FORMAT 3: NATIVE IN-FEED SPONSORED STORY CARD
   ========================================================================== */
.beebe-native-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	margin: 2rem auto;
	max-width: 680px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-align: left;
}

.beebe-native-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.beebe-native-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.beebe-native-logo {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #cbd5e1;
}

.beebe-native-meta {
	display: flex;
	flex-direction: column;
}

.beebe-native-sponsor {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
}

.beebe-native-badge {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	color: #64748b;
	letter-spacing: 0.04em;
}

.beebe-native-media {
	margin-bottom: 14px;
	border-radius: 8px;
	overflow: hidden;
}

.beebe-native-img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.beebe-native-card:hover .beebe-native-img {
	transform: scale(1.02);
}

.beebe-native-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.beebe-native-title a {
	color: #0f172a;
	text-decoration: none;
}

.beebe-native-title a:hover {
	color: #2563eb;
}

.beebe-native-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 14px 0;
}

.beebe-native-btn {
	display: inline-block;
	color: #2563eb;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.beebe-native-btn:hover {
	text-decoration: underline;
}

/* ==========================================================================
   FORMAT 4: INTERACTIVE AFFILIATE COMPARISON & TOP PICK BOX
   ========================================================================== */
.beebe-product-box {
	position: relative;
	background: #ffffff;
	border: 2px solid #2563eb;
	border-radius: 12px;
	padding: 28px 24px 24px 24px;
	margin: 2.5rem auto;
	max-width: 720px;
	box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
	text-align: left;
}

.beebe-product-ribbon {
	position: absolute;
	top: -14px;
	left: 24px;
	background: #2563eb;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 14px;
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.beebe-product-grid {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

@media (max-width: 640px) {
	.beebe-product-grid {
		flex-direction: column;
		align-items: center;
	}
}

.beebe-product-thumb {
	width: 140px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	padding: 8px;
}

.beebe-product-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.beebe-product-details {
	flex-grow: 1;
}

.beebe-product-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.beebe-stars {
	color: #f59e0b;
	font-size: 16px;
	letter-spacing: 2px;
}

.beebe-rating-score {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}

.beebe-product-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.beebe-product-price {
	font-size: 16px;
	font-weight: 700;
	color: #16a34a;
	margin-bottom: 14px;
}

.beebe-product-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

@media (max-width: 480px) {
	.beebe-product-pros-cons {
		grid-template-columns: 1fr;
	}
}

.beebe-pros-list,
.beebe-cons-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
}

.beebe-pros-list li {
	margin-bottom: 6px;
	color: #334155;
}

.beebe-pros-list .icon-check {
	color: #16a34a;
	font-weight: 800;
	margin-right: 4px;
}

.beebe-cons-list li {
	margin-bottom: 6px;
	color: #64748b;
}

.beebe-cons-list .icon-cross {
	color: #dc2626;
	font-weight: 800;
	margin-right: 4px;
}

.beebe-product-btn {
	display: inline-block;
	background: #16a34a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.beebe-product-btn:hover {
	background: #15803d;
	color: #ffffff;
	transform: translateY(-2px);
}

/* ==========================================================================
   FORMAT 5: HEADER EXPANDABLE PUSHDOWN BILLBOARD
   ========================================================================== */
.beebe-header-pushdown {
	position: relative;
	width: 100%;
	background: #0f172a;
	overflow: hidden;
	transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	height: var(--beebe-collapsed-h, 90px);
}

.beebe-header-pushdown.is-expanded {
	height: var(--beebe-expanded-h, 350px);
}

.beebe-pushdown-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.beebe-pushdown-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.beebe-pushdown-content img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.beebe-pushdown-toggle {
	position: absolute;
	bottom: 0;
	right: 20px;
	background: #1e293b;
	color: #f1f5f9;
	border: 1px solid #334155;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	z-index: 10;
}

.beebe-pushdown-toggle:hover {
	background: #334155;
}

/* ==========================================================================
   FORMAT 6: EXIT-INTENT / SCROLL-DEPTH INTERSTITIAL MODAL
   ========================================================================== */
.beebe-interstitial-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: beebeFadeIn 0.25s ease-out;
}

.beebe-interstitial-box {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	max-width: 620px;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: beebeScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	padding: 24px;
}

.beebe-interstitial-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: #f1f5f9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.2s;
}

.beebe-interstitial-close:hover {
	background: #ef4444;
	color: #ffffff;
}

/* ==========================================================================
   FORMAT 7: SMART-RAIL STICKY SIDEBAR REFRESHER
   ========================================================================== */
.beebe-smart-rail {
	position: sticky;
	top: 90px;
	width: 100%;
	z-index: 90;
	transition: opacity 0.3s ease;
}

/* ==========================================================================
   FORMAT 8: INLINE CONTEXTUAL SPONSORED KEYWORD HIGHLIGHT
   ========================================================================== */
.beebe-keyword-wrap {
	position: relative;
	display: inline-block;
}

.beebe-keyword-link {
	color: #2563eb;
	text-decoration: underline dotted #2563eb 2px;
	text-underline-offset: 3px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease;
}

.beebe-keyword-link:hover {
	color: #1d4ed8;
}

.beebe-keyword-tooltip {
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 16px;
	width: 240px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 99990;
	text-align: left;
}

.beebe-keyword-wrap:hover .beebe-keyword-tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.beebe-tooltip-badge {
	display: block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: #2563eb;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.beebe-tooltip-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.beebe-tooltip-desc {
	display: block;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	margin-bottom: 8px;
}

.beebe-tooltip-cta {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #2563eb;
}

/* Animations */
@keyframes beebeSlideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@keyframes beebeSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

@keyframes beebeSlideInRight {
	from { transform: translateX(120%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes beebeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes beebeScaleUp {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: scale(1); }
}
