/* ==========================================================================
   SEOvault AI — Action Center Styles
   Loaded only on SEOvault-owned screens that use the global canvas sidebar.
   All selectors are namespaced with seovaultseo-action-center.
   ========================================================================== */

/* Container — vertical stack, sibling after the card deck */
.seovaultseo-action-center {
	background: var(--seovaultseo-card-bg, #fff);
	border: 1px solid var(--seovaultseo-border, #52a2b4);
	border-radius: var(--seovaultseo-radius, 8px);
	box-shadow: var(--seovaultseo-shadow, 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03));
}

/* Header */
.seovaultseo-action-center__header {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f1;
	background: #fafafa;
	border-radius: var(--seovaultseo-radius, 8px) var(--seovaultseo-radius, 8px) 0 0;
}

.seovaultseo-action-center__header h2 {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

/* List */
.seovaultseo-action-center__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Item */
.seovaultseo-action-center__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f1;
}

.seovaultseo-action-center__item:last-child {
	border-bottom: none;
	border-radius: 0 0 var(--seovaultseo-radius, 8px) var(--seovaultseo-radius, 8px);
}

/* Item icon */
.seovaultseo-action-center__item .dashicons {
	flex-shrink: 0;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	color: var(--seovaultseo-primary, #134f5c);
	margin-top: 1px;
}

/* Star icon badge wrapper */
.seovaultseo-action-center__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	margin-top: 1px;
}

.seovaultseo-action-center__icon .dashicons {
	margin-top: 0;
}

/* Severity-based icon colors */
.seovaultseo-action-center__item--warning .dashicons {
	color: var(--seovaultseo-warning, #D97706);
}

.seovaultseo-action-center__item--success .dashicons {
	color: var(--seovaultseo-success, #059669);
}

.seovaultseo-action-center__item--info .dashicons {
	color: var(--seovaultseo-info, #2563EB);
}

/* Review star icon badge */
.seovaultseo-action-center__icon--star {
	background-color: #fff9e6;
	border: 1px solid #ffeeba;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.seovaultseo-action-center__icon--star .dashicons-star-filled {
	color: #f1c40f;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
	transition: transform 0.2s ease-in-out;
}

.seovaultseo-action-center__icon--star:hover .dashicons-star-filled {
	transform: scale(1.1);
}

/* Content area */
.seovaultseo-action-center__content {
	flex: 1;
	min-width: 0;
}

.seovaultseo-action-center__content strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
	margin-bottom: 4px;
}

.seovaultseo-action-center__content p {
	margin: 0 0 8px 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--seovaultseo-muted, #6B7280);
}

/* Actions row */
.seovaultseo-action-center__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.seovaultseo-action-center__actions .button,
.seovaultseo-action-center__actions .button-link {
	margin: 0;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 6px 12px;
	font-size: 11px;
	line-height: 1.4;
}

.seovaultseo-action-center__actions .button.button-small {
	min-height: 28px;
	padding: 6px 12px;
	line-height: 1.4;
}

.seovaultseo-action-center__actions .button-link {
	text-decoration: none;
}

/* Focus styles — keyboard accessibility */
.seovaultseo-action-center__actions .button:focus,
.seovaultseo-action-center__actions .button:focus-visible {
	outline: 2px solid var(--seovaultseo-primary, #134f5c);
	outline-offset: 1px;
	box-shadow: none;
}

/* Responsive — at the global canvas collapse breakpoint, full width */
@media (max-width: 1200px) {
	.seovaultseo-action-center {
		max-width: 100%;
	}
}

/* Responsive — WordPress narrow admin breakpoint */
@media (max-width: 782px) {
	.seovaultseo-action-center__item {
		padding: 12px 12px;
	}

	.seovaultseo-action-center__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.seovaultseo-action-center__actions .button,
	.seovaultseo-action-center__actions .button.button-small,
	.seovaultseo-action-center__actions .button-link {
		width: 100%;
		text-align: center;
	}
}

/* Forced-colors mode — ensure borders and icons remain visible */
@media (forced-colors: active) {
	.seovaultseo-action-center {
		border: 1px solid CanvasText;
	}

	.seovaultseo-action-center__header {
		border-bottom: 1px solid CanvasText;
	}

	.seovaultseo-action-center__item {
		border-bottom: 1px solid CanvasText;
	}

	.seovaultseo-action-center__item .dashicons {
		color: CanvasText;
	}
}

/* Reduced motion — no animations introduced, but guard future changes */
@media (prefers-reduced-motion: reduce) {
	.seovaultseo-action-center,
	.seovaultseo-action-center__item,
	.seovaultseo-action-center__actions .button,
	.seovaultseo-action-center__icon--star .dashicons-star-filled {
		transition: none;
	}
}
