/* Added on top of the original celeb.css — purely additive polish for the
   AI tool pages. Does not modify any existing selector/behavior. */

/* ---- Scroll reveal for static content sections ---- */
/* No will-change here: a fixed-position element inside a transformed/
   will-change ancestor gets confined to that ancestor's box instead of the
   viewport — that broke the full-screen analyze overlay, which lives inside
   the #celeb_tool section on tool pages. */
.ta-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.ta-reveal.ta-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.ta-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Staggered pop-in for dynamically rendered result cards/lists ---- */
@keyframes ta-pop-in {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
.ta-pop {
	animation: ta-pop-in .5s cubic-bezier(.22,1,.36,1) both;
}
@media (prefers-reduced-motion: reduce) {
	.ta-pop { animation: none; }
}

/* ---- Extra hover polish (layered on top of existing celeb.css transitions) ---- */
.celeb-btn-primary:hover,
.celeb-analyze-btn:hover,
.w-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(124, 58, 237, .28);
}
.celeb-drop-zone {
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.celeb-drop-zone:hover {
	transform: translateY(-2px) scale(1.005);
	box-shadow: 0 12px 28px rgba(124, 58, 237, .12);
}
.celeb-matches-list > * {
	transition: transform .25s ease, box-shadow .25s ease;
}
.celeb-matches-list > *:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
}

/* ---- Animated number ticks for stat rows ---- */
.ta-count {
	display: inline-block;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
   Modern blog design — used only on the blog listing page and
   the long-form article pages. Tool pages / utility pages are
   untouched and keep the original ported theme styling.
   ============================================================ */

:root {
	--bm-accent: #7C3AED;
	--bm-accent-2: #DB2777;
	--bm-gradient: linear-gradient(90deg, var(--bm-accent), var(--bm-accent-2));
	--bm-ink: #1a1d29;
	--bm-muted: #5b6172;
	--bm-border: #ececf3;
	--bm-surface: #ffffff;
}

.bm-page {
	max-width: 880px;
	margin: 0 auto;
	padding: 48px 20px 96px;
	color: var(--bm-ink);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Listing page ---------- */
.bm-hero {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 56px;
}
.bm-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: linear-gradient(90deg, rgba(124,58,237,.12), rgba(219,39,119,.12));
	color: var(--bm-accent);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.bm-hero h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	margin: 0 0 14px;
	background: var(--bm-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.bm-hero p {
	color: var(--bm-muted);
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0 0 10px;
}

.bm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}
.bm-card {
	background: var(--bm-surface);
	border: 1px solid var(--bm-border);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.bm-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(30, 27, 75, .12);
	border-color: transparent;
}
.bm-card-img {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f0fb;
}
.bm-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.bm-card:hover .bm-card-img img {
	transform: scale(1.06);
}
.bm-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.bm-card-body h2 {
	font-size: 1.08rem;
	line-height: 1.4;
	margin: 0 0 10px;
	font-weight: 650;
	color: var(--bm-ink);
}
.bm-card-body p {
	font-size: .92rem;
	color: var(--bm-muted);
	line-height: 1.6;
	margin: 0 0 16px;
	flex: 1;
}
.bm-card-cta {
	font-size: .88rem;
	font-weight: 600;
	color: var(--bm-accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bm-card:hover .bm-card-cta {
	color: var(--bm-accent-2);
}
.bm-card-cta svg {
	transition: transform .25s ease;
}
.bm-card:hover .bm-card-cta svg {
	transform: translateX(4px);
}

/* ---------- Article page ---------- */
.bm-article-hero {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 36px;
}
.bm-article-hero h1 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 20px;
	color: var(--bm-ink);
}
.bm-article-hero-img {
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(30, 27, 75, .16);
	margin-bottom: 8px;
}
.bm-article-hero-img img {
	width: 100%;
	display: block;
}

.bm-article-body {
	max-width: 720px;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #2b2f3a;
}
.bm-article-body h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 2.4em 0 .7em;
	padding-left: 14px;
	border-left: 4px solid transparent;
	border-image: var(--bm-gradient) 1;
	color: var(--bm-ink);
}
.bm-article-body h2:first-child { margin-top: 0; }
.bm-article-body h3 {
	font-size: 1.18rem;
	font-weight: 650;
	margin: 1.8em 0 .6em;
	color: var(--bm-ink);
}
.bm-article-body p { margin: 0 0 1.2em; }
.bm-article-body ul, .bm-article-body ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}
.bm-article-body li { margin-bottom: .5em; }
.bm-article-body li::marker { color: var(--bm-accent); }
.bm-article-body a { color: var(--bm-accent); text-decoration: underline; text-underline-offset: 2px; }
.bm-article-body strong { color: var(--bm-ink); }
.bm-article-body em {
	display: block;
	background: linear-gradient(90deg, rgba(124,58,237,.06), rgba(219,39,119,.06));
	border-left: 3px solid var(--bm-accent);
	padding: 10px 16px;
	border-radius: 0 10px 10px 0;
	font-style: normal;
	color: var(--bm-muted);
	margin: 0 0 1.4em;
}

.bm-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.8em;
	font-size: .95rem;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 0 var(--bm-border);
}
.bm-article-body th {
	background: var(--bm-gradient);
	color: #fff;
	text-align: left;
	padding: 12px 16px;
	font-weight: 600;
}
.bm-article-body td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--bm-border);
}
.bm-article-body tr:nth-child(even) td { background: #faf9fd; }

/* Ad slots injected inline in the article copy */
.bm-article-body .stard-ad {
	margin: 2em auto !important;
	padding: 10px 0 4px;
	border-top: 1px dashed var(--bm-border);
	border-bottom: 1px dashed var(--bm-border);
	position: relative;
}
.bm-article-body .stard-ad::before {
	content: "Advertisement";
	display: block;
	text-align: center;
	font-size: .68rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #b7bac6;
	margin-bottom: 8px;
}

/* ---------- FAQ accordion (native <details>) ---------- */
.bm-faq { max-width: 720px; margin: 3rem auto 0; }
.bm-faq h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1em;
	color: var(--bm-ink);
}
.bm-faq-item {
	border: 1px solid var(--bm-border);
	border-radius: 14px;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bm-surface);
}
.bm-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 46px 16px 20px;
	font-weight: 600;
	position: relative;
	color: var(--bm-ink);
}
.bm-faq-item summary::-webkit-details-marker { display: none; }
.bm-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	color: var(--bm-accent);
	transition: transform .25s ease;
}
.bm-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bm-faq-item-body {
	padding: 0 20px 18px;
	color: var(--bm-muted);
	line-height: 1.7;
	font-size: .97rem;
}
.bm-faq-item-body p:first-child { margin-top: 0; }
.bm-faq-item-body p:last-child { margin-bottom: 0; }

/* ---------- Share row ---------- */
.bm-share {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 3rem 0;
}
.bm-share a {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #f4f2fa;
	color: var(--bm-accent);
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.bm-share a:hover {
	background: var(--bm-gradient);
	color: #fff;
	transform: translateY(-3px);
}

/* ---------- Related articles ---------- */
.bm-related { max-width: 880px; margin: 4rem auto 0; }
.bm-related > h2 {
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 28px;
}

@media (max-width: 640px) {
	.bm-page { padding: 32px 16px 64px; }
	.bm-article-body { font-size: 1rem; }
}

/* ============================================================
   Modern header/footer — clean, flat, single-background design
   (inspired by a reference SaaS header/footer the client shared).
   Same markup, same links, same logo/menu structure — just a
   simplified visual treatment layered on top of the existing
   Impreza classes.
   ============================================================ */

/* ---------- Header ----------
   The theme's original header was built as a translucent floating
   pill meant to sit OVER a hero background image (multiple stacked
   semi-transparent + blurred layers: outer header, subheader, and
   the inner "hwrapper" pill). Without a hero image behind it that
   reads as a messy stack of boxes, so it's flattened to one clean
   layer here, and its oversized fixed height (120px, ~48px of which
   was pure dead space around the 72px logo/nav row) is trimmed down. */
#page-header.l-header {
	/* Sticky (not fixed) reserves its own space in normal flow, so the page
	   never needs a large artificial padding-top to avoid the header
	   covering content — it still stays visible while scrolling, though. */
	position: sticky !important;
	top: 0 !important;
	z-index: 500;
	background: #ffffff !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: 0 1px 2px rgba(16, 14, 40, 0.06);
}
#page-header .l-subheader.at_middle {
	min-height: auto !important;
	height: auto !important;
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}
#page-header .w-hwrapper.ush_hwrapper_1 {
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* The header no longer floats fixed/transparent over the page (see above),
   so content just needs a small breathing gap, not a large offset to clear
   a floating bar. */
.l-main {
	padding-top: 10px !important;
}

#page-header .w-image.ush_image_1 img {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#page-header .w-image.ush_image_1:hover img {
	transform: scale(1.06) rotate(-2deg);
}

#page-header .w-nav-anchor.level_1 {
	position: relative;
	transition: color 0.2s ease;
}
#page-header .w-nav-anchor.level_1 > .w-nav-title::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #7c3aed, #db2777);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
#page-header .w-nav-anchor.level_1:hover > .w-nav-title::after,
#page-header li.current-menu-item > .w-nav-anchor.level_1 > .w-nav-title::after {
	transform: scaleX(1);
}

#page-header .w-nav-list.level_2 {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 45px -12px rgba(30, 27, 75, 0.28);
}

#page-header .w-btn.us-btn-style_1 {
	box-shadow: 0 4px 10px -2px rgba(124, 58, 237, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page-header .w-btn.us-btn-style_1:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -2px rgba(124, 58, 237, 0.45);
}

/* ---------- Footer ---------- */
#page-footer.l-footer {
	background: #faf9fd !important;
	border-top: 1px solid #ece9f4;
}

#page-footer .us_custom_68a57e98 .w-text-value {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #1a1d29;
}

#page-footer .w-text.has_text_color a {
	display: inline-block;
	transition: color 0.2s ease, transform 0.2s ease;
}
#page-footer .w-text.has_text_color a:hover {
	color: #db2777 !important;
	transform: translateX(3px);
}

#page-footer .w-socials-item-link {
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
#page-footer .w-socials-item-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px -4px rgba(124, 58, 237, 0.35);
}

#page-footer .w-image img {
	transition: transform 0.3s ease;
}
#page-footer .w-hwrapper.has-link:hover .w-image img {
	transform: rotate(-4deg) scale(1.05);
}
