/**
 * Shared action-bar footer for the mega-menu variants that cap their panel with
 * evenly-divided actions (footer-actions, full-width).
 *
 * A partial `@use`d by those module entries. Pulls in the `_mega-footer`
 * divider and styles the action row + each action link. Scoped under the band
 * so the action anchors beat `.aureon-menu a` (0,1,1).
 */

@use "mega-footer";

.aureon-mega__footer--actions {
	display: flex;
	flex-wrap: wrap;
}

.aureon-mega .aureon-mega__action {
	display: inline-flex;
	flex: 1 1 0;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	border-radius: var(--aureon-radius-md, 8px);
	font-size: var(--aureon-submenu-font-size, 0.9375rem);
	font-weight: 600;
	color: var(--aureon-submenu-text, var(--aureon-color-text));
	text-decoration: none;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;

	&:hover,
	&:focus-visible {
		background: var(--aureon-submenu-hover-bg, color-mix(in srgb, var(--aureon-submenu-text, var(--aureon-color-text)) 6%, transparent));
		color: var(--aureon-menu-link-hover, var(--aureon-color-link));
	}

	/* The action glyph is inline, not the recessed square tile of a link row. */
	.aureon-mega__icon {
		width: auto;
		height: auto;
		background: none;
		font-size: 1.25rem;
		color: inherit;
	}
}
