/**
 * Header Configurator output — flex ordering + preset hooks.
 *
 * @package Azura_Mega_Menu
 */

/* Top bar: 3-column grid — social | announcement | menu */
.azura-topbar-inner--config {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	gap: 0.75rem 1rem;
	position: relative;
}

.azura-topbar-inner--config .azura-topbar-zone--social {
	grid-column: 1;
	justify-self: start;
	flex: none;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.azura-topbar-inner--config .azura-topbar-zone--announcement {
	grid-column: 2;
	justify-self: center;
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none !important;
	width: auto !important;
	min-width: 0;
	max-width: min(720px, 92vw);
	margin: 0 !important;
	padding-inline: 0;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 2;
}

.azura-topbar-inner--config .azura-topbar-zone--announcement .azura-announcement-slider,
.azura-topbar-inner--config .azura-topbar-zone--announcement .azura-announcement-item,
.azura-topbar-inner--config .azura-topbar-zone--announcement .azura-announcement-text,
.azura-topbar-inner--config .azura-topbar-zone--announcement a.azura-announcement-text {
	pointer-events: auto;
}

.azura-topbar-inner--config .azura-topbar-zone--menu {
	grid-column: 3;
	justify-self: end;
	flex: 0 0 auto;
	margin-left: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	z-index: 1;
}

/* Legacy zone flex fallback (unused when grid columns apply) */
.azura-topbar-inner--config .azura-topbar-zone {
	flex: 1 1 auto;
	min-width: min(100%, 140px);
}

/* Main header: single row of functional slots */
.azura-header-config-slots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem 1.25rem;
	width: 100%;
}

.azura-header-config__slot {
	flex: 0 1 auto;
	min-width: 0;
}

/* Preset hooks (extend in theme or azura-header.css) */
.azura-header--preset-centered .azura-header-config-slots {
	justify-content: center;
}

.azura-header--preset-minimal .azura-header-config-slots {
	gap: 0.5rem 0.75rem;
}

.azura-header--preset-marketplace .azura-header-config-slots {
	justify-content: space-between;
}

/* Style variant hooks */
.azura-header--style-1 {
	/* default — no extra rules */
}

.azura-header--style-2.azura-header--preset-minimal {
	/* paired example */
}

.azura-header--style-3.azura-header--preset-marketplace {
	/* paired example */
}

/* Legacy row builder compatibility (kernel / visual rows) */
.azura-lb-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

/* Settings-driven theme hooks (see Azura_Settings layout.style_variant) */
.azura-style-modern .azura-header-inner {
	background: #fff;
}

.azura-style-dark .azura-header-inner {
	background: #111;
}

.azura-style-dark .azura-logo-text,
.azura-style-dark .azura-mm-trigger-text {
	color: #f5f5f5;
}
