/**
 * LabScope Community embed styling for PeptiderPro theme surfaces.
 *
 * @package PeptiderPro
 */

.pp-community-panel {
	margin-block: clamp(2rem, 4vw, 3.5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--pp-border, rgba(15, 23, 42, 0.08));
	border-radius: calc(var(--pp-radius-lg, 18px) + 2px);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
		var(--pp-surface, #fff);
	box-shadow: var(--pp-shadow-soft, 0 18px 40px rgba(15, 23, 42, 0.06));
}

.pp-community-panel__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.pp-community-panel__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pp-accent, #2563eb);
}

.pp-community-panel__lead {
	max-width: 42rem;
	margin: 0.5rem 0 0;
	color: var(--pp-text-muted, #64748b);
}

.pp-community-panel__subtitle {
	margin: 0 0 1rem;
	font-size: 1.05rem;
}

.pp-community-panel__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.pp-community-surface {
	padding: 1rem;
	border: 1px solid var(--pp-border, rgba(15, 23, 42, 0.08));
	border-radius: var(--pp-radius-lg, 18px);
	background: var(--pp-surface, #fff);
}

.pp-community-surface .lsc-target-reviews,
.pp-community-surface .lsc-reviews,
.pp-community-surface .lsc-qa {
	margin: 0;
}

.pp-community-surface .lsc-target-reviews__title,
.pp-community-surface .lsc-reviews__title,
.pp-community-surface .lsc-qa__title {
	font-size: 1rem;
}

.pp-badge--community {
	background: rgba(37, 99, 235, 0.1);
	color: var(--pp-accent, #2563eb);
}

.pp-community-highlights__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 1.25rem;
}

.pp-community-highlights__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.pp-archive-community-strip {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--pp-radius-lg, 18px);
	background: var(--pp-surface-muted, #f8fafc);
	border: 1px solid var(--pp-border, rgba(15, 23, 42, 0.08));
}

.pp-archive-community-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.pp-archive-community-strip p {
	margin: 0;
	color: var(--pp-text-muted, #64748b);
}

@media (max-width: 900px) {
	.pp-community-panel__header,
	.pp-community-panel__grid,
	.pp-community-highlights__grid {
		grid-template-columns: 1fr;
	}

	.pp-community-panel__hub,
	.pp-community-highlights__actions .pp-btn {
		width: 100%;
		justify-content: center;
	}

	.pp-community-panel {
		padding: 1rem;
	}

	.pp-community-surface {
		padding: 0.85rem;
	}

	.pp-community-surface .lsc-reviews__list,
	.pp-community-surface .lsc-qa__list {
		gap: 0.75rem;
	}
}

@media (max-width: 640px) {
	.pp-company-jump a[href="#pp-company-community"],
	.pp-research-jump a[href="#pp-research-community"] {
		display: inline-flex;
	}
}

html.dark-mode .pp-community-panel,
html[data-theme="dark"] .pp-community-panel {
	background:
		linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98)),
		var(--pp-surface, #0f172a);
}

html.dark-mode .pp-community-surface,
html[data-theme="dark"] .pp-community-surface,
html.dark-mode .pp-archive-community-strip,
html[data-theme="dark"] .pp-archive-community-strip {
	background: rgba(15, 23, 42, 0.72);
}
