/**
 * Broker Reviews Styles
 *
 * Scoped to .bycb- prefix. Loaded only on broker_review post type pages.
 *
 * @package Genesis Sample
 */

/* =========================================================================
   Hero Section
   ========================================================================= */

.bycb-hero {
	text-align: center;
	padding: 2rem 1rem 1.5rem;
	border-bottom: 2px solid #f1f0aa;
	margin-bottom: 2rem;
}

.bycb-hero .bycb-broker-logo {
	display: block;
	max-width: 300px;
	height: auto;
	margin: 0 auto 1.25rem;
}

.bycb-hero h1 {
	color: #003762;
	font-family: 'Roboto Slab', serif;
	margin-bottom: 0.75rem;
}

/* =========================================================================
   Star Rating
   ========================================================================= */

.bycb-star-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.bycb-star-rating svg {
	display: inline-block;
	vertical-align: middle;
}

.bycb-star-rating .bycb-rating-score {
	font-size: 1.25rem;
	font-weight: 700;
	color: #13204b;
	margin-left: 0.25rem;
}

/* =========================================================================
   Ratings Bars Section
   ========================================================================= */

.bycb-ratings-section {
	margin-bottom: 2rem;
}

.bycb-ratings-section h2 {
	color: #003762;
	font-family: 'Roboto Slab', serif;
	margin-bottom: 1.25rem;
}

.bycb-rating-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.875rem;
}

.bycb-rating-label {
	min-width: 160px;
	font-weight: 600;
	color: #13204b;
	font-size: 0.9rem;
}

.bycb-rating-bar-wrap {
	flex: 1;
	background: #eeeeee;
	border-radius: 4px;
	height: 10px;
	overflow: hidden;
}

.bycb-rating-bar {
	height: 100%;
	background: #0073e5;
	border-radius: 4px;
	transition: width 0.4s ease;
}

.bycb-rating-score-label {
	min-width: 40px;
	font-size: 0.875rem;
	font-weight: 700;
	color: #13204b;
	text-align: right;
}

/* =========================================================================
   Broker Info Table
   ========================================================================= */

.bycb-broker-info-section {
	margin-bottom: 2rem;
}

.bycb-broker-info-section h2 {
	color: #003762;
	font-family: 'Roboto Slab', serif;
	margin-bottom: 1rem;
}

.bycb-broker-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.bycb-broker-info-table th,
.bycb-broker-info-table td {
	padding: 0.6rem 0.875rem;
	border: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}

.bycb-broker-info-table th {
	width: 40%;
	background: #f7f7f7;
	font-weight: 600;
	color: #13204b;
}

.bycb-broker-info-table a {
	color: #0073e5;
	text-decoration: none;
}

.bycb-broker-info-table a:hover {
	text-decoration: underline;
}

.bycb-checkmark {
	color: #2e7d32;
	font-weight: 700;
}

.bycb-crossmark {
	color: #c62828;
}

/* =========================================================================
   Pros / Cons
   ========================================================================= */

.bycb-pros-cons-section {
	margin-bottom: 2rem;
}

.bycb-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 600px) {
	.bycb-pros-cons {
		grid-template-columns: 1fr;
	}
}

.bycb-pros,
.bycb-cons {
	padding: 1.25rem;
	border-radius: 6px;
}

.bycb-pros {
	background: #f0faf0;
	border: 1px solid #a5d6a7;
}

.bycb-cons {
	background: #fff5f5;
	border: 1px solid #ef9a9a;
}

.bycb-pros h3 {
	color: #2e7d32;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.bycb-cons h3 {
	color: #c62828;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.bycb-pros ul,
.bycb-cons ul {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.75;
}

.bycb-pros ul li,
.bycb-cons ul li {
	margin-bottom: 0.35rem;
}

/* =========================================================================
   Verdict Box + CTA
   ========================================================================= */

.bycb-verdict-box {
	border: 2px solid #003762;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	background: #f8f9fb;
}

.bycb-verdict-box h2 {
	color: #003762;
	font-family: 'Roboto Slab', serif;
	margin-top: 0;
	margin-bottom: 0.875rem;
}

.bycb-verdict-box p {
	margin-bottom: 0;
	line-height: 1.8;
}

.bycb-cta-wrap {
	text-align: center;
	margin-bottom: 1rem;
}

.bycb-cta-button {
	display: inline-block;
	background: #0073e5;
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 700;
	padding: 0.875rem 2rem;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease;
	letter-spacing: 0.02em;
}

.bycb-cta-button:hover,
.bycb-cta-button:focus {
	background: #13204b;
	color: #ffffff;
	text-decoration: none;
}

.bycb-review-attribution {
	text-align: center;
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 2rem;
}

/* =========================================================================
   Archive: Region Filter
   ========================================================================= */

.bycb-archive-header {
	margin-bottom: 2rem;
	text-align: center;
}

.bycb-archive-header h1 {
	color: #003762;
	font-family: 'Roboto Slab', serif;
}

.bycb-archive-intro {
	max-width: 700px;
	margin: 0 auto 1.25rem;
	color: #444;
	line-height: 1.7;
}

.bycb-region-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.bycb-region-filter a {
	display: inline-block;
	padding: 0.35rem 0.875rem;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 20px;
	font-size: 0.875rem;
	color: #13204b;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.bycb-region-filter a:hover,
.bycb-region-filter a.bycb-active {
	background: #0073e5;
	border-color: #0073e5;
	color: #ffffff;
}

/* =========================================================================
   Archive: Broker Card Grid
   ========================================================================= */

.bycb-broker-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
	.bycb-broker-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 580px) {
	.bycb-broker-grid {
		grid-template-columns: 1fr;
	}
}

.bycb-broker-card {
	background: #ffffff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bycb-broker-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.bycb-card-logo {
	text-align: center;
	margin-bottom: 1rem;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bycb-card-logo img {
	max-width: 200px;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bycb-card-logo .bycb-no-logo {
	width: 200px;
	height: 80px;
	background: #f0f4f8;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 0.8rem;
}

.bycb-broker-card h2 {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
	font-family: 'Roboto Slab', serif;
	color: #003762;
}

.bycb-broker-card h2 a {
	color: inherit;
	text-decoration: none;
}

.bycb-broker-card h2 a:hover {
	color: #0073e5;
}

.bycb-card-rating {
	margin-bottom: 0.75rem;
}

.bycb-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 0.75rem;
}

.bycb-tag {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
	background: #e8f0fe;
	color: #13204b;
	text-decoration: none;
	line-height: 1.4;
}

.bycb-tag.bycb-specialty-tag {
	background: #fef3e8;
	color: #5d3200;
}

.bycb-card-excerpt {
	font-size: 0.875rem;
	color: #555;
	line-height: 1.6;
	flex: 1;
	margin-bottom: 1rem;
}

.bycb-card-read-more {
	display: inline-block;
	margin-top: auto;
	background: #0073e5;
	color: #ffffff;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s;
}

.bycb-card-read-more:hover {
	background: #13204b;
	color: #ffffff;
	text-decoration: none;
}

/* =========================================================================
   Archive: Pagination
   ========================================================================= */

.bycb-pagination {
	text-align: center;
	margin-bottom: 2rem;
}

.bycb-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	margin: 0 0.2rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #0073e5;
	text-decoration: none;
	font-size: 0.9rem;
}

.bycb-pagination .page-numbers.current {
	background: #0073e5;
	color: #fff;
	border-color: #0073e5;
}

.bycb-pagination .page-numbers:hover {
	background: #f0f4f8;
}

/* =========================================================================
   No Results
   ========================================================================= */

.bycb-no-results {
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
}
