/**
 * Paywall & Tier System Styles
 * Bloomberg-grade freemium UI
 *
 * @package ZL\Theme
 */

/* ============================================
   PAYWALL CONTAINER
   ============================================ */

.paywall-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 3rem 2rem;
}

.paywall-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 14, 20, 0.95) 0%,
		rgba(10, 14, 20, 0.98) 100%
	);
	backdrop-filter: blur(12px);
	border-radius: 1rem;
	z-index: 1;
}

:root:not(.dark) .paywall-overlay {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.95) 0%,
		rgba(255, 255, 255, 0.98) 100%
	);
}

.paywall-content {
	position: relative;
	z-index: 2;
	max-width: 500px;
	text-align: center;
}

/* ============================================
   PAYWALL ICON
   ============================================ */

.paywall-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: rgba(14, 165, 233, 0.1);
	border: 2px solid rgba(14, 165, 233, 0.3);
	color: var(--zl-accent-primary);
}

.paywall-icon svg {
	width: 48px;
	height: 48px;
}

/* ============================================
   PAYWALL TEXT
   ============================================ */

.paywall-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--zl-text-primary);
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.02em;
}

.paywall-description {
	font-size: 1rem;
	color: var(--zl-text-secondary);
	margin: 0 0 2rem 0;
	line-height: 1.6;
}

/* ============================================
   PAYWALL BENEFITS
   ============================================ */

.paywall-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem 0;
	text-align: left;
}

.paywall-benefit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.9375rem;
	color: var(--zl-text-primary);
	background: rgba(14, 165, 233, 0.05);
	border: 1px solid rgba(14, 165, 233, 0.15);
	border-radius: 0.5rem;
	transition: all 0.2s ease;
}

.paywall-benefit:hover {
	background: rgba(14, 165, 233, 0.08);
	border-color: rgba(14, 165, 233, 0.25);
}

.paywall-benefit svg {
	width: 20px;
	height: 20px;
	color: var(--zl-accent-primary);
	flex-shrink: 0;
}

/* ============================================
   PAYWALL ACTIONS
   ============================================ */

.paywall-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.paywall-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.paywall-btn-primary {
	background: var(--zl-accent-primary);
	color: white;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.paywall-btn-primary:hover {
	background: rgb(3, 105, 161);
	box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
	transform: translateY(-2px);
}

.paywall-btn-secondary {
	background: transparent;
	color: var(--zl-text-primary);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

:root:not(.dark) .paywall-btn-secondary {
	border-color: rgba(0, 0, 0, 0.2);
}

.paywall-btn-secondary:hover {
	background: rgba(14, 165, 233, 0.05);
	border-color: var(--zl-accent-primary);
	color: var(--zl-accent-primary);
}

.paywall-note {
	font-size: 0.875rem;
	color: var(--zl-text-tertiary);
	margin: 0;
}

/* ============================================
   TIER BADGES
   ============================================ */

.tier-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 0.5rem;
	white-space: nowrap;
}

.tier-badge svg {
	width: 14px;
	height: 14px;
}

/* Free Tier */
.tier-badge-free {
	background: rgba(156, 163, 175, 0.1);
	color: rgb(156, 163, 175);
	border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Trial Tier */
.tier-badge-trial {
	background: rgba(251, 146, 60, 0.1);
	color: rgb(251, 146, 60);
	border: 1px solid rgba(251, 146, 60, 0.2);
	animation: tierPulse 2s ease-in-out infinite;
}

@keyframes tierPulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(251, 146, 60, 0);
	}
}

/* Pro Tier */
.tier-badge-pro {
	background: rgba(14, 165, 233, 0.1);
	color: rgb(14, 165, 233);
	border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Enterprise Tier */
.tier-badge-enterprise {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
	color: rgb(168, 85, 247);
	border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ============================================
   UPGRADE PROMPT (Inline CTAs)
   ============================================ */

.upgrade-prompt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
	background: rgba(14, 165, 233, 0.05);
	border: 1px solid rgba(14, 165, 233, 0.15);
	border-radius: 0.75rem;
	transition: all 0.2s ease;
}

.upgrade-prompt:hover {
	background: rgba(14, 165, 233, 0.08);
	border-color: rgba(14, 165, 233, 0.25);
}

.upgrade-prompt-content {
	flex: 1;
}

.upgrade-prompt-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--zl-text-primary);
	margin: 0 0 0.25rem 0;
}

.upgrade-prompt-text {
	font-size: 0.875rem;
	color: var(--zl-text-secondary);
	margin: 0;
}

.upgrade-prompt-cta {
	flex-shrink: 0;
}

.upgrade-prompt-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: white;
	background: var(--zl-accent-primary);
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.upgrade-prompt-btn:hover {
	background: rgb(3, 105, 161);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ============================================
   TRIAL COUNTDOWN (Header widget)
   ============================================ */

.trial-countdown {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: rgb(251, 146, 60);
	background: rgba(251, 146, 60, 0.1);
	border: 1px solid rgba(251, 146, 60, 0.2);
	border-radius: 0.5rem;
}

.trial-countdown-icon {
	width: 16px;
	height: 16px;
}

.trial-countdown-text {
	font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
	.paywall-container {
		padding: 2rem 1rem;
		min-height: 300px;
	}

	.paywall-title {
		font-size: 1.5rem;
	}

	.upgrade-prompt {
		flex-direction: column;
		text-align: center;
	}

	.upgrade-prompt-cta {
		width: 100%;
	}

	.upgrade-prompt-btn {
		width: 100%;
		justify-content: center;
	}
}
