/**
 * Breakdance Consent — Iframe Placeholder Styles
 *
 * Overlay shown in place of blocked iframes until consent is given.
 * Placeholders live inside post content (not the consent wrapper),
 * so they define their own --bdc-* custom property defaults.
 *
 * @package BreakdanceConsent
 */

.breakdance-consent__placeholder {
	--bdc-color-primary: var(--wp--preset--color--primary, #1a56db);
	--bdc-color-primary-hover: var(--wp--preset--color--primary-hover, #1244b0);
	--bdc-color-bg: var(--wp--preset--color--background, #ffffff);
	--bdc-color-text: var(--wp--preset--color--body-text, #374151);
	--bdc-color-text-muted: var(--wp--preset--color--muted, #6b7280);
	--bdc-color-border: var(--wp--preset--color--border, #d1d5db);
	--bdc-color-surface: var(--wp--preset--color--surface, #f9fafb);
	--bdc-radius: 0.5rem;
	--bdc-spacing-sm: var(--wp--preset--spacing--sm, 0.75rem);
	--bdc-spacing-md: var(--wp--preset--spacing--md, 1rem);
	--bdc-spacing-lg: var(--wp--preset--spacing--lg, 1.5rem);
	--bdc-font-family: var(--wp--preset--font-family--primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	--bdc-font-size-sm: var(--wp--preset--font-size--sm, 0.875rem);
	--bdc-transition-fast: 0.15s;
}

/*
 * The placeholder fills its parent (.wp-block-embed__wrapper) which has
 * position:relative and the correct aspect-ratio from WordPress core CSS.
 */
.breakdance-consent__placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bdc-color-surface);
	border: 1px solid var(--bdc-color-border);
	border-radius: var(--bdc-radius);
	font-family: var(--bdc-font-family);
	text-align: center;
}

.breakdance-consent__placeholder-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--bdc-spacing-sm);
	padding: var(--bdc-spacing-lg);
	max-width: 320px;
}

/* ── Icon ── */
.breakdance-consent__placeholder-icon {
	width: 48px;
	height: 48px;
	color: var(--bdc-color-text-muted);
	opacity: 0.6;
}

/* ── Text ── */
.breakdance-consent__placeholder-text {
	font-size: var(--bdc-font-size-sm);
	color: var(--bdc-color-text-muted);
	margin: 0;
	line-height: 1.4;
}

/* ── Button ── */
.breakdance-consent__placeholder-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--bdc-font-size-sm);
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	padding: var(--bdc-spacing-sm) var(--bdc-spacing-lg);
	border-radius: var(--bdc-radius);
	border: 2px solid var(--bdc-color-primary);
	background: var(--bdc-color-primary);
	color: var(--bdc-color-bg);
	cursor: pointer;
	min-height: 44px;
	min-width: 44px;
	text-decoration: none;
	transition:
		background-color var(--bdc-transition-fast) ease,
		border-color var(--bdc-transition-fast) ease;
}

.breakdance-consent__placeholder-btn:hover {
	background: var(--bdc-color-primary-hover);
	border-color: var(--bdc-color-primary-hover);
}

.breakdance-consent__placeholder-btn:focus-visible {
	outline: 2px solid var(--bdc-color-primary);
	outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.breakdance-consent__placeholder-btn {
		transition: none;
	}
}
