/**
 * HommeFleur — Contenu restreint & CTA Inscription / Discussion
 *
 * Chargé uniquement sur : is_singular('post') visiteurs non connectés
 *                       + is_bbpress() visiteurs non connectés (CTA forum)
 *
 * @package buddyx-child
 */

/* ==========================================================================
   01. CONTENU RESTREINT & APPEL À L'ACTION (PAYWALL VIP & INSCRIPTION)
   ========================================================================== */

.entry-excerpt-restricted {
	position: relative;
	overflow: hidden;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--bx-color-fg, #444444);
}

.entry-excerpt-restricted p {
	margin-bottom: 0;
}

.excerpt-fade-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bx-color-bg-elevated, #ffffff) 100%);
	pointer-events: none;
}

/* Boîte d'incitation avec allure VIP prestigieuse */
.registration-cta-box {
	margin: 2.5rem 0 2rem 0;
	padding: 2.75rem 2.25rem;
	background: linear-gradient(135deg, rgba(201, 42, 43, 0.04) 0%, rgba(255, 255, 255, 0.98) 100%);
	border: 1px solid var(--bx-color-accent-border, rgba(201, 42, 43, 0.22));
	border-radius: var(--bx-radius-card, 18px);
	box-shadow: 0 4px 20px -2px rgba(201, 42, 43, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
	text-align: center;
	position: relative;
	overflow: hidden;
	transition:
		transform var(--bx-duration-base, 200ms) cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow var(--bx-duration-base, 200ms) ease,
		border-color var(--bx-duration-base, 200ms) ease;
}

.registration-cta-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--bx-color-accent, #c92a2b), #e53e3e);
}

.registration-cta-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -4px rgba(201, 42, 43, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
	border-color: var(--bx-color-accent-border, rgba(201, 42, 43, 0.35));
}

.cta-badge {
	margin-bottom: 1.35rem;
}

.cta-title {
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--bx-color-h2, #111111);
	margin: 0 0 0.85rem 0;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cta-description {
	font-size: 1.05rem;
	color: var(--bx-color-fg-muted, #6a6a6a);
	max-width: 580px;
	margin: 0 auto 1.65rem auto;
	line-height: 1.65;
}

/* Liste des bénéfices du club */
.cta-benefits {
	list-style: none;
	padding: 0;
	margin: 0 auto 2.25rem auto;
	display: inline-flex;
	flex-direction: column;
	gap: 0.75rem;
	text-align: left;
	max-width: 480px;
}

.cta-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.98rem;
	color: var(--bx-color-fg, #333333);
	font-weight: 500;
}

.cta-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
	color: var(--bx-color-fg-inverse, #ffffff);
	border-radius: var(--bx-radius-pill, 999px);
	font-size: 0.75rem;
	font-weight: bold;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.85rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: var(--bx-radius-button, 12px);
	text-decoration: none;
	transition: all var(--bx-duration-base, 200ms) cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
	letter-spacing: 0.02em;
}

.cta-btn-primary {
	width: auto;
}

.cta-btn-secondary {
	background-color: var(--bx-color-bg-elevated, #ffffff);
	color: var(--bx-color-fg, #444444) !important;
	border: 1px solid var(--bx-color-border, #e8e8e8);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cta-btn-secondary:hover {
	background-color: var(--bx-color-bg-muted, #fafafa);
	color: var(--bx-color-accent, #c92a2b) !important;
	border-color: var(--bx-color-accent-border, rgba(201, 42, 43, 0.3));
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
	.registration-cta-box {
		padding: 2rem 1.35rem;
	}

	.cta-title {
		font-size: 1.35rem;
	}

	.cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.cta-btn {
		width: 100%;
	}
}

/* ==========================================================================
   02. COMMENTAIRES RESTREINTS & CTA DISCUSSION
   ========================================================================== */

.restricted-comments-wrapper {
	position: relative;
	max-height: 280px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.comments-fade-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bx-color-bg-elevated, #ffffff) 100%);
	pointer-events: none;
}

.comments-cta-box {
	margin: 1.75rem 0 2.25rem 0;
	padding: 2.5rem 2rem;
	background: var(--bx-color-bg-elevated, #ffffff);
	border: 1.5px dashed var(--bx-color-accent-border, rgba(201, 42, 43, 0.3));
	border-radius: var(--bx-radius-card, 16px);
	text-align: center;
	box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comments-cta-box:hover {
	border-color: var(--bx-color-accent, #c92a2b);
	box-shadow: 0 4px 18px -2px rgba(201, 42, 43, 0.08);
}

.comments-cta-icon {
	font-size: 2.4rem;
	margin-bottom: 0.6rem;
	line-height: 1;
}

.comments-cta-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--bx-color-h3, #111111);
	margin: 0 0 0.6rem 0;
	letter-spacing: -0.01em;
}

.comments-cta-text {
	font-size: 1rem;
	color: var(--bx-color-fg-muted, #6a6a6a);
	max-width: 520px;
	margin: 0 auto 1.65rem auto;
	line-height: 1.6;
}

.comments-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* Dark Mode */
[data-bx-mode="dark"] .entry-excerpt-restricted {
	color: var(--bx-color-fg, #e5e5e5);
}

[data-bx-mode="dark"] .excerpt-fade-overlay {
	background: linear-gradient(180deg, transparent 0%, var(--bx-color-bg-elevated, #161616) 100%);
}

[data-bx-mode="dark"] .registration-cta-box {
	background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(22, 22, 22, 0.98) 100%);
	border-color: rgba(255, 107, 107, 0.3);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

[data-bx-mode="dark"] .cta-title {
	color: var(--bx-color-h2, #f5f5f5);
}

[data-bx-mode="dark"] .cta-description,
[data-bx-mode="dark"] .cta-benefits li {
	color: var(--bx-color-fg, #e0e0e0);
}

[data-bx-mode="dark"] .cta-btn-secondary {
	background-color: var(--bx-color-bg-elevated, #161616);
	color: var(--bx-color-fg, #f5f5f5) !important;
	border-color: var(--bx-color-border, #2a2a2a);
}

[data-bx-mode="dark"] .cta-btn-secondary:hover {
	background-color: var(--bx-color-bg-muted, #1f1f1f);
	color: #ff6b6b !important;
	border-color: rgba(255, 107, 107, 0.35);
}

[data-bx-mode="dark"] .comments-fade-overlay {
	background: linear-gradient(180deg, transparent 0%, #161616 100%);
}

[data-bx-mode="dark"] .comments-cta-box {
	background: #161616;
	border-color: rgba(255, 107, 107, 0.28);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-bx-mode="dark"] .comments-cta-title {
	color: #f5f5f5;
}

[data-bx-mode="dark"] .comments-cta-text {
	color: #a0a0a0;
}
