/**
 * Global Admin Banner Styles
 *
 * These styles apply to the admin notice banners that appear
 * on ALL WordPress admin pages (not just the plugin page).
 */

/* ==========================================================================
   Base Banner Styles
   ========================================================================== */

.saiap-global-banner {
	margin: 5px 0 15px;
	padding: 0;
	border-left-width: 4px;
}

.saiap-global-banner__content {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

.saiap-global-banner__icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

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

.saiap-global-banner__text strong {
	margin-right: 4px;
}

.saiap-global-banner__text span {
	color: #646970;
}

/* ==========================================================================
   CTA Banners (Start Trial)
   ========================================================================== */

.saiap-global-banner--cta {
	border-left-color: #6366f1;
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.saiap-global-banner--cta .saiap-global-banner__icon {
	color: #6366f1;
}

.saiap-global-banner--cta .button-primary {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #4f46e5;
	color: #fff;
	box-shadow: none;
}

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

/* ==========================================================================
   Upgrade Banners (Has Keys, No Trial)
   ========================================================================== */

.saiap-global-banner--upgrade {
	border-left-color: #3b82f6;
	background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.saiap-global-banner--upgrade .saiap-global-banner__icon {
	color: #3b82f6;
}

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

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

/* ==========================================================================
   Status Banner (Active Trial)
   ========================================================================== */

.saiap-global-banner--status {
	border: none;
	background: transparent;
	padding: 0;
	margin: 5px 0;
}

.saiap-global-banner--status .saiap-global-banner__content {
	padding: 8px 0;
	gap: 8px;
}

.saiap-global-banner__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.saiap-global-banner__status-dot--active {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
	animation: saiap-pulse 2s ease-in-out infinite;
}

@keyframes saiap-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-global-banner__status-link {
	text-decoration: none;
	color: #1e1e1e;
	font-size: 13px;
}

.saiap-global-banner__status-link:hover {
	color: #6366f1;
}

.saiap-global-banner__status-link strong {
	color: #22c55e;
}

.saiap-global-banner__separator {
	color: #d1d5db;
	margin: 0 4px;
}

.saiap-global-banner__upgrade {
	color: #166534;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.saiap-global-banner__upgrade:hover {
	color: #15803d;
	text-decoration: underline;
}

/* ==========================================================================
   Expired Banner
   ========================================================================== */

.saiap-global-banner--expired {
	border-left-color: #f59e0b;
	background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.saiap-global-banner--expired .saiap-global-banner__icon {
	color: #d97706;
}

.saiap-global-banner--expired .saiap-global-banner__text strong {
	color: #92400e;
}

.saiap-global-banner--expired .button-primary {
	background: #f59e0b;
	border-color: #d97706;
}

.saiap-global-banner--expired .button-primary:hover {
	background: #d97706;
	border-color: #b45309;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
	.saiap-global-banner__content {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.saiap-global-banner__text {
		min-width: auto;
	}

	.saiap-global-banner .button {
		width: 100%;
		text-align: center;
	}
}

/* ==========================================================================
   Tracking Consent Prompt (Unified Onboarding)
   ========================================================================== */

.saiap-tracking-consent-prompt {
	margin: 5px 0 15px;
	padding: 0;
	border-left-color: #6366f1;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.saiap-tracking-consent-prompt__content {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	flex-wrap: wrap;
}

.saiap-tracking-consent-prompt__icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #6366f1;
	flex-shrink: 0;
}

.saiap-tracking-consent-prompt__text {
	flex: 1;
	min-width: 200px;
}

.saiap-tracking-consent-prompt__text strong {
	display: block;
	color: #1e1e1e;
	margin-bottom: 2px;
}

.saiap-tracking-consent-prompt__text span {
	color: #646970;
	font-size: 13px;
}

.saiap-tracking-consent-prompt__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.saiap-tracking-consent-prompt__actions .button-primary {
	background: #6366f1;
	border-color: #4f46e5;
}

.saiap-tracking-consent-prompt__actions .button-primary:hover {
	background: #4f46e5;
	border-color: #4338ca;
}

@media (max-width: 600px) {
	.saiap-tracking-consent-prompt__content {
		flex-direction: column;
		align-items: flex-start;
	}

	.saiap-tracking-consent-prompt__actions {
		width: 100%;
	}

	.saiap-tracking-consent-prompt__actions .button {
		flex: 1;
		text-align: center;
	}
}

