/* ============================================================
 * Novara v7.3.1 — TOPBAR + MENU FIX
 *
 * Ensures topbar elements (social icons, menu, weather) and menu
 * icons always render correctly, even when some settings are blank.
 * Pure additive — overrides nothing structural.
 * ============================================================ */

/* ──────────────────────────────────────────────
 * Topbar admin-hint social icons (only seen by admins)
 * ────────────────────────────────────────────── */
.novara-topbar__social-link--hint {
	opacity: 0.42;
	transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
	position: relative;
}
.novara-topbar__social-link--hint:hover {
	opacity: 1;
	transform: translateY(-1px);
}
.novara-topbar__social-link--hint::after {
	content: "+";
	position: absolute;
	top: -3px; right: -3px;
	width: 12px; height: 12px;
	background: var(--novara-gold, #F4B942);
	color: #0F1620;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 800;
	line-height: 12px;
	text-align: center;
	pointer-events: none;
}

/* ──────────────────────────────────────────────
 * Topbar menu fallback (quick links from pages)
 * ────────────────────────────────────────────── */
.novara-topbar__menu--fallback .novara-topbar__menu-list,
.novara-topbar__menu--admin-only .novara-topbar__menu-list {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
}
.novara-topbar__menu-hint a {
	font-size: 11.5px !important;
	padding: 3px 10px !important;
	background: rgba(244, 185, 66, 0.15);
	color: var(--novara-gold, #F4B942) !important;
	border-radius: 999px !important;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border: 1px dashed rgba(244, 185, 66, 0.4);
	transition: background 0.2s ease;
}
.novara-topbar__menu-hint a:hover {
	background: rgba(244, 185, 66, 0.25);
	color: var(--novara-gold, #F4B942) !important;
}

/* ──────────────────────────────────────────────
 * Weather pill polish
 * ────────────────────────────────────────────── */
.novara-topbar__weather {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.78);
	padding: 3px 10px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 999px;
	transition: background 0.2s ease;
}
.novara-topbar__weather:hover {
	background: rgba(255, 255, 255, 0.1);
}
.novara-topbar__weather-temp {
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

/* ──────────────────────────────────────────────
 * Menu icons (emoji prefix)
 * ────────────────────────────────────────────── */
.novara-nav__icon {
	display: inline-block;
	font-size: 0.95em;
	line-height: 1;
	margin-right: 4px;
	font-style: normal;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color", sans-serif;
	vertical-align: -1px;
	transform: translateZ(0); /* keep crisp on Retina */
}
@media (max-width: 768px) {
	.novara-nav__icon { font-size: 1em; margin-right: 6px; }
}

/* ──────────────────────────────────────────────
 * Bookmarks button — always visible (not just logged-in)
 * ────────────────────────────────────────────── */
.novara-bookmarks-btn {
	position: relative;
}
.novara-bookmarks-btn .novara-icon-btn__badge {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 16px; height: 16px;
	background: var(--novara-crimson, #E63946);
	color: #fff;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

/* ──────────────────────────────────────────────
 * Mobile: hide weather pill, keep date hidden, keep socials
 * ────────────────────────────────────────────── */
@media (max-width: 640px) {
	.novara-topbar__weather { display: none; }
	.novara-topbar__menu--fallback,
	.novara-topbar__menu--admin-only { display: none; }
	.novara-topbar__social-link--hint { display: none; } /* clean on mobile */
}

/* ──────────────────────────────────────────────
 * Logo text safety: keep visible in any header bg
 * ────────────────────────────────────────────── */
.novara-header .novara-logo {
	color: var(--text-primary, #0F1620);
}
[data-theme="dark"] .novara-header .novara-logo,
[data-theme="dark"] .novara-header .novara-logo__text {
	color: #fff !important;
}
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] .novara-header .novara-logo,
	[data-theme="auto"] .novara-header .novara-logo__text {
		color: #fff !important;
	}
}
