/* ForgeHub Blog Related Products AI - Frontend Styles (WCAG 2.1 AA) */
.wpfh-brp-box {
	--wpfh-brp-accent: #38bdf8;
	border-radius: 14px;
	padding: 1.35rem;
	box-sizing: border-box;
	font-family: inherit;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
}

.wpfh-brp-theme-dark {
	background: linear-gradient(180deg, #162033 0%, #0f172a 100%);
	border: 1px solid rgba(56, 189, 248, 0.28);
	color: #f8fafc;
}

.wpfh-brp-theme-light {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.wpfh-brp-theme-auto {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}

.wpfh-brp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.wpfh-brp-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.3;
}

.wpfh-brp-theme-dark .wpfh-brp-title {
	color: #7dd3fc;
}

.wpfh-brp-theme-light .wpfh-brp-title {
	color: #0369a1;
}

.wpfh-brp-header-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	line-height: 1.2;
	white-space: nowrap;
}

.wpfh-brp-theme-dark .wpfh-brp-header-badge {
	background: #0c4a6e;
	color: #e0f2fe;
	border: 1px solid rgba(125, 211, 252, 0.35);
}

.wpfh-brp-theme-light .wpfh-brp-header-badge {
	background: #e0f2fe;
	color: #0c4a6e;
	border: 1px solid #bae6fd;
}

.wpfh-brp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wpfh-brp-layout-cards .wpfh-brp-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.wpfh-brp-item {
	margin: 0;
	padding: 0;
}

.wpfh-brp-link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.wpfh-brp-layout-compact .wpfh-brp-link {
	padding: 0.55rem 0.65rem;
	gap: 0.6rem;
	align-items: center;
}

.wpfh-brp-layout-cards .wpfh-brp-link {
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.wpfh-brp-theme-dark .wpfh-brp-link {
	background: rgba(30, 41, 59, 0.8);
	border: 1px solid rgba(148, 163, 184, 0.18);
	color: #f8fafc;
}

.wpfh-brp-theme-dark .wpfh-brp-link:hover,
.wpfh-brp-theme-dark .wpfh-brp-link:focus-visible {
	background: rgba(30, 41, 59, 0.98);
	border-color: var(--wpfh-brp-accent);
	transform: translateY(-1px);
	outline: none;
}

.wpfh-brp-theme-light .wpfh-brp-link {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #0f172a;
}

.wpfh-brp-theme-light .wpfh-brp-link:hover,
.wpfh-brp-theme-light .wpfh-brp-link:focus-visible {
	background: #f1f5f9;
	border-color: #0369a1;
	transform: translateY(-1px);
	outline: none;
}

.wpfh-brp-thumb-wrap {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #0f172a;
}

.wpfh-brp-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpfh-brp-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wpfh-brp-name {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	display: block;
}

.wpfh-brp-excerpt,
.wpfh-brp-reason {
	font-size: 0.8rem;
	line-height: 1.45;
	display: block;
}

.wpfh-brp-theme-dark .wpfh-brp-excerpt,
.wpfh-brp-theme-dark .wpfh-brp-reason {
	color: #cbd5e1;
}

.wpfh-brp-theme-light .wpfh-brp-excerpt,
.wpfh-brp-theme-light .wpfh-brp-reason {
	color: #334155;
}

.wpfh-brp-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.2rem;
	font-size: 0.8rem;
}

.wpfh-brp-theme-dark .wpfh-brp-price {
	color: #cbd5e1;
	font-weight: 600;
}

.wpfh-brp-theme-light .wpfh-brp-price {
	color: #334155;
	font-weight: 600;
}

.wpfh-brp-theme-dark .wpfh-brp-cta {
	color: #7dd3fc;
	font-weight: 700;
}

.wpfh-brp-theme-light .wpfh-brp-cta {
	color: #0369a1;
	font-weight: 700;
}
