/**
 * BaeWP Reviews — Frontend Styles
 * Review cards, star ratings, pros/cons, comparison tables, FAQ
 */

/* ── Review Card (shortcode) ──────────────────────────────────────────────── */
.baewp-review-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.baewp-review-card__header {
	margin-bottom: 16px;
}

.baewp-review-card__meta {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.baewp-review-type-badge {
	background: #f0f4ff;
	color: #4f46e5;
	border: 1px solid #c7d2fe;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 10px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.baewp-review-price {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 10px;
}

.baewp-review-card__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}
.baewp-review-card__title a {
	text-decoration: none;
	color: inherit;
}
.baewp-review-card__title a:hover { color: #0073aa; }

/* ── Star Ratings ────────────────────────────────────────────────────────── */
.baewp-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 20px;
	line-height: 1;
}
.baewp-star--full  { color: #f59e0b; }
.baewp-star--half  { color: #f59e0b; font-size: 16px; }
.baewp-star--empty { color: #d1d5db; }

.baewp-review-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}
.baewp-review-card__rating-text {
	font-size: 14px;
	color: #6b7280;
	font-weight: 600;
}

/* ── Pros / Cons in card ──────────────────────────────────────────────────── */
.baewp-review-card__pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 16px 0;
}

.baewp-review-card__pros,
.baewp-review-card__cons {
	list-style: none;
	margin: 0;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
}
.baewp-review-card__pros {
	background: #f0fdf4;
	border-left: 3px solid #22c55e;
}
.baewp-review-card__cons {
	background: #fef2f2;
	border-left: 3px solid #ef4444;
}
.baewp-review-card__pros li,
.baewp-review-card__cons li {
	padding: 3px 0;
	line-height: 1.5;
}

/* ── CTA Button in card ───────────────────────────────────────────────────── */
.baewp-review-card__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 20px;
	flex-wrap: wrap;
}
.baewp-review-card__read-more {
	font-size: 14px;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
}
.baewp-review-card__read-more:hover { text-decoration: underline; }

.baewp-review-cta-btn {
	display: inline-block;
	background: linear-gradient(135deg, #0073aa, #005177);
	color: #fff !important;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	transition: opacity .15s;
}
.baewp-review-cta-btn:hover { opacity: .9; }

/* ── Pros/Cons in article body ────────────────────────────────────────────── */
ul.baewp-pros,
ul.baewp-cons {
	list-style: none;
	margin: 0 0 16px;
	padding: 16px 20px;
	border-radius: 8px;
}
ul.baewp-pros {
	background: #f0fdf4;
	border-left: 4px solid #22c55e;
}
ul.baewp-pros li { color: #15803d; padding: 4px 0; }
ul.baewp-cons {
	background: #fef2f2;
	border-left: 4px solid #ef4444;
}
ul.baewp-cons li { color: #b91c1c; padding: 4px 0; }

/* ── Comparison Table (inline) ────────────────────────────────────────────── */
table.baewp-compare-inline {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
table.baewp-compare-inline th {
	background: #1e293b;
	color: #fff;
	padding: 12px 16px;
	text-align: left;
	font-weight: 700;
}
table.baewp-compare-inline td {
	padding: 10px 16px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: top;
}
table.baewp-compare-inline tr:last-child td { border-bottom: none; }
table.baewp-compare-inline tr:nth-child(even) td { background: #f8fafc; }
table.baewp-compare-inline td:first-child { font-weight: 600; color: #374151; }

/* ── Key Takeaways ────────────────────────────────────────────────────────── */
.baewp-key-takeaways {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-left: 5px solid #0284c7;
	border-radius: 0 8px 8px 0;
	padding: 20px 24px;
	margin: 28px 0;
	position: relative;
}
.baewp-key-takeaways::before {
	content: '⚡ Key Takeaways';
	display: block;
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: #0284c7;
	margin-bottom: 10px;
}
.baewp-key-takeaways ul {
	margin: 0;
	padding: 0 0 0 18px;
}
.baewp-key-takeaways li {
	padding: 4px 0;
	line-height: 1.6;
	color: #1e40af;
}

/* ── FAQ Accordion ────────────────────────────────────────────────────────── */
.baewp-faq { margin: 28px 0; }

.baewp-faq-item {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 8px;
	overflow: hidden;
}

.baewp-faq-q {
	padding: 14px 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f9fafb;
	transition: background .15s;
	user-select: none;
	font-size: 15px;
}
.baewp-faq-q:hover { background: #f3f4f6; }
.baewp-faq-q::after {
	content: '+';
	font-size: 20px;
	font-weight: 400;
	color: #6b7280;
	transition: transform .2s;
	flex-shrink: 0;
	margin-left: 12px;
}
.baewp-faq-item.open .baewp-faq-q { background: #eff6ff; color: #1d4ed8; }
.baewp-faq-item.open .baewp-faq-q::after {
	transform: rotate(45deg);
	color: #1d4ed8;
}

.baewp-faq-a {
	display: none;
	padding: 14px 18px;
	border-top: 1px solid #e5e7eb;
	background: #fff;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}
.baewp-faq-item.open .baewp-faq-a { display: block; }

/* ── Notice / Callout Boxes ───────────────────────────────────────────────── */
.baewp-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.6;
}
.baewp-notice--tip     { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }
.baewp-notice--warning { background: #fffbeb; border-left: 4px solid #f59e0b; color: #92400e; }
.baewp-notice--critical { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.baewp-notice--info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }

/* ── Verdict section highlight ────────────────────────────────────────────── */
.baewp-review-card__verdict {
	font-size: 14px;
	color: #374151;
	line-height: 1.65;
	padding: 12px 0;
	border-top: 1px solid #f3f4f6;
}
.baewp-review-card__excerpt {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 12px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.baewp-review-card__pros-cons { grid-template-columns: 1fr; }
	table.baewp-compare-inline { font-size: 12px; }
	table.baewp-compare-inline th,
	table.baewp-compare-inline td { padding: 8px 10px; }
}
