/*
 * SPS-specifikus stílusok: napfény a háttérben, hero, jegyzetlapos kép.
 * Pontos értékek: design/sps_desktop.html és design/sps_mobile.html
 */

/* --- Napfény és fénysávok a jobb felső sarokban --- */
.wp-site-blocks {
	position: relative;
	overflow-x: clip;
}

.wp-site-blocks > * {
	position: relative;
	z-index: 1;
}

/* A fejléc (és a lenyíló mobilmenü) mindig a tartalom fölött */
.wp-site-blocks > header {
	z-index: 50;
}

.wp-site-blocks::before,
.wp-site-blocks::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

.wp-site-blocks::before {
	width: 700px;
	height: 700px;
	right: -330px;
	top: -260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(247, 205, 130, 0.55) 0%, rgba(240, 210, 160, 0.25) 35%, rgba(247, 241, 230, 0) 65%);
}

.wp-site-blocks::after {
	right: 0;
	top: 0;
	width: 390px;
	height: 520px;
	opacity: 0.6;
	background: repeating-linear-gradient(125deg, rgba(255, 236, 196, 0) 0, rgba(255, 236, 196, 0) 40px, rgba(255, 236, 196, 0.35) 40px, rgba(255, 236, 196, 0.35) 72px);
	-webkit-mask-image: radial-gradient(circle at 100% 0%, #000 35%, transparent 75%);
	mask-image: radial-gradient(circle at 100% 0%, #000 35%, transparent 75%);
}

@media (min-width: 1024px) {
	.wp-site-blocks::before {
		width: 1200px;
		height: 1200px;
		right: -420px;
		top: -420px;
	}

	.wp-site-blocks::after {
		width: 700px;
		height: 700px;
		background: repeating-linear-gradient(125deg, rgba(255, 236, 196, 0) 0, rgba(255, 236, 196, 0) 60px, rgba(255, 236, 196, 0.35) 60px, rgba(255, 236, 196, 0.35) 110px);
	}
}

/* --- Hero --- */
:is(.beai-landing, .editor-styles-wrapper) .beai-sps-hero {
	margin-block-start: 32px;
	display: flex;
	flex-direction: column;
}

.beai-sps-hero__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.beai-hero-title {
	font-size: var(--beai-h1);
}

.beai-hero-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 0;
}

.beai-hero-cta .wp-block-button,
.beai-hero-cta .wp-block-button__link {
	width: 100%;
}

.beai-hero-cta .wp-block-button__link {
	padding: 16px;
	font-size: 16px;
}

.beai-hero-note {
	font-size: 13px;
	text-align: center;
	color: var(--beai-text-subtle);
}

@media (min-width: 768px) {
	.beai-hero-cta {
		flex-direction: row;
		align-items: center;
		gap: 18px;
		margin-top: 6px !important;
	}

	.beai-hero-cta .wp-block-button,
	.beai-hero-cta .wp-block-button__link {
		width: auto;
	}

	.beai-hero-cta .wp-block-button__link {
		padding: 16px 26px;
	}

	.beai-hero-note {
		font-size: 14px;
		text-align: left;
	}
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-sps-hero {
		margin-block-start: 60px;
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}

	.beai-sps-hero__text {
		flex: 0 0 620px;
		gap: 22px;
	}

	.beai-sps-hero .is-style-lead {
		max-width: 560px;
	}
}

/* --- Jegyzetlapos kép (mobil alapértékek, desktop lent) --- */
.beai-notebook-scene {
	position: relative;
	width: 100%;
	max-width: 390px;
	height: 330px;
	margin: 26px auto 0 !important;
}

.beai-notebook-scene .beai-plant {
	position: absolute;
	right: -10px;
	top: 0;
	width: 110px;
	height: 170px;
}

.beai-notebook-scene .beai-notebook {
	position: absolute;
	left: 14px;
	top: 16px;
	box-sizing: border-box;
	width: 250px;
	height: 260px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 30px 26px;
	background-color: #FFFCF5;
	background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 38px, #EFE4CF 38px, #EFE4CF 39px);
	border: 1px solid #E6DAC3;
	border-radius: 6px;
	box-shadow: 0 26px 50px rgba(90, 62, 20, 0.22), 0 3px 8px rgba(90, 62, 20, 0.08);
	transform: rotate(-5deg);
}

.beai-notebook::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #E9B8A6;
}

.beai-notebook__item {
	font-family: var(--wp--preset--font-family--hand);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--beai-hand);
}

.beai-notebook__item .beai-check {
	color: var(--beai-accent);
}

.beai-notebook__note {
	margin-top: 6px !important;
	font-family: var(--wp--preset--font-family--hand);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--beai-hand-3);
}

.beai-notebook-scene .beai-pen {
	position: absolute;
	left: 180px;
	top: 240px;
	z-index: 1;
	width: 130px;
	height: 9px;
	border-radius: 5px;
	background: linear-gradient(90deg, #2A241C 0%, #4A3E30 85%, #C9A45C 85%, #C9A45C 100%);
	box-shadow: 0 6px 10px rgba(60, 40, 10, 0.25);
	transform: rotate(-28deg);
}

.beai-notebook-scene .beai-sticky-note {
	position: absolute;
	right: 0;
	top: 170px;
	z-index: 2;
	box-sizing: border-box;
	width: 150px;
	padding: 12px 14px;
	background: #FFF6E3;
	border: 1px solid #EAD9B6;
	border-radius: 4px;
	box-shadow: 0 12px 24px rgba(90, 62, 20, 0.18);
	transform: rotate(4deg);
	font-family: var(--wp--preset--font-family--hand);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--beai-hand-2);
}

@media (min-width: 1024px) {
	.beai-notebook-scene {
		flex: 1 1 auto;
		max-width: none;
		height: 470px;
		margin: 0 !important;
	}

	.beai-notebook-scene .beai-plant {
		right: -20px;
		top: -10px;
		width: 170px;
		height: 260px;
	}

	.beai-notebook-scene .beai-notebook {
		left: 20px;
		top: 36px;
		width: 360px;
		height: 380px;
		gap: 14px;
		padding: 46px 40px;
		background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 45px, #EFE4CF 45px, #EFE4CF 46px);
		box-shadow: 0 34px 70px rgba(90, 62, 20, 0.22), 0 4px 10px rgba(90, 62, 20, 0.08);
	}

	.beai-notebook::before {
		left: 26px;
	}

	.beai-notebook__item {
		font-size: 40px;
	}

	.beai-notebook__note {
		margin-top: 10px !important;
		font-size: 26px;
	}

	.beai-notebook-scene .beai-pen {
		left: 280px;
		top: 330px;
		width: 190px;
		height: 12px;
		border-radius: 6px;
		box-shadow: 0 8px 14px rgba(60, 40, 10, 0.25);
	}

	.beai-notebook-scene .beai-sticky-note {
		right: 10px;
		top: 250px;
		width: 190px;
		padding: 18px;
		font-size: 24px;
		line-height: 1.2;
		box-shadow: 0 16px 30px rgba(90, 62, 20, 0.18);
	}
}

/* --- A hero alatti sávok térközei a referencia szerint --- */
:is(.beai-landing, .editor-styles-wrapper) .beai-steps {
	margin-block-start: 18px;
}

:is(.beai-landing, .editor-styles-wrapper) .beai-blockers {
	margin-block-start: 32px;
}

@media (min-width: 1024px) {
	:is(.beai-landing, .editor-styles-wrapper) .beai-steps {
		margin-block-start: 52px;
	}

	:is(.beai-landing, .editor-styles-wrapper) .beai-blockers {
		margin-block-start: 44px;
	}
}

/* ------------------------------------------------------------------
 * Animációk – SPS
 * ------------------------------------------------------------------ */

/* A napfény enyhén pulzál (9 s) */
@keyframes beai-sun {
	from { opacity: 0.8; }
	to { opacity: 1; }
}

.wp-site-blocks::before {
	animation: beai-sun 9s ease-in-out infinite alternate;
}

/* A pipa kézírásszerűen kirajzolódik: egy papírszínű takaró húzódik vissza balról jobbra */
.beai-notebook__item .beai-check {
	position: relative;
	display: inline-block;
}

.beai-motion .beai-notebook__item .beai-check::after {
	content: "";
	position: absolute;
	inset: -2px -4px;
	background: #FFFCF5;
	transform-origin: right center;
	animation: beai-uncover 0.9s ease-in-out 0.8s both;
}

@keyframes beai-uncover {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}
