/**
 * BaeWP Intelligence Engine — Frontend Styles
 * Scoped to .baewp-* classes to avoid theme conflicts.
 */

/* ── Affiliate Disclosure Block ──────────────────────────────────────────── */
.baewp-disclosure {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-left: 4px solid #0369a1;
	border-radius: 0 6px 6px 0;
	padding: 10px 14px;
	font-size: 13px;
	color: #0c4a6e;
	margin-bottom: 24px;
	line-height: 1.5;
}

/* ── Comparison Table ────────────────────────────────────────────────────── */
.baewp-compare-wrap {
	overflow-x: auto;
	margin: 32px 0;
}

.baewp-compare-wrap h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 18px;
}

.baewp-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 480px;
}

.baewp-compare-table th {
	background: linear-gradient(135deg, #1e3a5f 0%, #c0392b 100%);
	color: #fff;
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}

.baewp-compare-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.baewp-compare-table tbody tr:last-child td {
	border-bottom: none;
}

.baewp-compare-table tbody tr:hover {
	background: #f9f9f9;
}

.baewp-compare-table .baewp-provider-name {
	font-weight: 600;
}

.baewp-compare-table .baewp-cta {
	display: inline-block;
	padding: 7px 14px;
	background: #0073aa;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s;
}

.baewp-compare-table .baewp-cta:hover {
	background: #005a87;
}

/* ── Related News Section ────────────────────────────────────────────── */
.baewp-related-coverage h3 {
	font-size: 16px;
	margin-bottom: 10px;
	border-bottom: 2px solid #c0392b;
	padding-bottom: 6px;
	color: #1e293b;
}

.baewp-related-coverage ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.baewp-related-coverage ul li {
	padding: 6px 0.5rem;
	border-radius: 4px;
	transition: background .12s;
}

.baewp-related-coverage ul li:hover {
	background: #f8fafc;
}

.baewp-related-coverage ul li a {
	color: #0073aa;
	text-decoration: none;
}

.baewp-related-coverage ul li a:hover {
	text-decoration: underline;
}

/* ── Article Meta (byline area) ──────────────────────────────────────────── */
.baewp-article-meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #888;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.baewp-article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ── Category Tag ────────────────────────────────────────────────────────── */
.baewp-category-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-right: 4px;
}

.baewp-category-core {
	background: #eaf4fd;
	color: #0073aa;
}

.baewp-category-security {
	background: #fdf3f2;
	color: #c0392b;
}

.baewp-category-community {
	background: #f0fdf4;
	color: #155724;
}

.baewp-category-hosting {
	background: #fef9ec;
	color: #856404;
}

.baewp-category-industry {
	background: #f3f0ff;
	color: #5b21b6;
}

.baewp-category-jobs {
	background: #f0f9ff;
	color: #0369a1;
}

/* ── Jobs Post ───────────────────────────────────────────────────────────── */
.baewp-jobs-listing {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.baewp-jobs-listing h4 {
	margin: 0 0 6px;
	font-size: 15px;
}

.baewp-jobs-listing .baewp-job-meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
}

.baewp-jobs-listing .baewp-job-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.baewp-job-tech-tag {
	background: #eaf4fd;
	color: #0073aa;
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 500;
}

/* ── Affiliate link hover ─────────────────────────────────────────────────── */
a[data-baewp-provider] {
	border-bottom: 1px dashed currentColor;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTENT QUALITY BLOCKS
   All styles required for AdSense E-E-A-T compliance and reading experience.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Key Takeaways Box ───────────────────────────────────────────────────── */
.baewp-key-takeaways {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-left: 4px solid #2563eb;
	border-radius: 0 8px 8px 0;
	padding: 20px 24px;
	margin: 28px 0;
	position: relative;
}

.baewp-key-takeaways::before {
	content: 'Key Takeaways';
	position: absolute;
	top: -11px;
	left: 16px;
	background: #2563eb;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 10px;
	letter-spacing: .4px;
	font-style: normal;
}

.baewp-key-takeaways h2 {
	font-size: 13px !important;
	font-weight: 700;
	color: #1e40af !important;
	margin: 4px 0 12px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	text-transform: uppercase;
	letter-spacing: .6px;
}

.baewp-key-takeaways ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.baewp-key-takeaways ul li {
	padding: 6px 0 6px 24px;
	position: relative;
	font-size: 14.5px;
	line-height: 1.55;
	color: #1a1a2e;
	border-bottom: 1px solid rgba(37,99,235,.1);
}

.baewp-key-takeaways ul li:last-child {
	border-bottom: none;
}

.baewp-key-takeaways ul li::before {
	content: '→';
	position: absolute;
	left: 4px;
	color: #2563eb;
	font-weight: 700;
}

/* ── Table of Contents ───────────────────────────────────────────────────── */
.baewp-toc {
	background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 28px 0;
	display: inline-block;
	min-width: 260px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 2px 8px rgba(3,105,161,0.08);
}

.baewp-toc__title {
	font-size: 13px !important;
	font-weight: 700;
	color: #444;
	text-transform: uppercase;
	letter-spacing: .6px;
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: none !important;
}

.baewp-toc__list {
	margin: 0;
	padding-left: 20px;
}

.baewp-toc__list li {
	font-size: 14px;
	line-height: 1.6;
	margin: 2px 0;
}

.baewp-toc__list li a {
	color: #0073aa;
	text-decoration: none;
	transition: color .15s;
}

.baewp-toc__list li a:hover {
	color: #005a87;
	text-decoration: underline;
}

/* ── FAQ Block ───────────────────────────────────────────────────────────── */
.baewp-faq {
	margin: 40px 0;
	border-top: 3px solid #2563eb;
	padding-top: 28px;
}

.baewp-faq > h2 {
	font-size: 22px;
	margin-bottom: 20px;
	color: #1e3a5f !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin-left: 0 !important;
}

.baewp-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.baewp-faq-q {
	font-size: 15px !important;
	font-weight: 600;
	padding: 16px 20px !important;
	margin: 0 !important;
	cursor: pointer;
	background: linear-gradient(to right, #f0f9ff, #f8fafc);
	border-bottom: 1px solid #e2e8f0;
	color: #1e3a5f;
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}

.baewp-faq-q::after {
	content: '+';
	font-size: 20px;
	font-weight: 300;
	color: #2563eb;
	flex-shrink: 0;
	margin-left: 12px;
	transition: transform .2s;
}

.baewp-faq-item.open .baewp-faq-q::after {
	transform: rotate(45deg);
}

.baewp-faq-a {
	padding: 16px 20px;
	font-size: 14.5px;
	line-height: 1.65;
	color: #444;
	display: none;
}

.baewp-faq-item.open .baewp-faq-a {
	display: block;
}

/* ── Callout / Pull Quote ────────────────────────────────────────────────── */
blockquote.baewp-callout {
	border: none;
	background: #fff8e1;
	border-left: 4px solid #ffc107;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 28px 0;
	font-style: normal;
}

blockquote.baewp-callout p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	font-weight: 500;
}

/* ── Notice Boxes ────────────────────────────────────────────────────────── */
.baewp-notice {
	padding: 14px 18px;
	border-radius: 6px;
	margin: 24px 0;
	font-size: 14px;
	line-height: 1.6;
	border: 1px solid transparent;
}

.baewp-notice p {
	margin: 0;
}

.baewp-notice p::before {
	font-weight: 700;
	margin-right: 6px;
}

.baewp-notice--warning {
	background: #fff8e1;
	border-color: #ffe082;
	color: #7c5c00;
}

.baewp-notice--warning p::before {
	content: '⚠ Warning:';
}

.baewp-notice--tip {
	background: #e8f5e9;
	border-color: #a5d6a7;
	color: #1b5e20;
}

.baewp-notice--tip p::before {
	content: '💡 Tip:';
}

.baewp-notice--critical {
	background: #fdecea;
	border-color: #f5c6cb;
	color: #721c24;
}

.baewp-notice--critical p::before {
	content: '🚨 Critical:';
}

.baewp-notice--info {
	background: #e3f2fd;
	border-color: #90caf9;
	color: #0d47a1;
}

.baewp-notice--info p::before {
	content: 'ℹ Info:';
}

/* ── Reading Time Badge ──────────────────────────────────────────────────── */
.baewp-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #0369a1;
	background: #e0f2fe;
	padding: 3px 10px;
	border-radius: 12px;
	margin-left: 8px;
	font-weight: 500;
}

.baewp-reading-time::before {
	content: '⏱';
}

/* ── Pros / Cons Lists ───────────────────────────────────────────────────── */
ul.baewp-pros,
ul.baewp-cons {
	padding: 0;
	margin: 0 0 16px 0;
	list-style: none;
}

ul.baewp-pros li,
ul.baewp-cons li {
	padding: 7px 0 7px 26px;
	position: relative;
	font-size: 14.5px;
	line-height: 1.55;
	border-bottom: 1px solid #f0f0f0;
}

ul.baewp-pros li:last-child,
ul.baewp-cons li:last-child {
	border-bottom: none;
}

ul.baewp-pros li::before {
	content: '✓';
	position: absolute;
	left: 4px;
	color: #27ae60;
	font-weight: 700;
}

ul.baewp-cons li::before {
	content: '✗';
	position: absolute;
	left: 4px;
	color: #e74c3c;
	font-weight: 700;
}

/* ── Inline Comparison Table ─────────────────────────────────────────────── */
.baewp-compare-inline {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.baewp-compare-inline th {
	background: linear-gradient(135deg, #1e3a5f 0%, #c0392b 100%);
	color: #fff;
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
}

.baewp-compare-inline td {
	padding: 10px 16px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.baewp-compare-inline tr:last-child td {
	border-bottom: none;
}

.baewp-compare-inline tbody tr:nth-child(even) {
	background: #f9f9f9;
}

/* ── Article body typography improvements ────────────────────────────────── */
.entry-content h2,
.post-content h2,
article h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 36px 0 14px;
	line-height: 1.3;
	color: #1a1a2e;
	padding-left: 1rem;
	border-left: 4px solid #c0392b;
}

.entry-content h3,
.post-content h3,
article h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 28px 0 10px;
	color: #1e293b;
	padding-left: 0.75rem;
	border-left: 3px solid #e2e8f0;
}

.entry-content p,
.post-content p,
article p {
	line-height: 1.75;
	margin-bottom: 18px;
	color: #333;
	font-size: 16px;
}

.entry-content pre,
.post-content pre,
article pre {
	background: #1e1e2e;
	color: #cdd6f4;
	border-radius: 8px;
	padding: 20px 24px;
	overflow-x: auto;
	margin: 24px 0;
	font-size: 13.5px;
	line-height: 1.65;
	border: 1px solid #313244;
}

.entry-content code,
.post-content code,
article code {
	background: #f4f4f8;
	color: #c0392b;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13.5px;
	font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.entry-content pre code,
.post-content pre code,
article pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
}

/* ── CTA Block ───────────────────────────────────────────────────────────── */
.baewp-cta-block {
	background: linear-gradient(135deg, #1e3a5f 0%, #c0392b 100%);
	border-radius: 10px;
	padding: 24px 28px;
	margin: 36px 0;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 4px 20px rgba(192,57,43,0.2);
}

.baewp-cta-block__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.baewp-cta-block__text {
	font-size: 14px;
	opacity: .9;
	margin: 0;
	line-height: 1.55;
}

.baewp-cta-block__btn {
	display: inline-block;
	background: #fff;
	color: #0073aa !important;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 14px;
	width: fit-content;
	transition: background .15s, transform .1s;
}

.baewp-cta-block__btn:hover {
	background: #eaf4fd;
	transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {

	.baewp-compare-table th,
	.baewp-compare-table td {
		padding: 8px 10px;
		font-size: 13px;
	}

	.baewp-article-meta {
		gap: 10px;
	}
}

