/* Jenesys Review CPT — Frontend Styles */

.jenesys-review-single {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* Header */
.review-header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e5e7eb;
}

.review-thumbnail img {
	max-width: 120px;
	height: auto;
	border-radius: 8px;
}

.review-header-info {
	flex: 1;
}

.review-title {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.3;
}

/* Rating Badge */
.review-rating-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	padding: 6px 14px;
	border-radius: 6px;
	font-weight: 700;
	color: #fff;
	background: #6b7280;
}

.review-rating-badge--high {
	background: #059669;
}

.review-rating-badge--medium {
	background: #d97706;
}

.review-rating-badge--low {
	background: #dc2626;
}

.review-rating-badge--none {
	background: #9ca3af;
}

.review-rating-badge__value {
	font-size: 20px;
}

.review-rating-badge__max {
	font-size: 13px;
	opacity: 0.8;
}

.review-rating-badge__label {
	font-size: 13px;
	font-weight: 500;
	margin-left: 6px;
}

.review-rating-badge--small {
	padding: 3px 8px;
	font-size: 13px;
}

.review-rating-badge--small .review-rating-badge__value {
	font-size: 13px;
}

/* Byline */
.review-byline {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
	font-size: 14px;
	color: #6b7280;
}

.review-byline span {
	display: flex;
	align-items: center;
}

/* Info Table */
.review-info-table {
	margin-bottom: 30px;
}

.review-info-table table {
	width: 100%;
	border-collapse: collapse;
}

.review-info-table th,
.review-info-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.review-info-table th {
	width: 180px;
	font-weight: 600;
	color: #374151;
	background: #f9fafb;
}

.review-info-table td a {
	color: #2563eb;
	text-decoration: none;
}

.review-info-table td a:hover {
	text-decoration: underline;
}

/* Sponsor Override */
.review-sponsor {
	margin-bottom: 30px;
}

.review-sponsor__card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	flex-wrap: wrap;
}

.review-sponsor__logo {
	max-width: 60px;
	height: auto;
	border-radius: 6px;
}

.review-sponsor__info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.review-sponsor__name {
	font-size: 16px;
}

.review-sponsor__bonus {
	padding: 3px 10px;
	background: #fef3c7;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #92400e;
}

.review-sponsor__review-link {
	font-size: 13px;
	color: #2563eb;
	text-decoration: none;
}

.review-sponsor__review-link:hover {
	text-decoration: underline;
}

/* CTA */
.review-cta {
	text-align: center;
	margin: 30px 0;
}

.review-cta__button {
	display: inline-block;
	padding: 14px 40px;
	background: #2563eb;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s;
}

.review-cta__button:hover {
	background: #1d4ed8;
	color: #fff;
}

/* Pros / Cons */
.review-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.review-pros,
.review-cons {
	padding: 20px;
	border-radius: 8px;
}

.review-pros {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.review-cons {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.review-pros h3,
.review-pros h4 {
	color: #065f46;
	margin: 0 0 12px;
}

.review-cons h3,
.review-cons h4 {
	color: #991b1b;
	margin: 0 0 12px;
}

.review-pros ul,
.review-cons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.review-pros li,
.review-cons li {
	padding: 4px 0 4px 22px;
	position: relative;
}

.review-pros li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #059669;
	font-weight: 700;
}

.review-cons li::before {
	content: "\2717";
	position: absolute;
	left: 0;
	color: #dc2626;
	font-weight: 700;
}

/* Content */
.review-content {
	margin-bottom: 30px;
	line-height: 1.7;
}

/* Tags (Services, Providers) */
.review-services,
.review-providers {
	margin-bottom: 30px;
}

.review-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.review-tags li {
	padding: 5px 14px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	font-size: 14px;
	color: #374151;
}

/* Tables (Payment Methods, Bonuses) */
.review-payment-methods,
.review-bonuses {
	margin-bottom: 30px;
}

.review-table-responsive {
	overflow-x: auto;
}

.review-payment-methods table,
.review-bonuses table {
	width: 100%;
	border-collapse: collapse;
}

.review-payment-methods th,
.review-payment-methods td,
.review-bonuses th,
.review-bonuses td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.review-payment-methods thead th,
.review-bonuses thead th {
	background: #f9fafb;
	font-weight: 600;
	color: #374151;
}

.review-payment-methods tbody tr:hover,
.review-bonuses tbody tr:hover {
	background: #f9fafb;
}

/* FAQ Accordion */
.review-faq {
	margin-bottom: 30px;
}

.review-faq__item {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 8px;
	overflow: hidden;
}

.review-faq__item summary {
	padding: 14px 18px;
	font-weight: 600;
	cursor: pointer;
	background: #f9fafb;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.review-faq__item summary::-webkit-details-marker {
	display: none;
}

.review-faq__item summary::after {
	content: "+";
	font-size: 20px;
	font-weight: 300;
	color: #6b7280;
	transition: transform 0.2s;
}

.review-faq__item[open] summary::after {
	content: "\2212";
}

.review-faq__item[open] summary {
	border-bottom: 1px solid #e5e7eb;
}

.review-faq__answer {
	padding: 14px 18px;
	line-height: 1.6;
	color: #4b5563;
}

/* Related Sites */
.review-related {
	margin-bottom: 30px;
}

.review-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.review-related__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #1f2937;
	text-align: center;
	transition: box-shadow 0.2s;
}

.review-related__card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-related__card img {
	max-width: 80px;
	height: auto;
	border-radius: 6px;
	margin-bottom: 8px;
}

.review-related__name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

/* Responsive */
@media screen and (max-width: 640px) {
	.review-header {
		flex-direction: column;
	}

	.review-pros-cons {
		grid-template-columns: 1fr;
	}

	.review-info-table th {
		width: 120px;
	}

	.review-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
