/* FlowPress Frontend + Preview Styles — base layer; global CSS is appended inline */

.flowpress-heading { display: block; margin: 0; margin-block: 0; }

.flowpress-text    { display: block; }
.flowpress-text p:last-child { margin-bottom: 0; }

.flowpress-video-outer {
	width: 100%;
	text-align: center;
}

.flowpress-video-wrap {
	position: relative;
	display: inline-block;
	vertical-align: top;
	width: 100%;
	max-width: 100%;
}

/* Aspect ratio helpers */
.fp-ratio-169 { aspect-ratio: 16/9; }
.fp-ratio-43  { aspect-ratio: 4/3; }
.fp-ratio-32  { aspect-ratio: 3/2; }
.fp-ratio-11  { aspect-ratio: 1/1; }

.fp-ratio-169 iframe,
.fp-ratio-43  iframe,
.fp-ratio-32  iframe,
.fp-ratio-11  iframe,
.fp-ratio-custom iframe,
.fp-ratio-custom video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Center video content vertically when aspect ratios differ */
.fp-ratio-169 video,
.fp-ratio-43  video,
.fp-ratio-32  video,
.fp-ratio-11  video,
.fp-ratio-custom video {
	object-fit: contain;
	object-position: center;
}

.flowpress-image-wrap {
	display: flex;
	width: 100%;
}

.flowpress-image-wrap img {
	max-width: 100%;
	height: auto;
	display: block;
}

.fp-image-caption {
	display: block;
	font-size: 0.875em;
	color: #666;
	margin-top: 6px;
	text-align: center;
}

.flowpress-portfolio-entry,
.flowpress-project-entry {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* ── Blog Converter canvas widget ────────────────────────────────────────── */

.fp-blog-converter {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.fp-bc-header {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	background: #f0eeff;
	border-bottom: 1px solid #ddd;
	color: #6c63ff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.fp-bc-content {
	min-height: 260px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.75;
	color: #333;
	outline: none;
	overflow-y: auto;
	word-break: break-word;
}

.fp-bc-content:focus {
	background: #fafaff;
	box-shadow: inset 0 0 0 2px #6c63ff;
}

.fp-bc-content.fp-bc-empty::before {
	content: attr(data-placeholder);
	color: #bbb;
	pointer-events: none;
	font-style: italic;
	display: block;
}

/* Heading styles inside the paste area — gives visual feedback */
.fp-bc-content h1 { font-size: 1.75em; font-weight: 700; margin: .3em 0 .2em; color: #111; }
.fp-bc-content h2 { font-size: 1.4em;  font-weight: 700; margin: .3em 0 .2em; color: #111; }
.fp-bc-content h3 { font-size: 1.15em; font-weight: 600; margin: .3em 0 .2em; color: #111; }
.fp-bc-content h4,
.fp-bc-content h5,
.fp-bc-content h6 { font-size: 1em; font-weight: 600; margin: .3em 0 .2em; color: #111; }
.fp-bc-content p  { margin: 0 0 .6em; }
.fp-bc-content img { max-width: 100%; height: auto; border-radius: 4px; }

.fp-bc-footer-hint {
	padding: 7px 14px;
	font-size: 11px;
	color: #aaa;
	background: #fafafa;
	border-top: 1px solid #eee;
	text-align: center;
}
