/* Foxco Billboard Widget — Frontend Styles v1.2.0 */

.foxco-billboard-wrap {
	position: relative !important;
	display: block;
	/* No line-height:0 here — it cascades into text and collapses it */
}

.foxco-billboard-img {
	display: block; /* removes inline gap without needing line-height:0 */
	width: 100%;
	height: auto;
}

.foxco-billboard-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f0f0f0;
	color: #999;
	font-size: 14px;
	line-height: 1.4;
	gap: 8px;
}

/* Overlay Zone */
.foxco-billboard-overlay {
	position: absolute !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	line-height: normal; /* reset from any parent */
	/* Fallback defaults if Elementor CSS hasn't loaded yet */
	left: 5%;
	top: 5%;
	width: 90%;
	height: 50%;
}

/* Text */
.foxco-billboard-text {
	width: 100%;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0;
	line-height: 1.2;
	/* Do NOT set font-size here — let Elementor typography control own it */
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.foxco-billboard-fittext {
	display: block;
	word-break: break-word;
}

/* ═══════════════════════════════════════
   FRAME PRESETS
   ═══════════════════════════════════════ */

/* 1 — Rounded (clean) */
.foxco-bb-frame-rounded {
	border-radius: 16px;
	overflow: hidden;
}

/* 2 — Neon Glow */
.foxco-bb-frame-neon {
	border-radius: 12px;
	overflow: hidden;
	box-shadow:
		0 0 0 2px #b026ff,
		0 0 12px 4px #b026ff,
		0 0 40px 8px rgba(176,38,255,0.4);
}

/* 3 — Polaroid */
.foxco-bb-frame-polaroid {
	/* Slightly off-white photo paper — not pure white */
	background: #f2efe8;
	/* Thick equal border on 3 sides, much thicker at bottom for the tab */
	padding: 12px 12px 52px 12px;
	border-radius: 2px;
	/* Paper texture via subtle gradient + noise */
	background-image:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 2px,
			rgba(0,0,0,0.012) 2px,
			rgba(0,0,0,0.012) 4px
		),
		linear-gradient(135deg, #f6f3ec 0%, #edeae2 50%, #f2efe8 100%);
	/* Realistic layered shadow — contact shadow + cast shadow */
	box-shadow:
		0 1px 2px rgba(0,0,0,0.15),
		0 4px 8px rgba(0,0,0,0.12),
		0 12px 28px rgba(0,0,0,0.18),
		0 24px 48px rgba(0,0,0,0.1),
		/* Subtle edge highlight on top-left */
		inset 1px 1px 0 rgba(255,255,255,0.9),
		inset -1px 0 0 rgba(0,0,0,0.04);
	/* Slight tilt — polaroids are never perfectly straight */
	transform: rotate(-1.8deg);
	transform-origin: center bottom;
	/* Hover: straighten up slightly like picking it up */
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.foxco-bb-frame-polaroid:hover {
	transform: rotate(-0.4deg) translateY(-4px);
	box-shadow:
		0 2px 4px rgba(0,0,0,0.12),
		0 8px 20px rgba(0,0,0,0.15),
		0 24px 56px rgba(0,0,0,0.22),
		0 40px 64px rgba(0,0,0,0.08),
		inset 1px 1px 0 rgba(255,255,255,0.9);
}
/* The photo itself — slight matte finish vignette */
.foxco-bb-frame-polaroid .foxco-billboard-img {
	display: block;
	width: 100%;
	/* Very faint vignette on the photo */
	filter: contrast(1.04) saturate(0.92) brightness(0.98);
	box-shadow: inset 0 0 30px rgba(0,0,0,0.08);
}
/* Caption area pseudo — handwritten feel via line at the bottom */
.foxco-bb-frame-polaroid::after {
	content: '';
	position: absolute;
	bottom: 14px;
	left: 18px;
	right: 18px;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0.12) 80%, transparent);
	pointer-events: none;
}

/* 4 — Stamp (dashed perforated edge) */
.foxco-bb-frame-stamp {
	border-radius: 4px;
	overflow: hidden;
	outline: 4px dashed rgba(255,255,255,0.7);
	outline-offset: -8px;
	box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* 5 — Retro TV */
.foxco-bb-frame-retro {
	border-radius: 18px / 24px;
	overflow: hidden;
	border: 6px solid #2a2a2a;
	box-shadow:
		inset 0 0 0 3px #555,
		0 8px 32px rgba(0,0,0,0.5),
		0 2px 6px rgba(0,0,0,0.3);
	background: #111;
}
/* Scanline overlay */
.foxco-bb-frame-retro::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		to bottom,
		transparent,
		transparent 2px,
		rgba(0,0,0,0.08) 2px,
		rgba(0,0,0,0.08) 4px
	);
	pointer-events: none;
	z-index: 5;
}

/* 6 — Golden Hour (warm cinematic) */
.foxco-bb-frame-golden {
	border-radius: 8px;
	overflow: hidden;
	border: 3px solid #c8973a;
	box-shadow:
		0 0 0 6px #1a1005,
		0 0 0 8px #c8973a,
		0 12px 40px rgba(200,151,58,0.3);
}

/* 7 — Newspaper */
.foxco-bb-frame-newspaper {
	border-radius: 0;
	overflow: hidden;
	border: 4px double #222;
	outline: 1px solid #222;
	outline-offset: 4px;
	filter: grayscale(30%) contrast(1.05);
	box-shadow: 4px 4px 0 #888;
}

/* ── Polaroid tilt via CSS variable ── */
.foxco-bb-frame-polaroid {
	transform: rotate(var(--bb-tilt, -1.8deg));
}
.foxco-bb-frame-polaroid:hover {
	transform: rotate(calc(var(--bb-tilt, -1.8deg) * 0.2)) translateY(-4px);
}

/* ── Polaroid caption ── */
.foxco-bb-polaroid-caption {
	text-align: center;
	font-family: 'Dancing Script', 'Segoe Script', 'Bradley Hand', cursive;
	font-size: 20px; /* overridden by control */
	color: #4a4035;  /* overridden by control */
	padding: 8px 12px 0;
	line-height: 1.2;
	letter-spacing: 0.02em;
	/* Prevent caption from sitting outside the polaroid frame */
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
