/* =========================================
   ROAI Nav Header Widget
   ========================================= */

.roai-nav-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid #e5e7eb;
	font-family: 'Inter', sans-serif;
}


.admin-bar .roai-nav-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .roai-nav-header {
		top: 46px;
	}
}

.roai-nav-inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 640px) {
	.roai-nav-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
	.roai-nav-inner { padding: 0 2rem; }
}

.roai-nav-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px;
}

/* Logo */
.roai-nav-logo {
	font-size: 1.25rem;
	font-weight: 600;
	color: #7c3aed;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.roai-nav-logo:hover {
	opacity: 0.85;
	color: #7c3aed;
}

/* Gradient CTA button */
.roai-nav-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
	background-size: 200% 100%;
	animation: roai-nav-gradient 3s ease infinite;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.roai-nav-cta-btn:hover,
.roai-nav-cta-btn:focus {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.roai-nav-cta-full {
	width: 100%;
	justify-content: center;
}

@keyframes roai-nav-gradient {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Desktop CTA — hidden below md */
.roai-nav-desktop-cta {
	display: none;
}

@media (min-width: 768px) {
	.roai-nav-desktop-cta {
		display: flex;
		align-items: center;
	}
}

/* Hamburger — visible below md */
.roai-nav-hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #4b5563;
	padding: 0.25rem;
	width: 2rem;
	height: 2rem;
	line-height: 1;
}

.roai-nav-hamburger:hover {
	color: #7c3aed;
}

@media (min-width: 768px) {
	.roai-nav-hamburger {
		display: none;
	}
}

/* Hamburger lines */
.roai-nav-hamburger-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.roai-nav-hamburger-icon span {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: all 0.2s ease;
}

/* Close × icon */
.roai-nav-close-icon {
	display: none;
	font-size: 1.25rem;
	line-height: 1;
}

.roai-nav-hamburger[aria-expanded="true"] .roai-nav-hamburger-icon {
	display: none;
}

.roai-nav-hamburger[aria-expanded="true"] .roai-nav-close-icon {
	display: block;
}

/* Mobile dropdown */
.roai-nav-mobile-menu {
	border-top: 1px solid #e5e7eb;
	background: #fff;
	padding: 0.75rem 0 1rem;
}

.roai-nav-mobile-menu[hidden] {
	display: none !important;
}

@media (min-width: 768px) {
	.roai-nav-mobile-menu {
		display: none !important;
	}
}

.roai-nav-mobile-cta-wrap {
	padding: 0 0.25rem;
}
