/* Community hub + mobile menu card — PC Precision */

.pcp-comm {
	--pcp-comm-ink: #0f172a;
	--pcp-comm-muted: #475569;
	--pcp-comm-line: #e2e8f0;
	--pcp-comm-discord: #5865f2;
	--pcp-comm-telegram: #229ed9;
	--pcp-comm-bg: #f8fafc;
	max-width: 920px;
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
	color: var(--pcp-comm-ink);
}

.pcp-comm__hero {
	margin-bottom: 2rem;
}

.pcp-comm__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1e3a5f;
}

.pcp-comm__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pcp-comm__lead {
	margin: 0;
	max-width: 38rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--pcp-comm-muted);
}

.pcp-comm__grid {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
}

@media (min-width: 720px) {
	.pcp-comm__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
	}
}

.pcp-comm__card {
	padding: 1.35rem 1.4rem 1.5rem;
	border: 1px solid var(--pcp-comm-line);
	background: #fff;
	border-radius: 4px;
}

.pcp-comm__card-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 800;
}

.pcp-comm__card-text {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--pcp-comm-muted);
}

.pcp-comm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	color: #fff;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.pcp-comm__btn:hover {
	filter: brightness(1.06);
	color: #fff;
	transform: translateY(-1px);
}

.pcp-comm__btn--discord {
	background: var(--pcp-comm-discord);
}

.pcp-comm__btn--telegram {
	background: var(--pcp-comm-telegram);
}

.pcp-comm__why {
	padding: 1.35rem 0 0;
	border-top: 1px solid var(--pcp-comm-line);
}

.pcp-comm__why-title {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 800;
}

.pcp-comm__why-text {
	margin: 0 0 0.85rem;
	color: var(--pcp-comm-muted);
	line-height: 1.5;
}

.pcp-comm__why-cta {
	margin: 0;
	font-size: 0.95rem;
}

.pcp-comm__link {
	color: #1e3a5f;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* —— Mobile menu card —— */
.pcp-comm-mobile {
	margin: 0.85rem 0.9rem 1.1rem;
	padding: 0.95rem 1rem 1.05rem;
	background: linear-gradient(160deg, #0f2744 0%, #163a5c 100%);
	color: #e8eef6;
	border-radius: 4px;
}

.pcp-comm-mobile__title {
	margin: 0 0 0.3rem;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pcp-comm-mobile__text {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	line-height: 1.4;
	opacity: 0.88;
}

.pcp-comm-mobile__actions {
	display: flex;
	gap: 0.45rem;
	margin-bottom: 0.55rem;
}

.pcp-comm-mobile__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	padding: 0.4rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	color: #fff;
}

.pcp-comm-mobile__btn--discord {
	background: #5865f2;
}

.pcp-comm-mobile__btn--telegram {
	background: #229ed9;
}

.pcp-comm-mobile__more {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #b8d4f0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Soft toast community */
.pcp-comm-toast {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99980;
	max-width: min(320px, calc(100vw - 32px));
	padding: 0.85rem 1rem;
	background: #0f2744;
	color: #f1f5f9;
	border-radius: 4px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.28);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.pcp-comm-toast.is-on {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.pcp-comm-toast__title {
	margin: 0 0 0.25rem;
	font-size: 0.88rem;
	font-weight: 800;
}

.pcp-comm-toast__text {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	line-height: 1.4;
	opacity: 0.9;
}

.pcp-comm-toast__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.pcp-comm-toast__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	color: #fff;
	background: #5865f2;
}

.pcp-comm-toast__btn--tg {
	background: #229ed9;
}

.pcp-comm-toast__close {
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #94a3b8;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15rem;
}

/* —— Thank you / post-acquisto —— */
.pcp-comm-thanks {
	margin: 1.5rem 0 0.5rem;
	padding: 1.25rem 1.35rem 1.35rem;
	background: linear-gradient(160deg, #0f2744 0%, #163a5c 100%);
	color: #e8eef6;
	border-radius: 4px;
}

.pcp-comm-thanks__kicker {
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.75;
}

.pcp-comm-thanks__title {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}

.pcp-comm-thanks__text {
	margin: 0 0 0.95rem;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.9;
}

.pcp-comm-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pcp-comm-thanks__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.35rem;
	padding: 0.45rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 3px;
	color: #fff;
}

.pcp-comm-thanks__btn--discord {
	background: #5865f2;
}

.pcp-comm-thanks__btn--telegram {
	background: #229ed9;
}

.pcp-comm-thanks__more {
	font-size: 0.8rem;
	font-weight: 600;
	color: #b8d4f0;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-left: 0.15rem;
}

@media (min-width: 981px) {
	.pcp-comm-toast {
		bottom: 24px;
		left: 24px;
	}
}

/* Evita overlap con toast acquisti: community un po' più in alto se entrambi */
.pcp-sp-toasts:not(:empty) ~ .pcp-comm-toast,
body:has(.pcp-sp-toasts .pcp-sp-toast) .pcp-comm-toast {
	bottom: 110px;
}
