/*
 * Hubka Theme
 *
 * Phase: 11B.3 — Header & Navigation (revised — Component Class Rule audit)
 * Purpose: Shared navigation link styling, explicitly scoped under both
 * real semantic hooks (`hubka-header__nav`, `hubka-footer__nav`) rather
 * than styling `.wp-block-navigation-item__content` unscoped. Both hooks
 * are listed together because the underlying link treatment (padding,
 * hover, focus, current-item, mobile overlay) is deliberately identical
 * between Header and Footer — Footer's own quieter color/size override
 * remains in footer.css and continues to win via higher specificity.
 *
 * Revision note: previously targeted the bare WordPress core class with
 * no scope at all, even though both semantic hooks already existed in
 * the markup — found and fixed during a Component Class Rule audit.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

.hubka-header__nav .wp-block-navigation-item__content,
.hubka-footer__nav .wp-block-navigation-item__content {
	display: inline-block;
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--medium);
}

.hubka-header__nav .wp-block-navigation-item__content:hover,
.hubka-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.hubka-header__nav .wp-block-navigation-item__content:focus-visible,
.hubka-footer__nav .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.hubka-header__nav .current-menu-item > .wp-block-navigation-item__content,
.hubka-header__nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.hubka-footer__nav .current-menu-item > .wp-block-navigation-item__content,
.hubka-footer__nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.hubka-header__nav .wp-block-navigation__responsive-container-open,
.hubka-header__nav .wp-block-navigation__responsive-container-close,
.hubka-footer__nav .wp-block-navigation__responsive-container-open,
.hubka-footer__nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--text);
	background: none;
	border: none;
	padding: var(--wp--preset--spacing--20);
}

.hubka-header__nav .wp-block-navigation__responsive-container-open:hover,
.hubka-header__nav .wp-block-navigation__responsive-container-close:hover,
.hubka-header__nav .wp-block-navigation__responsive-container-open:focus-visible,
.hubka-header__nav .wp-block-navigation__responsive-container-close:focus-visible,
.hubka-footer__nav .wp-block-navigation__responsive-container-open:hover,
.hubka-footer__nav .wp-block-navigation__responsive-container-close:hover,
.hubka-footer__nav .wp-block-navigation__responsive-container-open:focus-visible,
.hubka-footer__nav .wp-block-navigation__responsive-container-close:focus-visible {
	color: var(--wp--preset--color--primary);
}

.hubka-header__nav .wp-block-navigation__responsive-container-open:focus-visible,
.hubka-header__nav .wp-block-navigation__responsive-container-close:focus-visible,
.hubka-footer__nav .wp-block-navigation__responsive-container-open:focus-visible,
.hubka-footer__nav .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.hubka-header__nav .wp-block-navigation__responsive-container.is-menu-open,
.hubka-footer__nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--background);
	padding: var(--wp--preset--spacing--60);
}

.hubka-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.hubka-footer__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	padding-block: var(--wp--preset--spacing--30);
}
