/**
 * Nabux — Next.js / React-Style Headless SPA & Showcase Styles
 *
 * @package Nabux
 */

/* ============================================================================
   1. NEXT.JS STYLE TOP PROGRESS BAR
   ========================================================================== */
#nx-spa-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	z-index: 999999;
	background: linear-gradient(90deg, #f5b73c 0%, #a3ff12 50%, #00d4ff 100%);
	box-shadow: 0 0 14px rgba(0, 212, 255, 0.85), 0 0 6px rgba(245, 183, 60, 0.75);
	pointer-events: none;
	opacity: 0;
}

/* ============================================================================
   2. SPA PAGE CONTAINER TRANSITIONS
   ========================================================================== */
#main {
	transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#main.nx-spa-leave {
	opacity: 0.15;
	transform: translateY(4px);
	pointer-events: none;
}

#main.nx-spa-enter {
	animation: nxSpaIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nxSpaIn {
	0% {
		opacity: 0.25;
		transform: translateY(6px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#main, #main.nx-spa-leave, #main.nx-spa-enter {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}

/* ============================================================================
   3. BRAND LOGO STYLES
   ========================================================================== */
.nx-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.nx-logo:hover {
	transform: translateY(-1px);
	opacity: 0.95;
}
.nx-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	filter: drop-shadow(0 0 12px rgba(245, 183, 60, 0.35));
	transition: filter 0.3s ease;
}
.nx-logo:hover .nx-logo-badge {
	filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.5));
}
.nx-logo-mark {
	display: block;
	overflow: visible;
}
.nx-logo-text {
	display: inline-flex;
	align-items: baseline;
	font-size: 20px;
	line-height: 1;
	font-weight: 850;
	letter-spacing: -0.035em;
	color: var(--text, #faf9f8);
}
.nx-logo-name {
	letter-spacing: -0.02em;
	font-weight: 900;
	color: #ffffff;
}
.nx-logo-dot {
	color: var(--brand, #f5b73c);
	font-size: 24px;
	line-height: 0;
	margin: 0 1px;
	font-weight: 900;
}
.nx-logo-tag {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #00d4ff;
	opacity: 0.9;
	text-transform: uppercase;
	margin-inline-start: 2px;
}

/* ============================================================================
   4. REDESIGNED HERO & CYBER SHOWCASE CONSOLE
   ========================================================================== */
.nx-hero-v2 {
	display: grid;
	grid-template-columns: 1.15fr 0.95fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
	padding-block: clamp(32px, 5vw, 56px);
}

.nx-hero-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nx-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(245, 183, 60, 0.08);
	border: 1px solid rgba(245, 183, 60, 0.25);
	color: var(--brand, #f5b73c);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	width: fit-content;
}

.nx-hero-badge .liveDot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #00d4ff;
	box-shadow: 0 0 8px #00d4ff;
}

.nx-hero-title {
	font-size: clamp(32px, 3.8vw, 52px);
	line-height: 1.12;
	letter-spacing: -0.04em;
	font-weight: 900;
	margin: 0;
	color: var(--text, #faf9f8);
}

.nx-hero-title .nx-accent {
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #00d4ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nx-hero-desc {
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.6;
	color: var(--muted, #a8a29e);
	margin: 0;
	max-width: 580px;
}

/* Fast Tags under Search */
.nx-hero-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	margin-top: 4px;
}
.nx-hero-tags-label {
	color: var(--muted, #a8a29e);
	font-weight: 600;
}
.nx-hero-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--surface-1, rgba(250,249,248,.055));
	border: 1px solid var(--line, rgba(255,255,255,0.1));
	color: var(--brand-2, #d6d3d1);
	transition: all 0.2s ease;
	font-weight: 600;
}
.nx-hero-tag:hover {
	background: var(--brand-tint, rgba(245,183,60,0.12));
	border-color: var(--brand, #f5b73c);
	color: var(--brand, #f5b73c);
	transform: translateY(-1px);
}

/* Micro Trust Pills */
.nx-hero-micro-trust {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(12px, 2vw, 20px);
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line, rgba(255,255,255,0.08));
}
.nx-micro-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 650;
	color: var(--text, #faf9f8);
}
.nx-micro-pill svg, .nx-micro-pill span.icon {
	color: var(--brand, #f5b73c);
}

/* ============================================================================
   5. CYBER SHOWCASE CONSOLE (THE CENTERPIECE)
   ========================================================================== */
.nx-hero-console {
	background: linear-gradient(180deg, rgba(28, 24, 21, 0.85) 0%, rgba(18, 15, 13, 0.95) 100%);
	border: 1px solid rgba(245, 183, 60, 0.22);
	border-radius: 24px;
	padding: 22px;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	position: relative;
	overflow: hidden;
}

.nx-hero-console::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
	pointer-events: none;
	border-radius: 50%;
}

/* Switcher Tabs */
.nx-console-tabs {
	display: flex;
	gap: 6px;
	padding: 4px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--line, rgba(255,255,255,0.08));
	border-radius: 14px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-bottom: 18px;
}
.nx-console-tabs::-webkit-scrollbar { display: none; }

.nx-console-tab {
	flex: 1;
	min-width: fit-content;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--muted, #a8a29e);
	background: transparent;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	text-align: center;
}
.nx-console-tab:hover {
	color: var(--text, #faf9f8);
	background: rgba(255, 255, 255, 0.05);
}
.nx-console-tab.is-active {
	color: #0c0a09;
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #e08a5f 100%);
	box-shadow: 0 4px 12px rgba(245, 183, 60, 0.35);
}

/* Panels */
.nx-console-panel {
	display: none;
	flex-direction: column;
	gap: 16px;
	animation: nxFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nx-console-panel.is-active {
	display: flex;
}

@keyframes nxFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.nx-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.nx-panel-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nx-panel-avatar {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--surface-2, rgba(255,255,255,0.07));
	border: 1px solid rgba(245, 183, 60, 0.3);
	display: grid;
	place-items: center;
	overflow: hidden;
	flex-shrink: 0;
}
.nx-panel-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nx-panel-avatar span {
	font-size: 18px;
	font-weight: 850;
	color: var(--brand, #f5b73c);
}

.nx-panel-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nx-panel-cat {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #00d4ff;
}
.nx-panel-name {
	font-size: 18px;
	font-weight: 850;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--text, #faf9f8);
}

.nx-panel-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(143, 174, 124, 0.12);
	border: 1px solid rgba(143, 174, 124, 0.3);
	color: #8fae7c;
	font-size: 11.5px;
	font-weight: 750;
	white-space: nowrap;
}

/* Feature List */
.nx-panel-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line, rgba(255,255,255,0.06));
}
.nx-panel-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text, #faf9f8);
}
.nx-panel-features li svg {
	color: var(--brand, #f5b73c);
	flex-shrink: 0;
}

/* Price & Action Row */
.nx-panel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 4px;
}
.nx-panel-price-box {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nx-panel-price {
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--brand, #f5b73c);
	line-height: 1;
}
.nx-panel-oldprice {
	font-size: 13px;
	color: var(--muted, #a8a29e);
	text-decoration: line-through;
}

.nx-panel-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: flex-end;
}
.nx-btn-quickbuy {
	background: linear-gradient(135deg, var(--brand, #f5b73c) 0%, #e08a5f 100%) !important;
	color: #0c0a09 !important;
	padding: 12px 20px;
	border-radius: 12px;
	font-weight: 850;
	font-size: 14px;
	box-shadow: 0 4px 14px rgba(245, 183, 60, 0.35);
	cursor: pointer;
	border: 0;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nx-btn-quickbuy:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245, 183, 60, 0.5);
}
.nx-btn-details {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--line, rgba(255,255,255,0.12));
	background: var(--surface-1, rgba(250,249,248,.055));
	color: var(--text, #faf9f8);
	font-size: 13px;
	font-weight: 700;
	transition: all 0.2s ease;
}
.nx-btn-details:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 980px) {
	.nx-hero-v2 {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.nx-hero-console {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.nx-panel-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.nx-panel-actions {
		justify-content: stretch;
	}
	.nx-btn-quickbuy, .nx-btn-details {
		flex: 1;
		justify-content: center;
	}
}
