/**
 * Trial Component Styles
 *
 * Styles for trial welcome hero, CTAs, status badges, and paywalls.
 */

/* ==========================================================================
   Trial Welcome Hero
   ========================================================================== */

.saiap-trial-welcome-hero {
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px;
	margin: 0 0 24px;
}

.saiap-trial-welcome-hero__content {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
}

.saiap-trial-welcome-hero__headline {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #1e1e1e;
}

.saiap-trial-welcome-hero__subhead {
	font-size: 16px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 24px;
}

.saiap-trial-welcome-hero__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 32px;
}

.saiap-trial-welcome-hero__feature {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #475569;
}

.saiap-trial-welcome-hero__feature .dashicons {
	color: #6366f1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.saiap-trial-welcome-hero__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.saiap-trial-welcome-hero__actions .button-hero {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #4f46e5;
	color: #fff;
	font-size: 16px;
	padding: 12px 32px;
	height: auto;
	line-height: 1.4;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.saiap-trial-welcome-hero__actions .button-hero:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-color: #4338ca;
}

.saiap-trial-welcome-hero__secondary-link {
	color: #64748b;
	text-decoration: none;
	font-size: 14px;
}

.saiap-trial-welcome-hero__secondary-link:hover {
	color: #6366f1;
	text-decoration: underline;
}

.saiap-trial-welcome-hero__footnote {
	margin: 16px 0 0;
	font-size: 13px;
	color: #94a3b8;
}

/* Visual Preview */
.saiap-trial-welcome-hero__visual {
	display: flex;
	justify-content: center;
}

.saiap-trial-welcome-hero__preview {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	width: 100%;
	max-width: 320px;
}

.saiap-trial-welcome-hero__preview-header {
	background: #f1f5f9;
	padding: 10px 12px;
	display: flex;
	gap: 6px;
}

.saiap-trial-welcome-hero__preview-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e2e8f0;
}

.saiap-trial-welcome-hero__preview-dot:first-child {
	background: #f87171;
}

.saiap-trial-welcome-hero__preview-dot:nth-child(2) {
	background: #fbbf24;
}

.saiap-trial-welcome-hero__preview-dot:nth-child(3) {
	background: #34d399;
}

.saiap-trial-welcome-hero__preview-content {
	padding: 20px;
}

.saiap-trial-welcome-hero__preview-calendar {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.saiap-trial-welcome-hero__preview-day {
	text-align: center;
	padding: 8px 4px;
	border-radius: 8px;
	min-width: 44px;
}

.saiap-trial-welcome-hero__preview-day--active {
	background: #eef2ff;
}

.saiap-trial-welcome-hero__preview-day-num {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1e1e1e;
}

.saiap-trial-welcome-hero__preview-day-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #6366f1;
	margin-top: 4px;
}

.saiap-trial-welcome-hero__preview-stats {
	display: flex;
	gap: 16px;
}

.saiap-trial-welcome-hero__preview-stat {
	flex: 1;
	background: #f8fafc;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
}

.saiap-trial-welcome-hero__preview-stat-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #6366f1;
}

.saiap-trial-welcome-hero__preview-stat-label {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

/* Responsive */
@media (max-width: 960px) {
	.saiap-trial-welcome-hero__content {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.saiap-trial-welcome-hero__visual {
		order: -1;
	}
}

@media (max-width: 600px) {
	.saiap-trial-welcome-hero {
		padding: 24px;
	}

	.saiap-trial-welcome-hero__headline {
		font-size: 24px;
	}

	.saiap-trial-welcome-hero__features {
		grid-template-columns: 1fr;
	}

	.saiap-trial-welcome-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.saiap-trial-welcome-hero__actions .button-hero {
		width: 100%;
		text-align: center;
	}

	.saiap-trial-welcome-hero__secondary-link {
		text-align: center;
	}
}

/* ==========================================================================
   Trial Upgrade Banner
   ========================================================================== */

.saiap-trial-upgrade-banner {
	background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-left: 4px solid #3b82f6;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 0 0 24px;
}

.saiap-trial-upgrade-banner__content {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.saiap-trial-upgrade-banner__icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #3b82f6;
}

.saiap-trial-upgrade-banner__text {
	flex: 1;
	min-width: 200px;
}

.saiap-trial-upgrade-banner__text strong {
	display: block;
	color: #1e40af;
	margin-bottom: 2px;
}

.saiap-trial-upgrade-banner__text span {
	color: #475569;
	font-size: 14px;
}

.saiap-trial-upgrade-banner .button-primary {
	background: #3b82f6;
	border-color: #2563eb;
}

.saiap-trial-upgrade-banner .button-primary:hover {
	background: #2563eb;
	border-color: #1d4ed8;
}

/* ==========================================================================
   Trial Status Badge
   ========================================================================== */

.saiap-trial-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	margin: 24px 0 4px 0;
}

.saiap-trial-status-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	animation: saiap-badge-pulse 2s ease-in-out infinite;
}

@keyframes saiap-badge-pulse {
	0%, 100% {
		box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	}
	50% {
		box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
	}
}

.saiap-trial-status-badge__text {
	color: #166534;
	font-weight: 500;
}

.saiap-trial-status-badge__progress {
	width: 60px;
	height: 4px;
	background: rgba(34, 197, 94, 0.2);
	border-radius: 2px;
	overflow: hidden;
}

.saiap-trial-status-badge__progress-fill {
	height: 100%;
	background: #22c55e;
	border-radius: 2px;
	transition: width 0.3s ease;
}

.saiap-trial-status-badge__separator {
	color: rgba(34, 197, 94, 0.4);
	margin: 0 2px;
}

.saiap-trial-status-badge__upgrade {
	color: #166534;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}

.saiap-trial-status-badge__upgrade:hover {
	color: #15803d;
	text-decoration: underline;
}

/* ==========================================================================
   Expired Trial Paywall
   ========================================================================== */

.saiap-expired-trial-paywall {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1px solid #fcd34d;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	margin: 0 0 24px;
}

.saiap-expired-trial-paywall__icon {
	margin-bottom: 16px;
}

.saiap-expired-trial-paywall__icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #d97706;
	background: rgba(217, 119, 6, 0.1);
	padding: 16px;
	border-radius: 50%;
}

.saiap-expired-trial-paywall__content h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: #92400e;
}

.saiap-expired-trial-paywall__content p {
	margin: 0 0 24px;
	color: #78350f;
	font-size: 15px;
}

.saiap-expired-trial-paywall__actions .button-hero {
	background: #f59e0b;
	border-color: #d97706;
	color: #fff;
	font-size: 16px;
	padding: 12px 32px;
	height: auto;
	line-height: 1.4;
}

.saiap-expired-trial-paywall__actions .button-hero:hover {
	background: #d97706;
	border-color: #b45309;
}

.saiap-expired-trial-paywall__secondary {
	margin: 16px 0 0;
	font-size: 13px;
	color: #92400e;
}

.saiap-expired-trial-paywall__secondary a {
	color: #92400e;
	text-decoration: underline;
}

.saiap-expired-trial-paywall__secondary a:hover {
	color: #78350f;
}

/* ==========================================================================
   Trial CTA Card
   ========================================================================== */

.saiap-trial-cta-card {
	display: flex;
	align-items: center;
	gap: 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin: 0 0 24px;
}

.saiap-trial-cta-card__icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #6366f1;
	flex-shrink: 0;
}

.saiap-trial-cta-card__content {
	flex: 1;
}

.saiap-trial-cta-card__headline {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #1e1e1e;
}

.saiap-trial-cta-card__description {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.saiap-trial-cta-card .button-primary {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #4f46e5;
	white-space: nowrap;
}

.saiap-trial-cta-card .button-primary:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-color: #4338ca;
}

/* Compact variant */
.saiap-trial-cta-card--compact {
	padding: 16px 20px;
	gap: 16px;
}

.saiap-trial-cta-card--compact .saiap-trial-cta-card__headline {
	font-size: 14px;
}

.saiap-trial-cta-card--compact .saiap-trial-cta-card__description {
	font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
	.saiap-trial-cta-card {
		flex-direction: column;
		text-align: center;
	}

	.saiap-trial-cta-card .button-primary {
		width: 100%;
	}
}

/* ==========================================================================
   Settings Trial Banner
   ========================================================================== */

.saiap-settings-trial-banner {
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-left: 4px solid #6366f1;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 0 0 24px;
}

.saiap-settings-trial-banner__content {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.saiap-settings-trial-banner__icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #6366f1;
}

.saiap-settings-trial-banner__text {
	flex: 1;
	min-width: 200px;
}

.saiap-settings-trial-banner__text strong {
	display: block;
	color: #4338ca;
	margin-bottom: 2px;
}

.saiap-settings-trial-banner__text span {
	color: #475569;
	font-size: 14px;
}

.saiap-settings-trial-banner .button-primary {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #4f46e5;
}

.saiap-settings-trial-banner .button-primary:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-color: #4338ca;
}

@media (max-width: 600px) {
	.saiap-settings-trial-banner__content {
		flex-direction: column;
		align-items: flex-start;
	}

	.saiap-settings-trial-banner .button-primary {
		width: 100%;
	}
}

/* ==========================================================================
   Premium Tab Trial Section
   ========================================================================== */

.saiap-premium-trial-section {
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	margin: 0 0 24px;
}

.saiap-premium-trial-section__content h2 {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: #1e1e1e;
}

.saiap-premium-trial-section__content p {
	margin: 0 0 24px;
	color: #64748b;
	font-size: 16px;
}

.saiap-premium-trial-section .button-hero {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #4f46e5;
	color: #fff;
	font-size: 16px;
	padding: 12px 40px;
	height: auto;
	line-height: 1.4;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.saiap-premium-trial-section .button-hero:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-color: #4338ca;
}

.saiap-divider {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 24px 0;
}

.saiap-premium-or-text {
	text-align: center;
	color: #64748b;
	font-size: 14px;
	margin: 0 0 16px;
}

/* Active Trial State on Premium Tab */
.saiap-premium-trial-active {
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	margin: 24px 0;
}

.saiap-premium-trial-active__badge {
	display: inline-block;
	background: rgba(34, 197, 94, 0.15);
	color: #166534;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 12px;
}

.saiap-premium-trial-active__content h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #1e1e1e;
}

.saiap-premium-trial-active .button-primary {
	background: #22c55e;
	border-color: #16a34a;
}

.saiap-premium-trial-active .button-primary:hover {
	background: #16a34a;
	border-color: #15803d;
}

