/**
 * Frontend Premium Styles for Nouba Mega Menu Builder
 */

/* Menu Item triggers static position for full-screen layout mapping */
.menu-item-has-mega-menu {
	position: static !important;
}

/* Mega Menu Dropdown Wrapper */
.nouba-mega-menu-wrapper {
	position: absolute;
	top: 100%;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%) translateY(15px);
	background: #ffffff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07), 0 5px 15px rgba(0, 0, 0, 0.04);
	border-top: 1px solid #f2f2f2;
	border-bottom: 1px solid #eaeaea;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				visibility 0.3s;
	z-index: 99999;
	pointer-events: none; /* Avoid hovering empty space triggering menu */
}

/* Show Mega Menu on Hover */
.menu-item-has-mega-menu:hover .nouba-mega-menu-wrapper,
.menu-item-has-mega-menu.is-active .nouba-mega-menu-wrapper {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

/* Container */
.nouba-mega-menu-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
	box-sizing: border-box;
}

/* Header Row / Main Heading */
.nouba-mega-menu-header {
	margin-bottom: 30px;
}

.nouba-mega-menu-main-title {
	display: inline-flex;
	align-items: center;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.nouba-mega-menu-main-title .title-arrow {
	display: inline-flex;
	margin-left: 8px;
	color: #94a3b8;
	transition: transform 0.2s ease, color 0.2s ease;
}

.nouba-mega-menu-main-title:hover {
	color: #2563eb;
}

.nouba-mega-menu-main-title:hover .title-arrow {
	transform: translateX(4px);
	color: #2563eb;
}

/* 4-Column Layout Grid */
.nouba-mega-menu-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.6fr 1.2fr;
	gap: 40px;
}

/* General Column Styling */
.nouba-mega-col {
	display: flex;
	flex-direction: column;
}

.nouba-mega-col .col-heading {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	margin: 0 0 20px 0;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.nouba-mega-col .col-sub-heading {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	margin: 30px 0 15px 0;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

/* Link Lists */
.nouba-mega-col .col-links {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nouba-mega-col .col-links li {
	margin: 0;
	padding: 0;
}

.nouba-mega-col .col-links li a {
	display: inline-flex;
	align-items: center;
	color: #334155;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 500;
	transition: color 0.2s ease, transform 0.2s ease;
}

.nouba-mega-col .col-links li a:hover {
	color: #2563eb;
	transform: translateX(3px);
}

/* Custom badges (Flame/Diamond) */
.nouba-mega-col .col-links-badges li a {
	padding: 4px 0;
}

.nouba-mega-col .col-links-badges li a .badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.nouba-mega-col .col-links-badges li a .badge-icon {
	flex-shrink: 0;
}

/* Hot Deals (Flame) */
.nouba-mega-col .col-links-badges li.badge-item-hot a {
	color: #ef4444;
}
.nouba-mega-col .col-links-badges li.badge-item-hot a:hover {
	color: #dc2626;
}

/* Luxury (Diamond) */
.nouba-mega-col .col-links-badges li.badge-item-luxury a {
	color: #d97706; /* premium golden/amber */
}
.nouba-mega-col .col-links-badges li.badge-item-luxury a:hover {
	color: #b45309;
}

/* Column 4 section spacing */
.nouba-mega-col-4 .col-sec {
	margin-bottom: 25px;
}
.nouba-mega-col-4 .col-sec:last-child {
	margin-bottom: 0;
}

/* Column 3: Featured Project Card */
.featured-project-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
}

.featured-img-wrap {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f8fafc;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.featured-img-wrap .featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-project-card:hover .featured-img {
	transform: scale(1.04);
}

/* New launch pulse badge */
.featured-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 5px 12px 5px 8px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	z-index: 2;
}

.pulse-dot {
	width: 6px;
	height: 6px;
	background: #10b981;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

/* Card details underneath the image */
.featured-card-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	padding: 0 4px;
}

.featured-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
	transition: color 0.2s ease;
}

.featured-card-arrow {
	display: inline-flex;
	color: #0f172a;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.featured-project-card:hover .featured-card-title {
	color: #2563eb;
}

.featured-project-card:hover .featured-card-arrow {
	transform: translateX(4px);
	color: #2563eb;
}

/* Responsive Handling */
@media (max-width: 1024px) {
	/* Hide mega menus on tablet/mobile views to let standard navigation builders take over */
	.nouba-mega-menu-wrapper {
		display: none !important;
	}
	
	.menu-item-has-mega-menu {
		position: relative !important;
	}
}
