/* Site-wide header + footer chrome — violet palette.
   Scoped under .vh-nav and .vh-footer classes added explicitly to the
   header nav and footer. Does NOT affect admin/dashboard page bodies. */

:root {
	--vh-violet-primary: #7C3AED;
	--vh-violet-deep:    #4C1D95;
	--vh-violet-accent:  #A78BFA;
	--vh-violet-surface: #F5F3FF;
	--vh-violet-ink:     #1E1B4B;
	--vh-violet-muted:   #6B7280;
}

/* ========== NAV ========== */
.vh-nav {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid rgba(124, 58, 237, 0.12);
	padding: 14px 40px;
	position: sticky;
	top: 0;
	z-index: 1030;
	transition: background .2s ease, box-shadow .2s ease;
	background-image: none !important; /* override legacy nav-simple gradient */
}

.vh-nav.vh-nav-scrolled {
	box-shadow: 0 8px 30px rgba(76, 29, 149, 0.08);
}

.vh-nav .header-image {
	height: 48px;
	width: auto;
	transition: transform .2s ease;
}

.vh-nav .navbar-nav { gap: 8px !important; }

.vh-nav .nav-link {
	color: var(--vh-violet-ink) !important;
	font-family: Inter, "Open Sans", Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 18px !important;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
	position: relative;
}

.vh-nav .nav-link:hover {
	color: var(--vh-violet-primary) !important;
	background: var(--vh-violet-surface);
	opacity: 1;
}

.vh-nav .nav-link.active {
	color: #ffffff !important;
	background: linear-gradient(135deg, var(--vh-violet-primary), var(--vh-violet-deep));
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

/* Neutralize the legacy ::after underline on active links inside vh-nav */
.vh-nav .nav-item:has(a.active)::after { display: none; }

.vh-nav #head-username {
	color: var(--vh-violet-muted);
	font-weight: 500;
	padding: 10px 12px;
}

.vh-nav .navbar-toggler {
	border: 1px solid rgba(124, 58, 237, 0.3);
	padding: 8px 12px;
	border-radius: 10px;
}
.vh-nav .navbar-toggler:focus-visible {
	outline: 3px solid var(--vh-violet-accent);
	outline-offset: 2px;
}
.vh-nav .navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%237C3AED' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.vh-nav a:focus-visible,
.vh-nav button:focus-visible {
	outline: 3px solid var(--vh-violet-accent);
	outline-offset: 3px;
	border-radius: 999px;
}

@media (max-width: 991px) {
	.vh-nav { padding: 12px 16px; }
	.vh-nav #navbarSupportedContent {
		margin-top: 12px;
		background: #fff;
		border-radius: 16px;
		padding: 12px !important;
		box-shadow: 0 20px 40px rgba(76, 29, 149, 0.12);
	}
}

/* ========== FOOTER ========== */
.vh-footer {
	margin-top: 0;
	color: rgba(255, 255, 255, 0.82);
}

.vh-footer .footer-wrapper {
	background: linear-gradient(135deg, var(--vh-violet-deep) 0%, #2E1065 100%) !important;
	padding: 90px 0 70px !important;
	position: relative;
	overflow: hidden;
}

.vh-footer .footer-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 10% 20%, rgba(167, 139, 250, 0.15), transparent 40%),
		radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.20), transparent 50%);
	pointer-events: none;
}

.vh-footer .footer-wrapper > .container { position: relative; z-index: 1; }

.vh-footer img {
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.vh-footer .vh-footer-heading {
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

.vh-footer .footer-items,
.vh-footer a {
	color: rgba(255, 255, 255, 0.75) !important;
	text-decoration: none;
	transition: color .15s ease;
}

.vh-footer a:hover,
.vh-footer .footer-items:hover {
	color: #fff !important;
	text-decoration: none;
}

.vh-footer .footer-link {
	display: inline-block;
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	padding: 12px 28px;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	text-align: center;
}

.vh-footer .footer-link:hover {
	background: #fff;
	color: var(--vh-violet-deep) !important;
	border-color: #fff;
}

.vh-footer .vh-footer-license {
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 13px;
	line-height: 1.7;
	display: inline-block;
	margin-top: 30px;
	max-width: 100%;
}
.vh-footer .vh-footer-license:hover { color: rgba(255, 255, 255, 0.85) !important; }

.vh-footer .bottom-footer {
	background: #1E1B4B !important;
	color: rgba(255, 255, 255, 0.6) !important;
	padding: 22px 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vh-footer .bottom-footer p { margin-bottom: 0; }
.vh-footer .bottom-footer,
.vh-footer .bottom-footer a {
	color: rgba(255, 255, 255, 0.6) !important;
}
.vh-footer .bottom-footer a:hover { color: #fff !important; }

.vh-footer a:focus-visible {
	outline: 3px solid var(--vh-violet-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Social icons */
.vh-footer .vh-social {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
	justify-content: center;
}
@media (min-width: 576px) {
	.vh-footer .vh-social { justify-content: flex-start; }
}
.vh-footer .vh-social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.vh-footer .vh-social a:hover {
	background: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}
.vh-footer .vh-social a:hover svg { fill: var(--vh-violet-deep); }
.vh-footer .vh-social svg { fill: #fff; width: 18px; height: 18px; }

@media (max-width: 768px) {
	.vh-footer .footer-wrapper { padding: 60px 0 40px !important; }
}
