/* ============================================================
 * SERP Booster — Frontend (FAQ + HowTo visible HTML)
 * Light theme, pure CSS accordion, mobile-first, accessible.
 * ========================================================== */

.serpb-front {
	margin: 32px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
	line-height: 1.6;
}

.serpb-front-block {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.serpb-front-block--howto {
	border-left: 4px solid #14b8a6;
}

.serpb-front-block--faq {
	border-left: 4px solid #6366f1;
}

.serpb-front-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.01em;
}

.serpb-front-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	background: #f3f4f6;
	border-radius: 8px;
	font-size: 18px;
}

/* ---------------- FAQ ACCORDION ---------------- */

.serpb-front-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.serpb-front-item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fafafa;
	transition: background 0.15s, border-color 0.15s;
}

.serpb-front-item[open] {
	background: #ffffff;
	border-color: #c7d2fe;
}

.serpb-front-q {
	cursor: pointer;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
	font-size: 15px;
	color: #1f2937;
	list-style: none;
	user-select: none;
}

.serpb-front-q::-webkit-details-marker {
	display: none;
}

.serpb-front-q-text {
	flex: 1;
}

.serpb-front-chevron {
	color: #6366f1;
	font-size: 18px;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.serpb-front-item[open] .serpb-front-chevron {
	transform: rotate(180deg);
}

.serpb-front-a {
	padding: 0 18px 16px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
}

.serpb-front-a p {
	margin: 0 0 10px;
}
.serpb-front-a p:last-child { margin-bottom: 0; }

/* ---------------- HOWTO STEPS ---------------- */

.serpb-front-howto-meta {
	margin: 0 0 12px;
	color: #4b5563;
	font-size: 14px;
}

.serpb-front-howto-needs {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 18px;
	font-size: 13px;
	color: #4b5563;
}

.serpb-front-howto-needs > div {
	margin: 4px 0;
}

.serpb-front-howto-needs strong {
	color: #1f2937;
	margin-right: 4px;
}

.serpb-front-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: serpb-step;
}

.serpb-front-step {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid #f3f4f6;
}

.serpb-front-step:first-child {
	border-top: none;
	padding-top: 4px;
}

.serpb-front-step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(20, 184, 166, 0.3);
}

.serpb-front-step-body {
	flex: 1;
	min-width: 0;
}

.serpb-front-step-name {
	font-weight: 600;
	font-size: 15px;
	color: #1f2937;
	margin-bottom: 4px;
}

.serpb-front-step-text {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

.serpb-front-step-text p {
	margin: 0 0 8px;
}
.serpb-front-step-text p:last-child { margin-bottom: 0; }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 600px) {
	.serpb-front-block {
		padding: 18px 16px;
	}
	.serpb-front-title {
		font-size: 18px;
	}
	.serpb-front-title-icon {
		width: 30px; height: 30px;
		font-size: 16px;
	}
	.serpb-front-q {
		padding: 12px 14px;
		font-size: 14px;
	}
	.serpb-front-step-num {
		width: 28px; height: 28px;
		font-size: 12px;
	}
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	.serpb-front-chevron,
	.serpb-front-item { transition: none !important; }
}
