/**
 * AI Content Forge Pro — Public Styles
 * Beautiful rendering for AI-generated content: headings, tip boxes, FAQ accordion.
 * @package AI_Content_Forge_Pro
 */

/* =============================================
   Generated Content Wrapper
   Wrap your content area in .acfp-content for
   these styles to apply automatically.
============================================= */
.acfp-content,
.entry-content,
.post-content,
article .content {
	font-size: 17px;
	line-height: 1.75;
	color: #1a202c;
}

/* =============================================
   Heading Hierarchy — H1 → H4
============================================= */
.entry-content h1,
.acfp-content h1 {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
	border-bottom: 3px solid #6366f1;
	padding-bottom: 14px;
}

.entry-content h2,
.acfp-content h2 {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	line-height: 1.3;
	color: #1e293b;
	margin: 48px 0 16px;
	padding-left: 14px;
	border-left: 4px solid #6366f1;
	letter-spacing: -0.3px;
}

.entry-content h3,
.acfp-content h3 {
	font-size: clamp(18px, 2.5vw, 22px);
	font-weight: 700;
	line-height: 1.35;
	color: #334155;
	margin: 32px 0 12px;
	padding-left: 10px;
	border-left: 3px solid #a5b4fc;
}

.entry-content h4,
.acfp-content h4 {
	font-size: clamp(16px, 2vw, 18px);
	font-weight: 600;
	line-height: 1.4;
	color: #475569;
	margin: 24px 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 14px;
}

/* =============================================
   Paragraphs & Lists
============================================= */
.entry-content p,
.acfp-content p {
	margin: 0 0 20px;
	color: #374151;
}

.entry-content ul,
.acfp-content ul,
.entry-content ol,
.acfp-content ol {
	margin: 0 0 24px 0;
	padding-left: 28px;
}

.entry-content li,
.acfp-content li {
	margin-bottom: 10px;
	color: #374151;
	line-height: 1.7;
}

.entry-content ul li::marker {
	color: #6366f1;
}

.entry-content strong,
.acfp-content strong {
	font-weight: 700;
	color: #111827;
}

/* =============================================
   Tip / Callout Box
============================================= */
.acfp-tip-box {
	position: relative;
	background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
	border: 1px solid #bfdbfe;
	border-left: 5px solid #6366f1;
	border-radius: 0 12px 12px 0;
	padding: 20px 24px 20px 56px;
	margin: 32px 0;
	font-size: 16px;
	line-height: 1.65;
	color: #1e3a5f;
}

.acfp-tip-box::before {
	content: "💡";
	position: absolute;
	left: 18px;
	top: 20px;
	font-size: 22px;
	line-height: 1;
}

.acfp-tip-box p:last-child {
	margin-bottom: 0;
}

.acfp-tip-box strong {
	color: #1e40af;
}

/* =============================================
   FAQ Section
============================================= */
.acfp-faq-section {
	margin: 48px 0;
}

.acfp-faq-section > h2 {
	margin-bottom: 24px;
}

.acfp-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.acfp-faq-item:hover {
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.10);
	border-color: #c7d2fe;
}

.acfp-faq-item.open {
	border-color: #6366f1;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

/* FAQ question trigger */
.acfp-faq-item h3,
.acfp-faq-item .acfp-faq-question {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px !important;
	margin: 0 !important;
	cursor: pointer;
	background: #f8fafc;
	font-weight: 600;
	font-size: 16px;
	color: #1e293b;
	user-select: none;
	gap: 16px;
	border-left: none !important; /* override h3 border */
	border-bottom: 1px solid transparent;
	transition: background 0.15s;
}

.acfp-faq-item.open h3,
.acfp-faq-item.open .acfp-faq-question {
	background: #eef2ff;
	border-bottom-color: #e0e7ff;
	color: #4338ca;
}

/* +/× toggle icon */
.acfp-faq-item h3::after,
.acfp-faq-item .acfp-faq-question::after {
	content: '+';
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	background: #6366f1;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.25s ease, background 0.15s;
}

.acfp-faq-item.open h3::after,
.acfp-faq-item.open .acfp-faq-question::after {
	transform: rotate(45deg);
	background: #4f46e5;
}

/* FAQ answer panel */
.acfp-faq-item p,
.acfp-faq-item .acfp-faq-answer {
	padding: 0 22px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, padding 0.25s ease;
	color: #374151;
	font-size: 15.5px;
	line-height: 1.7;
}

.acfp-faq-item.open p,
.acfp-faq-item.open .acfp-faq-answer {
	max-height: 800px;
	padding: 16px 22px 20px;
}

/* =============================================
   Reading Time Badge
============================================= */
.acfp-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #64748b;
	background: #f1f5f9;
	padding: 4px 12px;
	border-radius: 99px;
	margin-bottom: 24px;
	font-weight: 500;
}

.acfp-reading-time::before {
	content: "🕐";
	font-size: 13px;
}

/* =============================================
   Internal Link Placeholder (editor hint)
============================================= */
.acfp-internal-link-placeholder {
	background: #fef9c3;
	border: 1px dashed #f59e0b;
	border-radius: 4px;
	padding: 1px 7px;
	font-size: 12px;
	color: #92400e;
	font-style: italic;
	cursor: help;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 640px) {
	.acfp-tip-box {
		padding: 16px 16px 16px 48px;
	}

	.acfp-faq-item h3,
	.acfp-faq-item .acfp-faq-question {
		font-size: 14px;
		padding: 14px 16px !important;
	}

	.entry-content h2,
	.acfp-content h2 {
		margin-top: 32px;
	}
}

/* =============================================
   AI-Generated Content Block
   Appended below existing page content.
   Never touches content above it.
============================================= */
.acfp-ai-content-block {
	margin-top: 48px;
	border-top: 2px dashed #e2e8f0;
	padding-top: 36px;
}

.acfp-ai-content-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	padding: 10px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 12px;
}

.acfp-ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.acfp-ai-meta {
	color: #94a3b8;
	font-size: 11px;
	font-style: italic;
}

.acfp-ai-content-body {
	/* Body inherits all page typography naturally */
}

/* Responsive */
@media (max-width: 640px) {
	.acfp-ai-content-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.acfp-ai-content-block {
		margin-top: 32px;
		padding-top: 24px;
	}
}
