/**
 * AI Auto-Blogger — Public/Frontend Styles
 *
 * Styles for post content sections appended by the generator:
 * Table of Contents, Agent CTA, Nearby Communities, Home Value CTA.
 *
 * @package AI_Auto_Blogger
 * @since   1.0.4
 */

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.aab-toc {
	background: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #6366F1;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.aab-toc__title {
	font-size: 16px;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 12px;
}

.aab-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aab-toc__list li {
	margin-bottom: 6px;
}

.aab-toc__list li:last-child {
	margin-bottom: 0;
}

.aab-toc__list a {
	color: #6366F1;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
	transition: color .2s ease;
}

.aab-toc__list a:hover {
	color: #4F46E5;
	text-decoration: underline;
}

/* ==========================================================================
   Agent CTA Closing Paragraph
   ========================================================================== */

.aab-agent-cta {
	background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
	border: 1px solid #C7D2FE;
	border-left: 4px solid #6366F1;
	border-radius: 8px;
	padding: 24px 28px;
	margin-top: 32px;
}

.aab-agent-cta__name {
	font-size: 18px;
	font-weight: 700;
	color: #312E81;
	margin: 0 0 8px;
}

.aab-agent-cta__text {
	font-size: 16px;
	line-height: 1.7;
	color: #1E293B;
	margin: 0 0 12px;
}

.aab-agent-cta__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	margin: 0;
}

.aab-agent-cta__contact a {
	color: #6366F1;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease;
}

.aab-agent-cta__contact a:hover {
	color: #4F46E5;
	text-decoration: underline;
}

.aab-agent-cta__contact .aab-agent-cta__sep {
	color: #94A3B8;
}

/* ==========================================================================
   Explore Nearby Communities
   ========================================================================== */

.aab-communities {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 24px 28px;
	margin-top: 28px;
}

.aab-communities h2 {
	font-size: 20px;
	font-weight: 700;
	color: #1A202C;
	margin: 0 0 16px;
}

.aab-communities ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aab-communities li {
	margin: 0;
}

.aab-communities a {
	display: inline-block;
	padding: 6px 16px;
	background: #EEF2FF;
	color: #6366F1;
	font-size: 14px;
	font-weight: 500;
	border-radius: 20px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.aab-communities a:hover {
	background: #6366F1;
	color: var(--base-3) !important;
}

/* ==========================================================================
   Home Value CTA
   ========================================================================== */

.aab-hv-cta {
	background: linear-gradient(135deg, #6366F1, #818CF8);
	border-radius: 12px;
	padding: 32px;
	margin-top: 28px;
	text-align: center;
	color: #fff;
}

.aab-hv-cta h2 {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.aab-hv-cta p {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
	margin: 0 0 20px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.aab-hv-cta p:last-child {
	margin-bottom: 0;
}

.aab-hv-cta__btn {
	display: inline-block;
	padding: 14px 32px;
	background: #fff;
	color: #6366F1;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.aab-hv-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	color: #4F46E5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 600px) {
	.aab-agent-cta {
		padding: 20px;
	}

	.aab-agent-cta__name {
		font-size: 16px;
	}

	.aab-agent-cta__contact {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.aab-agent-cta__contact .aab-agent-cta__sep {
		display: none;
	}

	.aab-communities {
		padding: 20px;
	}

	.aab-hv-cta {
		padding: 24px 20px;
	}

	.aab-hv-cta__btn {
		padding: 12px 24px;
		font-size: 15px;
	}
}
