/**
 * BrightFrame Showcase — Frontend Styles
 *
 * All styles scoped under .bf-showcase to avoid conflicts.
 * Uses CSS custom properties for easy theming.
 */

:root {
	--bf-primary-color: #2563eb;
	--bf-primary-dark: #1d4ed8;
	--bf-primary-light: rgba(37, 99, 235, 0.08);
	--bf-card-bg: #ffffff;
	--bf-card-border: #e5e7eb;
	--bf-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--bf-card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	--bf-card-radius: 8px;
	--bf-badge-active: #16a34a;
	--bf-badge-beta: #ca8a04;
	--bf-badge-coming-soon: #ea580c;
	--bf-badge-deprecated: #6b7280;
	--bf-badge-free: #16a34a;
	--bf-badge-paid: #2563eb;
	--bf-badge-freemium: #7c3aed;
	--bf-font-family: inherit;
	--bf-card-gap: 24px;
	--bf-hero-bg-start: #0f172a;
	--bf-hero-bg-end: #1e3a5f;
	--bf-section-bg-alt: #f8fafc;
	--bf-text-primary: #111827;
	--bf-text-secondary: #6b7280;
	--bf-text-muted: #9ca3af;
}

/* ── Container ── */

.bf-showcase {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: var(--bf-font-family);
	box-sizing: border-box;
}

.bf-showcase *,
.bf-showcase *::before,
.bf-showcase *::after {
	box-sizing: border-box;
}

/* ── Marketing Single — Reset for Divi/builders ── */

.bf-showcase--marketing {
	max-width: 100%;
	padding: 0;
}

.bf-showcase--marketing h1,
.bf-showcase--marketing h2,
.bf-showcase--marketing h3,
.bf-showcase--marketing h4,
.bf-showcase--marketing h5,
.bf-showcase--marketing h6 {
	font-family: var(--bf-font-family);
	letter-spacing: -0.01em;
	line-height: 1.2;
	padding: 0;
}

.bf-showcase--marketing p {
	font-family: var(--bf-font-family);
	line-height: 1.7;
}

.bf-showcase--marketing a {
	text-decoration: none;
}

/* ── Archive Header ── */

.bf-showcase__archive-header {
	margin-bottom: 24px;
}

.bf-showcase__archive-title {
	font-size: 2em;
	margin: 0 0 8px;
}

/* ── Filter Bar ── */

.bf-showcase__filters {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.bf-showcase__search {
	flex: 1;
	min-width: 200px;
}

.bf-showcase__search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--bf-card-border);
	border-radius: var(--bf-card-radius);
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	height: 40px;
}

.bf-showcase__search-input:focus {
	border-color: var(--bf-primary-color);
}

.bf-showcase__category-select {
	padding: 10px 14px;
	border: 1px solid var(--bf-card-border);
	height: 40px;
	box-sizing: border-box;
	border-radius: var(--bf-card-radius);
	font-size: 14px;
	background: var(--bf-card-bg);
	outline: none;
	cursor: pointer;
}

.bf-showcase__view-toggle {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.bf-showcase__view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--bf-card-border);
	border-radius: var(--bf-card-radius);
	background: var(--bf-card-bg);
	cursor: pointer;
	color: #6b7280;
	transition: all 0.2s;
}

.bf-showcase__view-btn:hover {
	color: var(--bf-primary-color);
	border-color: var(--bf-primary-color);
}

.bf-showcase__view-btn--active {
	color: var(--bf-primary-color);
	border-color: var(--bf-primary-color);
	background: rgba(37, 99, 235, 0.05);
}

/* ── Grid View ── */

.bf-showcase__grid--grid {
	display: grid;
	grid-template-columns: repeat(var(--bf-columns, 3), 1fr);
	gap: var(--bf-card-gap);
}

/* ── Card ── */

.bf-showcase__card {
	background: var(--bf-card-bg);
	border: 1px solid var(--bf-card-border);
	border-radius: var(--bf-card-radius);
	box-shadow: var(--bf-card-shadow);
	transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
	overflow: hidden;
	position: relative;
	border-top: 3px solid var(--card-color, var(--bf-card-border));
}

.bf-showcase__card-category {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	background: var(--bf-card-bg);
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid var(--bf-card-border);
	font-size: 0.7em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bf-text-secondary);
}

.bf-showcase__card:hover {
	box-shadow: var(--bf-card-hover-shadow);
	transform: translateY(-4px);
	border-color: var(--bf-primary-color);
}

.bf-showcase__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.bf-showcase__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 24px 16px;
	background: linear-gradient(135deg, var(--bf-primary-light) 0%, transparent 100%);
}

.bf-showcase__card-icon img {
	max-width: 64px;
	max-height: 64px;
	object-fit: contain;
}

.bf-showcase__card-icon-placeholder {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border-radius: 12px;
	color: #9ca3af;
}

.bf-showcase__card-icon-placeholder .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
}

/* Dashicon in colored circle */
.bf-showcase__card-icon-dashicon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
}

.bf-showcase__card-icon-dashicon .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
}

.bf-showcase__card-icon-placeholder--large {
	width: 80px;
	height: 80px;
}

.bf-showcase__card-icon-placeholder--large .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
}

.bf-showcase__card-body {
	flex: 1;
	padding: 0 24px 16px;
	text-align: center;
}

.bf-showcase__card-title {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--bf-text-primary);
}

.bf-showcase__card-tagline {
	font-size: 0.9em;
	color: var(--bf-text-secondary);
	margin: 0;
	line-height: 1.5;
}

.bf-showcase__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-top: 1px solid var(--bf-card-border);
	gap: 8px;
}

.bf-showcase__card-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.bf-showcase__card-category {
	font-size: 0.75em;
	color: var(--bf-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Card — feature count indicator */
.bf-showcase__card-features {
	font-size: 0.75em;
	color: var(--bf-text-muted);
	padding: 0 24px 12px;
	text-align: center;
}

/* Card — hover CTA */
.bf-showcase__card-hover-cta {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 24px;
	background: var(--bf-primary-color);
	color: #fff;
	text-align: center;
	font-size: 0.85em;
	font-weight: 500;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.bf-showcase__card:hover .bf-showcase__card-hover-cta {
	transform: translateY(0);
}

/* ── Badges ── */

.bf-showcase__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.5;
}

.bf-showcase__badge--active {
	background: rgba(22, 163, 74, 0.1);
	color: var(--bf-badge-active);
}

.bf-showcase__badge--beta {
	background: rgba(202, 138, 4, 0.1);
	color: var(--bf-badge-beta);
}

.bf-showcase__badge--coming-soon {
	background: rgba(234, 88, 12, 0.1);
	color: var(--bf-badge-coming-soon);
}

.bf-showcase__badge--deprecated {
	background: rgba(107, 114, 128, 0.1);
	color: var(--bf-badge-deprecated);
}

.bf-showcase__badge--free {
	background: rgba(22, 163, 74, 0.1);
	color: var(--bf-badge-free);
}

.bf-showcase__badge--paid {
	background: rgba(37, 99, 235, 0.1);
	color: var(--bf-badge-paid);
}

.bf-showcase__badge--freemium {
	background: rgba(124, 58, 237, 0.1);
	color: var(--bf-badge-freemium);
}

.bf-showcase__badge--included {
	background: rgba(22, 163, 74, 0.1);
	color: var(--bf-badge-active);
}

.bf-showcase__badge--beta {
	background: rgba(202, 138, 4, 0.1);
	color: var(--bf-badge-beta);
}

/* ── List View ── */

.bf-showcase__grid--list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bf-showcase__list-item {
	border-bottom: 1px solid var(--bf-card-border);
}

.bf-showcase__list-item:first-child {
	border-top: 1px solid var(--bf-card-border);
}

.bf-showcase__list-item:nth-child(even) {
	background: rgba(0, 0, 0, 0.02);
}

.bf-showcase__list-link {
	display: grid;
	grid-template-columns: 40px 1fr 2fr auto auto auto;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
}

.bf-showcase__list-link:hover {
	background: rgba(37, 99, 235, 0.03);
}

.bf-showcase__list-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bf-showcase__list-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.bf-showcase__list-icon .dashicons {
	color: #9ca3af;
	font-size: 24px;
}

.bf-showcase__list-name {
	font-weight: 600;
	color: var(--bf-text-primary);
}

.bf-showcase__list-tagline {
	color: var(--bf-text-secondary);
	font-size: 0.9em;
}

.bf-showcase__list-price {
	font-size: 0.9em;
	color: #374151;
	white-space: nowrap;
}

.bf-showcase__list-category {
	font-size: 0.75em;
	color: var(--bf-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── No Results ── */

.bf-showcase__no-results {
	text-align: center;
	padding: 48px 24px;
	color: var(--bf-text-secondary);
	font-size: 1.1em;
}

/* ── Buttons ── */

.bf-showcase__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	border-radius: var(--bf-card-radius);
	font-size: 0.9em;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.bf-showcase__btn--primary {
	background: var(--bf-primary-color);
	color: #ffffff;
}

.bf-showcase__btn--primary:hover {
	background: var(--bf-primary-dark);
	color: #ffffff;
}

.bf-showcase__btn--secondary {
	background: transparent;
	color: var(--bf-primary-color);
	border: 1px solid var(--bf-primary-color);
}

.bf-showcase__btn--secondary:hover {
	background: rgba(37, 99, 235, 0.05);
	color: var(--bf-primary-color);
}

.bf-showcase__btn--ghost {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.bf-showcase__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.bf-showcase__btn--lg {
	padding: 12px 32px;
	font-size: 1em;
	font-weight: 600;
	border-radius: 10px;
}

.bf-showcase__btn--full {
	width: 100%;
}

/* =========================================================
   MARKETING SINGLE PRODUCT PAGE
   ========================================================= */

/* ── 1. Hero Section ── */

.bf-hero {
	background: linear-gradient(135deg, var(--bf-hero-bg-start) 0%, var(--bf-hero-bg-end) 100%);
	color: #ffffff;
	padding: 80px 40px;
	position: relative;
	overflow: hidden;
}

.bf-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.bf-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 60px;
	position: relative;
	z-index: 1;
}

.bf-hero__content {
	flex: 1;
}

.bf-hero__content .bf-showcase__badge {
	margin-bottom: 16px;
}

.bf-hero__title {
	font-size: 2.8em;
	font-weight: 800;
	margin: 0 0 16px;
	color: #ffffff;
	line-height: 1.1;
}

.bf-hero__subtitle {
	font-size: 1.25em;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 20px;
	max-width: 600px;
	line-height: 1.6;
}

.bf-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
}

.bf-hero__meta .bf-hero__version,
.bf-hero__meta span.bf-showcase__badge.bf-showcase__badge--pricing {
	font-size: 14px !important;
	color: rgba(255, 255, 255, 0.6) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	padding: 5px 14px !important;
	border-radius: 20px !important;
	line-height: 18px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	white-space: nowrap !important;
	display: inline-block !important;
	vertical-align: middle !important;
	height: auto !important;
	box-sizing: border-box !important;
	margin: 0 !important;
}

.bf-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bf-hero__icon {
	flex-shrink: 0;
}

.bf-hero__icon-glow {
	width: 140px;
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 28px;
	box-shadow: 0 0 60px rgba(37, 99, 235, 0.3), 0 0 120px rgba(37, 99, 235, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.bf-hero__icon-glow img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.bf-hero__icon-glow--placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.bf-hero__icon-glow--placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

/* ── 2. Highlights Bar ── */

.bf-highlights {
	background: var(--bf-card-bg);
	border-bottom: 1px solid var(--bf-card-border);
	padding: 20px 40px;
}

.bf-highlights__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.bf-highlights__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	background: var(--bf-primary-light);
	color: var(--bf-primary-color);
	border-radius: 24px;
	font-size: 0.9em;
	font-weight: 600;
	white-space: nowrap;
}

/* ── 3-10. Section container ── */

.bf-section {
	padding: 72px 40px;
}

/* nth-child bg removed — using section-specific backgrounds instead */

.bf-section__inner {
	max-width: 900px;
	margin: 0 auto;
}

.bf-section__heading {
	font-size: 2.2em;
	font-weight: 800;
	color: var(--bf-text-primary);
	margin: 0 0 36px;
	text-align: center;
	letter-spacing: -0.02em;
}

.bf-section__prose {
	color: #374151;
	line-height: 1.8;
	font-size: 1.1em;
}

.bf-section__prose hr {
	display: none;
}

.bf-section__prose p {
	margin: 0 0 16px;
}

.bf-section__prose ul,
.bf-section__prose ol {
	padding-left: 24px;
	margin: 12px 0;
}

.bf-section__prose li {
	margin-bottom: 6px;
}

.bf-section__prose a {
	color: var(--bf-primary-color);
	text-decoration: underline;
}

.bf-section__prose code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
}

.bf-section__prose pre {
	background: #1f2937;
	color: #e5e7eb;
	padding: 16px;
	border-radius: var(--bf-card-radius);
	overflow-x: auto;
	font-size: 0.9em;
	line-height: 1.5;
}

.bf-section__prose pre code {
	background: transparent;
	padding: 0;
}

/* ── 4. Video Embed ── */

.bf-video {
	max-width: 800px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bf-video__placeholder {
	position: relative;
	padding-bottom: 56.25%;
	background: #1f2937;
	cursor: pointer;
}

.bf-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	cursor: pointer;
	transition: transform 0.2s;
	padding: 0;
}

.bf-video__play:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.bf-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Keep aspect ratio on load — iframe fills via position absolute */
.bf-video--loaded .bf-video__placeholder {
	position: relative;
}

/* ── 5. Features Grid ── */

.bf-section--features .bf-section__inner {
	max-width: 1100px;
}

.bf-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bf-feature-card {
	background: var(--bf-card-bg);
	border: 1px solid var(--bf-card-border);
	border-radius: 12px;
	padding: 28px;
	transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.bf-feature-card:hover {
	box-shadow: var(--bf-card-hover-shadow);
	transform: translateY(-2px);
	border-color: var(--bf-primary-color);
}

.bf-feature-card__icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--product-color, #2563eb) 10%, #fff) 0%, color-mix(in srgb, var(--product-color, #2563eb) 5%, #fff) 100%);
	border-radius: 14px;
	font-size: 24px;
	margin-bottom: 18px;
}

.bf-feature-card__icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: var(--product-color, #2563eb);
}

.bf-feature-card__title {
	font-size: 1.1em;
	font-weight: 700;
	color: var(--bf-text-primary);
	margin: 0 0 8px;
}

.bf-feature-card__desc {
	font-size: 0.95em;
	color: var(--bf-text-secondary);
	margin: 0;
	line-height: 1.6;
}

/* ── 6. How It Works / Steps ── */

.bf-steps {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 700px;
	margin: 0 auto;
}

.bf-step {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.bf-step__number {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bf-primary-color);
	color: #ffffff;
	border-radius: 50%;
	font-size: 1.2em;
	font-weight: 700;
}

.bf-step__content {
	flex: 1;
	padding-top: 4px;
}

.bf-step__title {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--bf-text-primary);
	margin: 0 0 6px;
}

.bf-step__desc {
	font-size: 0.95em;
	color: var(--bf-text-secondary);
	margin: 0;
	line-height: 1.6;
}

/* ── 7. Screenshots Gallery ── */

.bf-screenshots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.bf-screenshot {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--bf-card-border);
	transition: box-shadow 0.3s, transform 0.3s;
	cursor: pointer;
}

.bf-screenshot:hover {
	box-shadow: var(--bf-card-hover-shadow);
	transform: translateY(-2px);
}

.bf-screenshot img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── 8. Technical / Requirements ── */

.bf-tech-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.bf-tech-col .bf-section__heading {
	text-align: left;
	font-size: 1.3em;
	margin-bottom: 20px;
}

.bf-tech-col .bf-section__prose ul {
	list-style: none;
	padding-left: 0;
}

.bf-tech-col .bf-section__prose li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
}

.bf-tech-col .bf-section__prose li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	background: var(--bf-primary-light, #ede9fe);
	color: var(--bf-primary-color, #7c3aed);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

/* ── 9. Changelog Accordion ── */

.bf-changelog {
	max-width: 700px;
	margin: 0 auto;
	border: 1px solid var(--bf-card-border);
	border-radius: 12px;
	overflow: hidden;
}

.bf-changelog__item {
	border-bottom: 1px solid var(--bf-card-border);
}

.bf-changelog__item:last-child {
	border-bottom: none;
}

.bf-changelog__header {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 1em;
	text-align: left;
	color: var(--bf-text-primary);
	transition: background 0.2s;
	gap: 12px;
}

.bf-changelog__header:hover {
	background: var(--bf-section-bg-alt);
}

.bf-changelog__version {
	font-weight: 600;
	flex: 1;
}

.bf-changelog__date {
	font-size: 0.85em;
	color: var(--bf-text-muted);
}

.bf-changelog__chevron {
	display: flex;
	align-items: center;
	color: var(--bf-text-muted);
	transition: transform 0.2s;
}

.bf-changelog__item--open .bf-changelog__chevron {
	transform: rotate(180deg);
}

.bf-changelog__body {
	padding: 0 20px 16px;
}

.bf-changelog__body ul {
	margin: 0;
	padding-left: 20px;
}

.bf-changelog__body li {
	color: var(--bf-text-secondary);
	margin-bottom: 4px;
	font-size: 0.9em;
	line-height: 1.5;
}

/* ── 10. CTA Footer ── */

.bf-cta-footer {
	background: linear-gradient(135deg, var(--bf-hero-bg-start) 0%, var(--bf-hero-bg-end) 100%);
	color: #ffffff;
	padding: 80px 40px;
	text-align: center;
}

.bf-cta-footer__inner {
	max-width: 650px;
	margin: 0 auto;
}

.bf-cta-footer__title {
	font-size: 2.2em;
	font-weight: 800;
	margin: 0 0 16px;
	color: #ffffff;
}

.bf-cta-footer__subtitle {
	font-size: 1.15em;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 32px;
}

.bf-cta-footer .bf-section__prose,
.bf-cta-footer .bf-section__prose p,
.bf-cta-footer .bf-section__prose strong {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15em;
	line-height: 1.7;
	text-align: center;
}

.bf-cta-footer .bf-section__prose strong {
	color: #ffffff;
	font-size: 1.3em;
	display: block;
	margin-bottom: 8px;
}

.bf-cta-footer__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* ── Lightbox ── */

.bf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bf-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.bf-lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bf-lightbox__img {
	max-width: 100%;
	max-height: 85vh;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bf-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 32px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
}

.bf-lightbox__close:hover {
	color: rgba(255, 255, 255, 0.7);
}

.bf-lightbox__nav {
	position: absolute;
	top: 50%;
	left: -60px;
	right: -60px;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.bf-lightbox__prev,
.bf-lightbox__next {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	pointer-events: all;
	transition: background 0.2s;
}

.bf-lightbox__prev:hover,
.bf-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   LEGACY SINGLE PRODUCT (Fallback)
   ========================================================= */

.bf-showcase--single {
	max-width: 900px;
}

.bf-showcase--has-sidebar {
	max-width: 1200px;
}

.bf-showcase__detail-header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--bf-card-border);
}

.bf-showcase__detail-icon img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.bf-showcase__detail-info {
	flex: 1;
}

.bf-showcase__detail-title {
	font-size: 2em;
	margin: 0 0 8px;
	color: var(--bf-text-primary);
}

.bf-showcase__detail-tagline {
	font-size: 1.1em;
	color: var(--bf-text-secondary);
	margin: 0 0 12px;
}

.bf-showcase__detail-meta {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.bf-showcase__detail-version {
	font-size: 0.85em;
	color: var(--bf-text-muted);
}

.bf-showcase__detail-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ── Detail Content ── */

.bf-showcase__detail-content-wrap {
	display: flex;
	gap: 32px;
}

.bf-showcase--has-sidebar .bf-showcase__detail-body {
	flex: 1;
	min-width: 0;
}

.bf-showcase__detail-body {
	line-height: 1.7;
	color: #374151;
}

.bf-showcase__detail-body h2 {
	font-size: 1.5em;
	margin: 32px 0 12px;
	color: var(--bf-text-primary);
}

.bf-showcase__detail-body h3 {
	font-size: 1.2em;
	margin: 24px 0 8px;
	color: var(--bf-text-primary);
}

.bf-showcase__detail-body ul,
.bf-showcase__detail-body ol {
	padding-left: 24px;
	margin: 12px 0;
}

.bf-showcase__detail-body li {
	margin-bottom: 4px;
}

.bf-showcase__detail-body pre {
	background: #1f2937;
	color: #e5e7eb;
	padding: 16px;
	border-radius: var(--bf-card-radius);
	overflow-x: auto;
	font-size: 0.9em;
	line-height: 1.5;
}

.bf-showcase__detail-body code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
}

.bf-showcase__detail-body pre code {
	background: transparent;
	padding: 0;
}

.bf-showcase__detail-body blockquote {
	border-left: 4px solid var(--bf-primary-color);
	padding: 8px 16px;
	margin: 16px 0;
	color: var(--bf-text-secondary);
	background: rgba(37, 99, 235, 0.03);
}

.bf-showcase__detail-body hr {
	border: none;
	border-top: 1px solid var(--bf-card-border);
	margin: 24px 0;
}

.bf-showcase__detail-body a {
	color: var(--bf-primary-color);
	text-decoration: underline;
}

/* ── Screenshots (legacy) ── */

.bf-showcase__screenshots {
	margin-top: 32px;
}

.bf-showcase__screenshots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

.bf-showcase__screenshot-link {
	display: block;
	border-radius: var(--bf-card-radius);
	overflow: hidden;
	border: 1px solid var(--bf-card-border);
	transition: box-shadow 0.2s;
}

.bf-showcase__screenshot-link:hover {
	box-shadow: var(--bf-card-hover-shadow);
}

.bf-showcase__screenshot-img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Sidebar ── */

.bf-showcase__detail-sidebar {
	width: 300px;
	flex-shrink: 0;
}

.bf-showcase__sidebar-card {
	background: var(--bf-card-bg);
	border: 1px solid var(--bf-card-border);
	border-radius: var(--bf-card-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.bf-showcase__sidebar-card h3 {
	margin: 0 0 16px;
	font-size: 1em;
	color: var(--bf-text-primary);
}

.bf-showcase__sidebar-info {
	margin: 0;
}

.bf-showcase__sidebar-info dt {
	font-size: 0.8em;
	color: var(--bf-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 12px;
}

.bf-showcase__sidebar-info dt:first-child {
	margin-top: 0;
}

.bf-showcase__sidebar-info dd {
	margin: 2px 0 0;
	color: #374151;
}

.bf-showcase__sidebar-info dd a {
	color: var(--bf-primary-color);
	text-decoration: none;
}

.bf-showcase__sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--bf-card-border);
}

.bf-showcase__related-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bf-showcase__related-list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--bf-card-border);
}

.bf-showcase__related-list li:last-child {
	border-bottom: none;
}

.bf-showcase__related-list a {
	color: var(--bf-primary-color);
	text-decoration: none;
}

.bf-showcase__related-list a:hover {
	text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
	.bf-showcase__grid--grid {
		grid-template-columns: repeat(min(var(--bf-columns, 3), 3), 1fr);
	}

	.bf-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bf-showcase__grid--grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Hero responsive */
	.bf-hero {
		padding: 48px 24px;
	}

	.bf-hero__inner {
		flex-direction: column-reverse;
		text-align: center;
		gap: 32px;
	}

	.bf-hero__meta {
		justify-content: center;
	}

	.bf-hero__title {
		font-size: 2em;
	}

	.bf-hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.bf-hero__actions {
		justify-content: center;
	}

	.bf-hero__icon-glow {
		width: 100px;
		height: 100px;
	}

	.bf-hero__icon-glow img {
		width: 56px;
		height: 56px;
	}

	/* Sections */
	.bf-section {
		padding: 40px 24px;
	}

	.bf-section__heading {
		font-size: 1.5em;
	}

	.bf-features-grid {
		grid-template-columns: 1fr;
	}

	.bf-tech-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bf-tech-col .bf-section__heading {
		text-align: center;
	}

	/* Highlights */
	.bf-highlights {
		padding: 16px 24px;
	}

	.bf-highlights__pill {
		font-size: 0.8em;
		padding: 6px 14px;
	}

	/* CTA Footer */
	.bf-cta-footer {
		padding: 48px 24px;
	}

	.bf-cta-footer__title {
		font-size: 1.5em;
	}

	/* Legacy single */
	.bf-showcase__detail-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.bf-showcase__detail-meta {
		justify-content: center;
	}

	.bf-showcase__detail-actions {
		justify-content: center;
	}

	.bf-showcase__detail-content-wrap {
		flex-direction: column;
	}

	.bf-showcase__detail-sidebar {
		width: 100%;
	}

	.bf-showcase__list-link {
		grid-template-columns: 32px 1fr;
		gap: 8px;
	}

	.bf-showcase__list-tagline,
	.bf-showcase__list-category {
		display: none;
	}

	.bf-showcase__list-status,
	.bf-showcase__list-price {
		grid-column: 2;
	}

	.bf-showcase__filters {
		flex-direction: column;
		align-items: stretch;
	}

	.bf-showcase__view-toggle {
		margin-left: 0;
		justify-content: flex-end;
	}

	/* Lightbox */
	.bf-lightbox__nav {
		left: -10px;
		right: -10px;
	}
}

@media (max-width: 480px) {
	.bf-showcase__grid--grid {
		grid-template-columns: 1fr;
	}

	.bf-showcase {
		padding: 12px;
	}

	.bf-hero__title {
		font-size: 1.6em;
	}

	.bf-hero__subtitle {
		font-size: 1em;
	}

	.bf-screenshots-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Product Color Branding ── */

.bf-showcase--marketing .bf-hero {
	background: linear-gradient(135deg, var(--brand-hero-start, #18344A) 0%, color-mix(in srgb, var(--product-color, #2563eb) 25%, var(--brand-hero-end, #313E47)) 100%);
}

.bf-showcase--marketing .bf-showcase__btn--primary {
	background-color: var(--brand-primary, #FF8536);
	border-color: var(--brand-primary, #FF8536);
}

.bf-showcase--marketing .bf-showcase__btn--primary:hover {
	filter: brightness(0.9);
}

.bf-showcase--marketing .bf-cta-footer {
	background: linear-gradient(135deg, var(--brand-cta-start, #18344A) 0%, var(--brand-cta-end, #313E47) 100%);
}

.bf-showcase--marketing .bf-section__heading {
	position: relative;
	padding-bottom: 12px;
}

.bf-showcase--marketing .bf-section__heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	background: var(--product-color, #2563eb);
	border-radius: 2px;
}

.bf-showcase--marketing .bf-step__number {
	background: var(--product-color, #2563eb);
}

.bf-showcase--marketing .bf-highlights__pill {
	border-color: var(--product-accent, #93c5fd);
	color: var(--product-color, #2563eb);
}

/* ── Marketing Sections — Varied Backgrounds ── */

/* Problem: warm peach tint */
.bf-section--problem {
	background: #fef7f0;
}

.bf-section--problem .bf-section__inner {
	max-width: 1100px;
}

.bf-section--problem .bf-section__prose ul {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.bf-section--problem .bf-section__prose li {
	background: #fff;
	border: 1px solid #fde8d0;
	border-left: 4px solid var(--product-color, #FF8536);
	border-radius: 8px;
	padding: 20px 24px;
	font-size: 1em;
	line-height: 1.7;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Solution: white */
.bf-section--overview {
	background: #ffffff;
}

/* Video: dark navy */
.bf-section--video {
	background: linear-gradient(135deg, var(--brand-hero-start, #18344A) 0%, var(--brand-hero-end, #313E47) 100%);
}

.bf-section--video .bf-section__heading {
	color: #ffffff;
}

.bf-section--video .bf-section__heading::after {
	background: var(--brand-accent, #00B2DA);
}

.bf-section--video .bf-video__desc {
	color: rgba(255,255,255,0.7);
	text-align: center;
	max-width: 600px;
	margin: 0 auto 28px;
	font-size: 1.05em;
}

/* How It Works: white */
.bf-section--steps {
	background: #ffffff;
}

/* Features: very light gray */
.bf-section--features {
	background: #f8fafc;
}

/* Grouped features */
.bf-features-group__title {
	font-size: 1.2em;
	font-weight: 700;
	color: var(--product-color, #2563eb);
	margin: 36px 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--product-accent, #e5e7eb);
	text-align: left;
}

.bf-features-group__title:first-child {
	margin-top: 0;
}

/* Outcomes: white */
.bf-section--outcomes {
	background: #ffffff;
}

.bf-outcomes-list ul {
	list-style: none;
	padding: 0;
	max-width: 700px;
	margin: 0 auto;
}

.bf-outcomes-list li {
	position: relative;
	padding: 14px 0 14px 40px;
	font-size: 1.05em;
	line-height: 1.7;
	border-bottom: 1px solid #f3f4f6;
}

.bf-outcomes-list li:last-child {
	border-bottom: none;
}

.bf-outcomes-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 14px;
	width: 26px;
	height: 26px;
	background: var(--product-color, #16a34a);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

/* Audience: light cyan tint */
.bf-section--audience {
	background: #f0fafb;
}

.bf-section--audience .bf-section__inner {
	max-width: 1100px;
}

.bf-section--audience .bf-section__prose ul {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.bf-section--audience .bf-section__prose li {
	background: #fff;
	border: 1px solid #d1ecef;
	border-radius: 10px;
	padding: 20px 24px;
	font-size: 1em;
	line-height: 1.6;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Stack: white */
.bf-section--stack {
	background: #ffffff;
}

.bf-section--stack .bf-section__prose {
	max-width: 750px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.1em;
}

/* Why It Matters: light navy tint */
.bf-section--why {
	background: #f0f4f8;
}

.bf-section--why .bf-section__prose {
	max-width: 720px;
	margin: 0 auto;
	font-size: 1.15em;
	line-height: 1.9;
	color: var(--brand-text, #18344A);
	font-style: italic;
	border-left: 4px solid var(--product-color, #2563eb);
	padding-left: 28px;
}

/* Pricing / Beta: white */
.bf-section--pricing {
	background: #ffffff;
}

.bf-section--pricing .bf-section__prose {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.05em;
}

.bf-section--pricing .bf-section__prose strong {
	font-size: 1.15em;
	color: var(--brand-text, #18344A);
}

/* Custom content */
.bf-section--custom .bf-section__prose {
	max-width: 800px;
	margin: 0 auto;
}

/* FAQ Accordion */
.bf-section--faq {
	background: #ffffff;
}

.bf-faq {
	max-width: 800px;
	margin: 0 auto;
}

.bf-faq__item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 8px;
	overflow: hidden;
}

.bf-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 14px 18px;
	background: #f9fafb;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 1em;
	font-weight: 600;
	color: var(--bf-text-primary);
	transition: background 0.2s;
}

.bf-faq__question:hover {
	background: #f3f4f6;
}

.bf-faq__chevron {
	transition: transform 0.2s;
	flex-shrink: 0;
	margin-left: 12px;
}

.bf-faq__item--open .bf-faq__chevron {
	transform: rotate(180deg);
}

.bf-faq__answer {
	padding: 14px 18px;
	color: var(--bf-text-secondary);
	line-height: 1.6;
	font-size: 0.95em;
}

.bf-faq__answer p {
	margin: 0;
}

/* Pricing with Includes sidebar */
.bf-pricing-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.bf-pricing-main {
	flex: 1;
}

.bf-pricing-includes {
	width: 260px;
	flex-shrink: 0;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
}

.bf-pricing-includes__title {
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--bf-text-secondary);
	margin: 0 0 12px;
}

.bf-pricing-includes__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bf-pricing-includes__list li {
	padding: 6px 0;
	border-bottom: 1px solid #f3f4f6;
}

.bf-pricing-includes__list li:last-child {
	border-bottom: none;
}

.bf-pricing-includes__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--bf-text-primary);
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 500;
	transition: color 0.2s;
}

.bf-pricing-includes__list a:hover {
	color: var(--bf-primary-color);
}

.bf-pricing-includes__list .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Related Products grid */
.bf-section--related {
	background: #f8fafc;
}

.bf-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

@media (max-width: 768px) {
	.bf-pricing-layout {
		flex-direction: column;
	}

	.bf-pricing-includes {
		width: 100%;
	}

	.bf-related-grid {
		grid-template-columns: 1fr;
	}
}

/* Testimonials */
.bf-section--testimonials {
	background: #f0f4f8;
}

.bf-testimonials {
	position: relative;
	min-height: 120px;
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.bf-testimonial {
	display: none;
	animation: bfFadeIn 0.5s ease;
}

.bf-testimonial--active {
	display: block;
}

@keyframes bfFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.bf-testimonial__quote {
	font-size: 1.15em;
	font-style: italic;
	color: var(--bf-text-primary);
	line-height: 1.7;
	margin: 0 0 12px;
	padding: 0;
	border: none;
}

.bf-testimonial__name {
	font-size: 0.9em;
	font-weight: 600;
	color: var(--bf-text-secondary);
}

/* Dashicon in hero */
.bf-hero__icon-glow--dashicon .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: var(--product-accent, #93c5fd);
}
