/**
 * ContentForge AI - Frontend AEO & Schema Components Styling
 */

/* Direct Answer Box (AEO Snippet Target) */
.contentforge-aeo-box {
	margin: 28px 0;
	padding: 24px 28px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.contentforge-direct-answer {
	background: #f0fdf4;
	border-left: 6px solid #16a34a;
}

.contentforge-aeo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #15803d;
	margin-bottom: 12px;
}

.contentforge-direct-question {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #14532d;
}

.contentforge-direct-text p {
	font-size: 17px;
	line-height: 1.65;
	color: #166534;
	margin: 0;
}

/* Key Takeaways Card */
.contentforge-takeaways-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 6px solid #4f46e5;
}

.contentforge-takeaways-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.contentforge-takeaways-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: #1e1b4b;
}

.contentforge-takeaways-list {
	margin: 0;
	padding-left: 20px;
}

.contentforge-takeaways-list li {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.6;
	color: #334155;
}

/* Table of Contents - Integrated Gutenberg Block */
.wp-block-contentforge-toc-block {
	margin: 32px 0;
}

.contentforge-toc-container {
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	transition: all 0.25s ease;
}

.contentforge-toc-container.is-collapsed {
	padding-bottom: 16px;
}

.contentforge-toc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 19px;
	color: #0f172a;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.contentforge-toc-container.is-collapsed .contentforge-toc-header {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contentforge-toc-icon {
	font-size: 20px;
	line-height: 1;
}

.contentforge-toc-title {
	font-weight: 700;
	color: #0f172a;
}

.contentforge-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contentforge-toc-item {
	padding: 6px 0;
}

.contentforge-toc-num {
	display: inline-block;
	color: #4f46e5;
	font-weight: 700;
	margin-right: 8px;
	font-size: 13.5px;
}

.contentforge-toc-item a {
	color: #334155;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.contentforge-toc-item a:hover {
	color: #4f46e5;
	text-decoration: underline;
}

.contentforge-toc-subitem {
	padding-left: 22px;
}

.contentforge-toc-subitem .contentforge-toc-num {
	color: #6366f1;
	font-size: 12.5px;
}

.contentforge-toc-subitem a {
	font-size: 14px;
	color: #64748b;
}

/* FAQ Wrapper */
.contentforge-faq-wrapper {
	margin: 40px 0;
}

.contentforge-faq-wrapper h2 {
	margin-bottom: 24px;
}

.contentforge-faq-item {
	margin-bottom: 16px;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.contentforge-faq-question {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.contentforge-faq-answer p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #475569;
}

/* Responsive Table */
.contentforge-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
	overflow-x: auto;
	display: block;
}

.contentforge-table th {
	background: #0f172a;
	color: #ffffff;
	padding: 12px 16px;
	text-align: left;
	font-weight: 700;
}

.contentforge-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e2e8f0;
}

.contentforge-table tr:nth-child(even) td {
	background: #f8fafc;
}

/* Action Checklist */
.contentforge-checklist {
	background: #fdf4ff;
	border-left: 6px solid #c026d3;
	padding: 24px 28px;
	border-radius: 12px;
	margin: 32px 0;
}

.contentforge-checklist h3 {
	margin-top: 0;
	color: #701a75;
}

.contentforge-checklist ol {
	margin-bottom: 0;
	padding-left: 20px;
}

.contentforge-checklist li {
	margin-bottom: 8px;
	color: #4a044e;
}

/* TOC Toggle Button */
.contentforge-toc-toggle {
	background: none;
	border: none;
	font-size: 13px;
	color: #64748b;
	cursor: pointer;
	margin-left: auto;
	font-weight: 600;
	padding: 2px 6px;
}

.contentforge-toc-toggle:hover {
	color: #4f46e5;
}

/* Auto In-Site Internal Links */
.contentforge-internal-link {
	color: #4f46e5 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1.5px !important;
	text-underline-offset: 3px !important;
	transition: color 0.15s ease;
}

.contentforge-internal-link:hover {
	color: #3730a3 !important;
}

/* Related Posts Card */
.contentforge-related-posts-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 5px solid #06b6d4;
	padding: 20px 24px;
	border-radius: 10px;
	margin: 32px 0;
}

.related-posts-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0e7490;
	margin-bottom: 12px;
}

.related-posts-list {
	margin: 0;
	padding-left: 20px;
}

.related-posts-list li {
	margin-bottom: 6px;
	font-size: 15px;
}

/* Inline Images Block Styling */
.wp-block-image {
	margin: 32px 0;
}

.wp-block-image img {
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	max-width: 100%;
	height: auto;
}

.wp-block-image figcaption {
	text-align: center;
	font-size: 13px;
	color: #64748b;
	margin-top: 8px;
	font-style: italic;
}
