/* ── Tutor Paid Content — Paywall ───────────────────────────────────────── */

.tpc-paywall {
	margin: 32px 0;
	border-radius: 8px;
	overflow: hidden;
}

/* Decorative "blurred text" bars above the card */
.tpc-paywall__preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 0 16px;
	pointer-events: none;
	user-select: none;
}

.tpc-paywall__preview span {
	display: block;
	height: 13px;
	background: linear-gradient(90deg, #e2e8f0 0%, #edf2f7 60%, #e2e8f0 100%);
	border-radius: 4px;
	filter: blur(3px);
	opacity: 0.7;
}

.tpc-paywall__preview span:nth-child(2) { width: 85%; }
.tpc-paywall__preview span:nth-child(3) { width: 70%; }
.tpc-paywall__preview-short            { width: 45% !important; }

/* Paywall card */
.tpc-paywall__card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 3px solid #2563eb;
	border-radius: 8px;
	padding: 36px 28px;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Lock icon */
.tpc-paywall__lock-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #eff6ff;
	border-radius: 50%;
	color: #2563eb;
	margin-bottom: 16px;
}

.tpc-paywall__lock-icon svg {
	width: 24px;
	height: 24px;
}

.tpc-paywall__heading {
	margin: 0 0 8px;
	font-size: 1.15em;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
}

.tpc-paywall__price {
	margin: 0 0 24px;
	font-size: 0.95em;
	color: #64748b;
	font-weight: 500;
}

/* Buttons */
.tpc-paywall__btn {
	display: inline-block;
	padding: 12px 28px;
	background: #2563eb;
	color: #ffffff !important;
	font-size: 0.95em;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.1s ease;
	cursor: pointer;
}

.tpc-paywall__btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.tpc-paywall__btn:active {
	transform: translateY(0);
}

/* "Register & Unlock" variant for guests */
.tpc-paywall__btn--guest {
	background: #16a34a;
}

.tpc-paywall__btn--guest:hover {
	background: #15803d;
}

/* Subscribe monthly variant */
.tpc-paywall__btn--subscribe {
	background: #7c3aed;
}

.tpc-paywall__btn--subscribe:hover {
	background: #6d28d9;
}

/* ── Two-option layout (Monthly + Lifetime) ───────────────────────── */
.tpc-paywall__options {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 0 0 8px;
}

.tpc-paywall__option {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.tpc-paywall__option:first-child {
	border-radius: 8px 0 0 8px;
	border-right: none;
}

.tpc-paywall__option:last-child {
	border-radius: 0 8px 8px 0;
	border-left: none;
}

.tpc-paywall__option-price {
	font-size: 1.35em;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.1;
}

.tpc-paywall__option-interval {
	font-size: 0.6em;
	font-weight: 500;
	color: #64748b;
}

.tpc-paywall__option-label {
	font-size: 0.8em;
	color: #64748b;
	font-weight: 500;
	margin-bottom: 4px;
}

.tpc-paywall__options-divider {
	display: flex;
	align-items: center;
	padding: 0 4px;
	font-size: 0.8em;
	color: #94a3b8;
	font-weight: 500;
	flex-shrink: 0;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	z-index: 1;
}

/* Ensure buttons in option cards fill the width */
.tpc-paywall__option .tpc-paywall__btn {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 0.85em;
	box-sizing: border-box;
	text-align: center;
}

/* Responsive: stack vertically on narrow screens */
@media (max-width: 480px) {
	.tpc-paywall__options {
		flex-direction: column;
	}

	.tpc-paywall__option:first-child {
		border-radius: 8px 8px 0 0;
		border-right: 1px solid #e2e8f0;
		border-bottom: none;
	}

	.tpc-paywall__option:last-child {
		border-radius: 0 0 8px 8px;
		border-left: 1px solid #e2e8f0;
		border-top: none;
	}

	.tpc-paywall__options-divider {
		border: none;
		border-left: 1px solid #e2e8f0;
		border-right: 1px solid #e2e8f0;
		padding: 4px 0;
		justify-content: center;
	}
}

/* Already a member / login hint */
.tpc-paywall__login-hint {
	margin: 16px 0 0;
	font-size: 0.85em;
	color: #94a3b8;
}

.tpc-paywall__login-hint a {
	color: #2563eb;
	text-decoration: underline;
}

.tpc-paywall__no-link {
	font-size: 0.875em;
	color: #94a3b8;
	margin: 0;
}

/* ── Dashboard: Articles Purchased table star rating ────────────────── */
.tpc-star-rating {
	display: inline-flex;
	gap: 2px;
	cursor: pointer;
	font-size: 1.3em;
	line-height: 1;
}

.tpc-star {
	color: #cbd5e1;
	transition: color 0.15s ease;
}

.tpc-star--on,
.tpc-star-rating:hover .tpc-star,
.tpc-star-rating .tpc-star:hover ~ .tpc-star {
	color: #f59e0b;
}

/* Reset stars after the hovered one back to grey on hover */
.tpc-star-rating:hover .tpc-star:hover ~ .tpc-star {
	color: #cbd5e1;
}

.tpc-star--saved {
	color: #f59e0b;
}

/* ── Purchased / unlocked state (added by JS after access check) ─────── */
.tpc-paywall--unlocked .tpc-paywall__card,
.tpc-paywall--unlocked .tpc-paywall__preview {
	display: none;
}
