/**
 * WordPress Dashboard Widget Styles
 *
 * Styles for the ClearPost widget on the WordPress admin homepage.
 */

/* ==========================================================================
   Widget Base
   ========================================================================== */

.saiap-widget {
	padding: 8px;
}

.saiap-widget__icon {
	text-align: center;
	margin-bottom: 12px;
}

.saiap-widget__icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #6366f1;
	background: rgba(99, 102, 241, 0.1);
	padding: 12px;
	border-radius: 12px;
}

.saiap-widget h3 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.saiap-widget p {
	margin: 0 0 16px;
	color: #646970;
	font-size: 13px;
	text-align: center;
}

.saiap-widget .button-hero {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 20px;
	height: auto;
	line-height: 1.5;
}

.saiap-widget__secondary {
	margin-top: 12px !important;
	font-size: 12px !important;
}

.saiap-widget__secondary a {
	color: #646970;
	text-decoration: none;
}

.saiap-widget__secondary a:hover {
	color: #2271b1;
}

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

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

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

/* ==========================================================================
   Upgrade Widget (Has Keys)
   ========================================================================== */

.saiap-widget--upgrade .saiap-widget__icon .dashicons {
	color: #3b82f6;
	background: rgba(59, 130, 246, 0.1);
}

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

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

/* ==========================================================================
   Status Widget (Active Trial / Paid)
   ========================================================================== */

.saiap-widget--status {
	text-align: left;
}

.saiap-widget__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.saiap-widget__status-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.saiap-widget__status-indicator--running {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.saiap-widget__status-indicator--paused {
	background: #9ca3af;
}

.saiap-widget__status-text {
	font-weight: 600;
	font-size: 14px;
}

.saiap-widget--active .saiap-widget__status-text {
	color: #166534;
}

.saiap-widget--paused .saiap-widget__status-text {
	color: #6b7280;
}

/* Trial Badge Wrapper */
.saiap-widget__trial-badge {
	margin-bottom: 16px;
}

.saiap-widget__trial-badge .saiap-trial-status-badge {
	justify-content: flex-start;
	margin-top: 0;
}

/* Stats */
.saiap-widget__stats {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.saiap-widget__stat {
	flex: 1;
	text-align: center;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
}

.saiap-widget__stat-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #1e1e1e;
	line-height: 1.2;
}

.saiap-widget__stat-label {
	display: block;
	font-size: 11px;
	color: #646970;
	margin-top: 2px;
}

/* Message */
.saiap-widget__message {
	text-align: left !important;
	padding: 12px;
	background: #fef3c7;
	border-radius: 6px;
	color: #92400e !important;
}

/* Buttons */
.saiap-widget--status .button {
	display: block;
	width: 100%;
	text-align: center;
}

/* ==========================================================================
   Paused State (Expired Trial)
   ========================================================================== */

.saiap-widget--paused .button-primary {
	background: #f59e0b;
	border-color: #d97706;
}

.saiap-widget--paused .button-primary:hover {
	background: #d97706;
	border-color: #b45309;
}

