/* ============================================================
 * Novara v7.1.0 — FLAGSHIP POLISH (Topbar + Logo + Social + Widgets)
 *
 * Goals:
 *  - Modern SVG social icons in topbar (no Unicode glyphs)
 *  - Right-side menu visible & balanced
 *  - Premium logo styling (auto-adapt, responsive, drop-shadow)
 *  - Sidebar widget rhythm
 *  - Dark-mode aware everywhere
 *
 * This file is loaded LAST (priority 999) so its rules win.
 * Loaded automatically by Novara_Theme via enqueue.
 * ============================================================ */

/* ──────────────────────────────────────────────────────────────
 * TOPBAR — MODERNIZED
 * ────────────────────────────────────────────────────────────── */
.novara-topbar {
	background: linear-gradient(90deg, var(--novara-navy, #0F1620) 0%, #1A2332 100%);
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.novara-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	padding: 6px 0;
	gap: 18px;
	flex-wrap: nowrap;
}
.novara-topbar__left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.78);
}
.novara-topbar__date {
	font-weight: 500;
	letter-spacing: 0.01em;
}
.novara-topbar__weather { font-size: 12px; opacity: 0.85; }

/* TOPBAR MENU (right side, before social) */
.novara-topbar__menu {
	margin-left: auto;
	margin-right: 18px;
	display: flex;
	align-items: center;
}
.novara-topbar__menu-list,
.novara-topbar__menu-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	align-items: center;
}
.novara-topbar__menu-list a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 4px 0;
	border-bottom: 1px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.novara-topbar__menu-list a:hover,
.novara-topbar__menu-list .current-menu-item > a {
	color: var(--novara-gold, #F4B942);
	border-bottom-color: var(--novara-gold, #F4B942);
}

/* SOCIAL ICONS — PREMIUM SVG */
.novara-topbar__social {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.novara-topbar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.75);
	background: transparent;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.novara-topbar__social-link svg {
	width: 15px;
	height: 15px;
	display: block;
}
.novara-topbar__social-link:hover {
	color: #fff;
	transform: translateY(-1px);
}

/* Brand-specific hover backgrounds (premium feel) */
.novara-topbar__social-link--facebook:hover  { background: #1877F2; }
.novara-topbar__social-link--twitter:hover   { background: #000;    }
.novara-topbar__social-link--instagram:hover { background: linear-gradient(135deg,#833AB4,#FD1D1D,#FCB045); }
.novara-topbar__social-link--youtube:hover   { background: #FF0000; }
.novara-topbar__social-link--linkedin:hover  { background: #0A66C2; }
.novara-topbar__social-link--tiktok:hover    { background: #000;    }
.novara-topbar__social-link--pinterest:hover { background: #E60023; }
.novara-topbar__social-link--telegram:hover  { background: #229ED9; }
.novara-topbar__social-link--rss:hover       { background: #FF7E00; }

/* Mobile topbar adjustments */
@media (max-width: 768px) {
	.novara-topbar { font-size: 12px; }
	.novara-topbar__inner { padding: 4px 12px; min-height: 34px; gap: 8px; }
	.novara-topbar__menu { display: none; } /* hidden on mobile, surfaced via mobile menu */
	.novara-topbar__date { display: none; }
	.novara-topbar__social { gap: 2px; }
	.novara-topbar__social-link { width: 26px; height: 26px; }
	.novara-topbar__social-link svg { width: 13px; height: 13px; }
}

/* ──────────────────────────────────────────────────────────────
 * LOGO — MODERN POLISH
 * Subtle drop-shadow, auto-color invert hint, hover lift
 * ────────────────────────────────────────────────────────────── */
.novara-header__brand {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.novara-logo-link,
.custom-logo-link {
	position: relative;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
	will-change: transform;
}
.novara-logo-link:hover,
.custom-logo-link:hover {
	transform: translateY(-1px);
}

/* Text logo refinement */
.novara-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading, "Playfair Display", Georgia, serif);
	font-weight: 800;
	font-size: clamp(20px, 2.2vw, 28px);
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--text-primary, #0F1620);
	text-decoration: none;
}
.novara-logo__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--novara-crimson, #E63946);
	box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
	flex-shrink: 0;
	animation: novaraLogoDotPulse 2.4s ease-in-out infinite;
}
.novara-logo__accent {
	color: var(--novara-crimson, #E63946);
}
.novara-logo__text {
	display: inline-block;
}

@keyframes novaraLogoDotPulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15); }
	50%      { box-shadow: 0 0 0 7px rgba(230, 57, 70, 0.05); }
}

/* Image logo subtle polish */
.novara-logo-img {
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.04));
	-webkit-user-drag: none;
	user-select: none;
}

/* Dark mode tuning */
[data-theme="dark"] .novara-logo {
	color: #fff;
}
[data-theme="dark"] .novara-logo__dot {
	background: var(--novara-gold, #F4B942);
	box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.18);
}
[data-theme="dark"] .novara-logo__accent {
	color: var(--novara-gold, #F4B942);
}
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] .novara-logo { color: #fff; }
	[data-theme="auto"] .novara-logo__dot { background: var(--novara-gold, #F4B942); }
	[data-theme="auto"] .novara-logo__accent { color: var(--novara-gold, #F4B942); }
}

/* ──────────────────────────────────────────────────────────────
 * MAIN NAV — refined link feel
 * ────────────────────────────────────────────────────────────── */
.novara-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}
.novara-nav__link,
.novara-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--text-primary, #0F1620);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}
.novara-nav__link:hover,
.novara-nav__list > li > a:hover,
.novara-nav__item--active > .novara-nav__link,
.novara-nav__list > li.current-menu-item > a,
.novara-nav__list > li.current-menu-parent > a {
	color: var(--novara-crimson, #E63946);
	background: rgba(230, 57, 70, 0.06);
}

/* Submenu */
.novara-nav__submenu,
.novara-nav__list ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--bg-primary, #fff);
	border: 1px solid var(--border-color, rgba(0,0,0,0.08));
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	min-width: 220px;
}
.novara-nav__submenu a,
.novara-nav__list ul.sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--text-primary, #0F1620);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}
.novara-nav__submenu a:hover,
.novara-nav__list ul.sub-menu a:hover {
	background: rgba(230, 57, 70, 0.08);
	color: var(--novara-crimson, #E63946);
}

/* ──────────────────────────────────────────────────────────────
 * SIDEBAR WIDGETS — rhythm + premium polish
 * ────────────────────────────────────────────────────────────── */
.novara-sidebar > .novara-widget,
.novara-sidebar > .widget,
.novara-sidebar > section {
	margin-bottom: 28px;
}
.novara-widget {
	background: var(--bg-primary, #fff);
	border-radius: 14px;
	padding: 22px;
	border: 1px solid var(--border-color, rgba(0,0,0,0.06));
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.novara-widget:hover {
	border-color: rgba(230, 57, 70, 0.18);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}
.novara-widget__title {
	font-family: var(--font-heading, "Playfair Display", Georgia, serif);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--novara-crimson, #E63946);
	display: inline-block;
	color: var(--text-primary, #0F1620);
}

/* ──────────────────────────────────────────────────────────────
 * BACKWARDS-COMPATIBILITY: hide legacy unicode-glyph topbar links
 * Some older child themes may still emit the legacy markup with
 * single-character anchors. Cap their width so they don't squash.
 * ────────────────────────────────────────────────────────────── */
.novara-topbar__social a:not(.novara-topbar__social-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: rgba(255, 255, 255, 0.78);
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
}
.novara-topbar__social a:not(.novara-topbar__social-link):hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
