/**
 * Notice Collector — full-width collapsed card, tabbed by severity.
 * Loaded on every admin screen (see includes/class-notice-collector.php).
 */

.aamo-ng-notice-collector {
	--aamo-ng-error: #d63638;
	--aamo-ng-warning: #dba617;
	--aamo-ng-success: #00a32a;
	--aamo-ng-info: #72aee6;
	--aamo-ng-misc: #646970;

	margin: 16px 0;
	border: 1px solid #dcdcde;
	border-left: 4px solid #646970;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.aamo-ng-notice-collector__header {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 10px 16px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	gap: 10px;
}

.aamo-ng-notice-collector__header:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.aamo-ng-notice-collector__summary {
	font-weight: 600;
}

.aamo-ng-notice-collector__badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.aamo-ng-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
}

.aamo-ng-badge--error { background: var( --aamo-ng-error ); }
.aamo-ng-badge--warning { background: var( --aamo-ng-warning ); }
.aamo-ng-badge--success { background: var( --aamo-ng-success ); }
.aamo-ng-badge--info { background: var( --aamo-ng-info ); }
.aamo-ng-badge--misc { background: var( --aamo-ng-misc ); }

.aamo-ng-notice-collector__caret {
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid #50575e;
	border-bottom: 2px solid #50575e;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.aamo-ng-notice-collector__header[aria-expanded="true"] .aamo-ng-notice-collector__caret {
	transform: rotate(-135deg);
}

.aamo-ng-notice-collector__body {
	border-top: 1px solid #dcdcde;
}

.aamo-ng-notice-collector__body.is-collapsed {
	display: none;
}

.aamo-ng-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 8px 16px 0;
	border-bottom: 1px solid #dcdcde;
}

.aamo-ng-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 13px;
	color: #50575e;
}

.aamo-ng-tab:hover {
	color: #1d2327;
}

.aamo-ng-tab.is-active {
	color: #1d2327;
	font-weight: 600;
	border-bottom-color: #2271b1;
}

.aamo-ng-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #f0f0f1;
	font-size: 11px;
	font-weight: 600;
}

.aamo-ng-tab--error.is-active { border-bottom-color: var( --aamo-ng-error ); }
.aamo-ng-tab--warning.is-active { border-bottom-color: var( --aamo-ng-warning ); }
.aamo-ng-tab--success.is-active { border-bottom-color: var( --aamo-ng-success ); }
.aamo-ng-tab--info.is-active { border-bottom-color: var( --aamo-ng-info ); }
.aamo-ng-tab--misc.is-active { border-bottom-color: var( --aamo-ng-misc ); }

.aamo-ng-panels {
	padding: 12px 16px;
}

.aamo-ng-panel > .notice,
.aamo-ng-panel > .updated,
.aamo-ng-panel > .error {
	margin: 0 0 8px;
}

.aamo-ng-panel > .notice:last-child,
.aamo-ng-panel > .updated:last-child,
.aamo-ng-panel > .error:last-child {
	margin-bottom: 0;
}

/**
 * Style: Stacked Sections
 */

.aamo-ng-accordion {
	padding: 4px 16px 12px;
}

.aamo-ng-accordion-section {
	border-bottom: 1px solid #f0f0f1;
}

.aamo-ng-accordion-section:last-child {
	border-bottom: 0;
}

.aamo-ng-accordion-section__header {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	color: #50575e;
}

.aamo-ng-accordion-section__header:hover {
	color: #1d2327;
}

.aamo-ng-accordion-section__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.aamo-ng-accordion-section--error .aamo-ng-accordion-section__dot { background: var( --aamo-ng-error ); }
.aamo-ng-accordion-section--warning .aamo-ng-accordion-section__dot { background: var( --aamo-ng-warning ); }
.aamo-ng-accordion-section--success .aamo-ng-accordion-section__dot { background: var( --aamo-ng-success ); }
.aamo-ng-accordion-section--info .aamo-ng-accordion-section__dot { background: var( --aamo-ng-info ); }
.aamo-ng-accordion-section--misc .aamo-ng-accordion-section__dot { background: var( --aamo-ng-misc ); }

.aamo-ng-accordion-section__label {
	font-weight: 600;
	color: #1d2327;
}

.aamo-ng-accordion-section__caret {
	margin-left: auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid #50575e;
	border-bottom: 2px solid #50575e;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.aamo-ng-accordion-section__header[aria-expanded="true"] .aamo-ng-accordion-section__caret {
	transform: rotate(-135deg);
}

.aamo-ng-accordion-section__panel {
	padding: 0 0 12px 16px;
}

/**
 * Style: Grid of Cards
 */

.aamo-ng-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	padding: 12px 16px;
}

.aamo-ng-grid-card {
	min-width: 0;
	border: 1px solid #dcdcde;
	border-top: 3px solid #646970;
	border-radius: 2px;
	background: #fbfbfc;
}

.aamo-ng-grid-card--error { border-top-color: var( --aamo-ng-error ); }
.aamo-ng-grid-card--warning { border-top-color: var( --aamo-ng-warning ); }
.aamo-ng-grid-card--success { border-top-color: var( --aamo-ng-success ); }
.aamo-ng-grid-card--info { border-top-color: var( --aamo-ng-info ); }
.aamo-ng-grid-card--misc { border-top-color: var( --aamo-ng-misc ); }

.aamo-ng-grid-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid #dcdcde;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.aamo-ng-grid-card__panel {
	max-height: 260px;
	padding: 10px;
	overflow-y: auto;
}
