/**
 * NetAura Documentation Hub & Knowledge Base Design System
 * Timeweb Cloud / Stripe / Vercel Architecture tailored for NetAura
 */

/* Full Width Override */
.layout:has(.kb-hub),
.layout.layout--full {
	grid-template-columns: minmax(0, 1fr) !important;
}

/* Master Hub Grid */
.kb-hub {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	width: 100%;
	color: var(--na-text-main);
	font-family: var(--na-font-sans);
}

/* =========================================================
   1. LEFT STICKY SIDEBAR (Timeweb Cloud Navigation Pattern)
   ========================================================= */
.kb-sidebar {
	position: sticky;
	top: 94px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 18px;
	border-radius: var(--na-radius-xl);
	background: var(--na-bg-card);
	border: 1px solid var(--na-border);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: var(--na-shadow-sm);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.kb-sidebar::-webkit-scrollbar {
	width: 4px;
}
.kb-sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.kb-sidebar-section {
	display: flex;
	flex-direction: column;
}

.kb-sidebar-label {
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--na-text-dim);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	padding-left: 8px;
}

.kb-nav-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kb-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-radius: var(--na-radius-md);
	color: var(--na-text-muted);
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	transition: var(--na-transition);
	border: 1px solid transparent;
}

.kb-nav-item:hover {
	color: var(--na-text-main);
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
	transform: translateX(2px);
}

.kb-nav-item.active {
	color: var(--na-cyan) !important;
	background: rgba(0, 240, 255, 0.1) !important;
	border-color: rgba(0, 240, 255, 0.3) !important;
	font-weight: 600;
	box-shadow: 0 0 16px -4px var(--na-cyan-glow);
}

.kb-nav-icon {
	display: grid;
	place-items: center;
	width: 20px;
	font-size: 15px;
	color: inherit;
	flex-shrink: 0;
}

.kb-nav-title {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kb-nav-badge {
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: var(--na-radius-pill);
	background: rgba(255, 255, 255, 0.06);
	color: var(--na-text-dim);
	flex-shrink: 0;
}

.kb-nav-item.active .kb-nav-badge {
	background: rgba(0, 240, 255, 0.2);
	color: var(--na-cyan);
}

/* Sidebar Support Card */
.kb-sidebar-footer {
	margin-top: 6px;
	padding-top: 18px;
	border-top: 1px solid var(--na-border);
}

.kb-support-card {
	padding: 16px;
	border-radius: var(--na-radius-lg);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(0, 240, 255, 0.08));
	border: 1px solid rgba(0, 240, 255, 0.22);
}

.kb-support-title {
	font-family: var(--na-font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--na-text-main);
	margin-bottom: 4px;
}

.kb-support-desc {
	font-size: 12px;
	color: var(--na-text-muted);
	line-height: 1.5;
	margin-bottom: 14px;
}

.kb-support-btn {
	width: 100%;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--na-radius-md);
	background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
	color: #07090e !important;
	font-family: var(--na-font-sans);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 16px -4px rgba(0, 240, 255, 0.5);
	transition: var(--na-transition);
}

.kb-support-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px -3px rgba(0, 240, 255, 0.7);
}

.kb-support-link {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 12px;
	color: var(--na-cyan);
	text-decoration: none;
	font-weight: 600;
	transition: var(--na-transition);
}

.kb-support-link:hover {
	text-decoration: underline;
}

/* =========================================================
   2. MAIN CONTENT AREA
   ========================================================= */
.kb-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

/* =========================================================
   3. HERO BANNER (3D Holographic Cybernetic Render)
   ========================================================= */
.kb-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 44px;
	border: 1px solid var(--na-border);
	border-radius: var(--na-radius-xl);
	background:
		radial-gradient(ellipse 70% 60% at 85% 20%, rgba(0, 240, 255, 0.18), transparent 70%),
		radial-gradient(circle 400px at 0% 100%, rgba(99, 102, 241, 0.22), transparent 70%),
		var(--na-bg-card);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: var(--na-shadow-md);
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 32px;
	align-items: center;
}

.kb-hero-content {
	min-width: 0;
	position: relative;
	z-index: 2;
}

.kb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--na-cyan);
}

.kb-hero h1 {
	margin: 0 0 10px;
	font-family: var(--na-font-display);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--na-text-main);
}

.kb-lead {
	font-size: 15px;
	color: var(--na-text-muted);
	line-height: 1.6;
	margin: 0 0 24px;
	max-width: 620px;
}

/* Integrated Search */
.kb-search {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px 6px 16px;
	border: 1px solid var(--na-border);
	border-radius: var(--na-radius-lg);
	background: rgba(7, 9, 14, 0.75);
	backdrop-filter: blur(12px);
	transition: var(--na-transition);
}

.kb-search:focus-within {
	border-color: var(--na-border-hover);
	box-shadow: 0 0 24px -4px var(--na-cyan-glow);
}

.kb-search input {
	flex: 1;
	min-height: 44px;
	border: 0 !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--na-text-main) !important;
	font-size: 14px;
	font-family: var(--na-font-sans);
}

.kb-search input::placeholder {
	color: var(--na-text-dim);
}

.kb-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--na-radius-md);
	background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
	color: #07090e !important;
	font-family: var(--na-font-sans);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 20px -5px rgba(0, 240, 255, 0.6);
	transition: var(--na-transition);
}

.kb-search button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -3px rgba(0, 240, 255, 0.75);
}

/* Quick Search Chips */
.kb-quick-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.kb-quick-label {
	font-size: 12px;
	color: var(--na-text-dim);
	font-weight: 500;
}

.kb-chip {
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: var(--na-radius-pill);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--na-border);
	color: var(--na-text-muted);
	text-decoration: none !important;
	transition: var(--na-transition);
}

.kb-chip:hover {
	border-color: var(--na-border-hover);
	color: var(--na-cyan);
	background: rgba(0, 240, 255, 0.08);
	transform: translateY(-1px);
}

/* 3D Visual Asset */
.kb-hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.kb-hero-3d-img {
	width: 100%;
	max-width: 240px;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 20px 30px rgba(0, 240, 255, 0.35));
	animation: kbFloat 6s ease-in-out infinite;
}

@keyframes kbFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* =========================================================
   4. SECTION HEADERS & CATEGORY CARDS (Timeweb Grid Style)
   ========================================================= */
.kb-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kb-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.kb-section-title {
	margin: 0;
	font-family: var(--na-font-display);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--na-text-main);
}

.kb-section-desc {
	font-size: 14px;
	color: var(--na-text-muted);
	margin: 4px 0 0;
}

/* Category Grid */
.kb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.kb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px;
	border-radius: var(--na-radius-xl);
	background: var(--na-bg-card);
	border: 1px solid var(--na-border);
	backdrop-filter: blur(16px);
	color: inherit;
	text-decoration: none !important;
	min-height: 180px;
	transition: var(--na-transition);
}

.kb-card:hover {
	transform: translateY(-5px);
	border-color: var(--na-border-hover);
	background: var(--na-bg-card-hover);
	box-shadow: var(--na-shadow-lg), 0 0 25px -5px var(--na-cyan-glow);
}

.kb-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.kb-card-title {
	font-family: var(--na-font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--na-text-main);
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}

.kb-card-desc {
	font-size: 13px;
	color: var(--na-text-muted);
	line-height: 1.5;
	margin-bottom: 18px;
	flex-grow: 1;
}

.kb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--na-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--na-cyan);
}

.kb-card-footer svg {
	transition: var(--na-transition);
}

.kb-card:hover .kb-card-footer svg {
	transform: translateX(4px);
}

/* =========================================================
   5. POPULAR ARTICLES & GUIDES GRID
   ========================================================= */
.kb-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}

.kb-article-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	border-radius: var(--na-radius-lg);
	background: var(--na-bg-card);
	border: 1px solid var(--na-border);
	backdrop-filter: blur(14px);
	color: inherit;
	text-decoration: none !important;
	transition: var(--na-transition);
}

.kb-article-card:hover {
	transform: translateY(-3px);
	border-color: var(--na-border-hover);
	background: var(--na-bg-card-hover);
	box-shadow: 0 8px 24px -6px rgba(0, 240, 255, 0.25);
}

.kb-article-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.kb-article-views {
	font-family: var(--na-font-mono);
	font-size: 11px;
	color: var(--na-text-dim);
}

.kb-article-title {
	font-family: var(--na-font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--na-text-main);
	margin-bottom: 8px;
	line-height: 1.4;
}

.kb-article-excerpt {
	font-size: 13px;
	color: var(--na-text-muted);
	line-height: 1.5;
	margin-bottom: 14px;
	flex-grow: 1;
}

.kb-article-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid var(--na-border);
	font-size: 12px;
	color: var(--na-text-dim);
}

.kb-article-arrow {
	color: var(--na-cyan);
	font-weight: 700;
}

/* =========================================================
   6. ARTICLE DETAIL LAYOUT (Main + Table of Contents)
   ========================================================= */
.kb-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 24px;
	align-items: start;
}

.kb-panel {
	padding: 28px;
	border: 1px solid var(--na-border);
	border-radius: var(--na-radius-xl);
	background: var(--na-bg-card);
	backdrop-filter: blur(16px);
}

.kb-body {
	font-size: 15px;
	line-height: 1.75;
	color: #e2e8f0;
	margin-top: 20px;
}

.kb-body h2,
.kb-body h3 {
	margin: 1.6em 0 0.6em;
	font-family: var(--na-font-display);
	font-weight: 700;
	color: var(--na-text-main);
}

.kb-body a {
	color: var(--na-cyan);
}

.kb-body code {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid rgba(0, 240, 255, 0.2);
	font-family: var(--na-font-mono);
	font-size: 0.9em;
	color: var(--na-cyan);
}

.kb-article-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--na-border);
	font-size: 13px;
	color: var(--na-text-dim);
}

.kb-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Table of Contents */
.kb-toc a {
	display: block;
	padding: 8px 0;
	border-bottom: 1px solid var(--na-border);
	color: var(--na-text-muted);
	text-decoration: none !important;
	font-size: 13px;
	transition: var(--na-transition);
}

.kb-toc a:hover {
	color: var(--na-cyan);
	padding-left: 4px;
}

/* Breadcrumbs */
.kb-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	margin-bottom: 4px;
}

.kb-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: var(--na-radius-pill);
	background: var(--na-bg-card);
	border: 1px solid var(--na-border);
	color: var(--na-cyan) !important;
	font-family: var(--na-font-mono);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	transition: var(--na-transition);
}

.kb-back-btn:hover {
	border-color: var(--na-border-hover);
	background: var(--na-bg-card-hover);
	box-shadow: 0 0 16px -4px var(--na-cyan-glow);
	transform: translateX(-2px);
}

.kb-crumbs-sep {
	color: var(--na-text-dim);
	font-size: 12px;
}

.kb-crumbs-current {
	color: var(--na-text-muted);
	font-weight: 500;
}

/* Voting Widget */
.kb-vote {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
	padding: 16px 20px;
	border-radius: var(--na-radius-lg);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--na-border);
}

.kb-vote button {
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--na-border);
	border-radius: var(--na-radius-pill);
	background: var(--na-bg-card);
	color: var(--na-text-main);
	font-family: var(--na-font-sans);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--na-transition);
}

.kb-vote button:hover {
	border-color: var(--na-border-hover);
	color: var(--na-cyan);
	transform: translateY(-1px);
}

.kb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--na-radius-md);
	background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
	color: #07090e !important;
	font-family: var(--na-font-sans);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 8px 24px -6px rgba(0, 240, 255, 0.6);
	transition: var(--na-transition);
}

.kb-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -4px rgba(0, 240, 255, 0.75);
}

.kb-btn-ghost {
	background: var(--na-bg-card);
	border: 1px solid var(--na-border);
	color: var(--na-text-main) !important;
	box-shadow: none;
}

.kb-btn-ghost:hover {
	background: var(--na-bg-card-hover);
	border-color: var(--na-border-hover);
	transform: translateY(-2px);
}

.kb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 20px;
}

/* Empty State Card */
.kb-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 44px 24px;
	border: 1px dashed var(--na-border);
	border-radius: var(--na-radius-xl);
	background: rgba(15, 20, 32, 0.4);
}

.kb-empty-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--na-radius-lg);
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid rgba(0, 240, 255, 0.25);
	color: var(--na-cyan);
	display: grid;
	place-items: center;
	font-size: 22px;
	margin-bottom: 14px;
}

.kb-empty-title {
	font-family: var(--na-font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--na-text-main);
	margin-bottom: 6px;
}

.kb-empty-text {
	font-size: 14px;
	color: var(--na-text-muted);
	max-width: 480px;
	line-height: 1.5;
}

/* Forms & Inputs */
.kb-form {
	display: grid;
	gap: 16px;
}

.kb-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.kb-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kb-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--na-text-muted);
}

.kb-form input,
.kb-form textarea,
.kb-form select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--na-border) !important;
	border-radius: var(--na-radius-md) !important;
	background: rgba(7, 9, 14, 0.6) !important;
	color: var(--na-text-main) !important;
	font-family: var(--na-font-sans);
	font-size: 14px;
	transition: var(--na-transition);
}

.kb-form input:focus,
.kb-form textarea:focus,
.kb-form select:focus {
	border-color: var(--na-border-hover) !important;
	outline: none;
	box-shadow: 0 0 16px -3px var(--na-cyan-glow);
}

.kb-msg {
	padding: 16px 20px;
	border-radius: var(--na-radius-lg);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--na-border);
	margin-bottom: 12px;
}

.kb-msg.staff {
	border-left: 3px solid var(--na-cyan);
	background: rgba(0, 240, 255, 0.05);
}

/* Lists */
.kb-list {
	display: grid;
	gap: 10px;
}

.kb-list a {
	display: grid;
	gap: 4px;
	padding: 14px 18px;
	border: 1px solid var(--na-border);
	border-radius: var(--na-radius-lg);
	background: rgba(255, 255, 255, 0.03);
	color: inherit;
	text-decoration: none !important;
	transition: var(--na-transition);
}

.kb-list a:hover {
	border-color: var(--na-border-hover);
	background: rgba(255, 255, 255, 0.06);
	transform: translateX(3px);
}

.kb-list a b {
	font-family: var(--na-font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--na-text-main);
}

/* =========================================================
   7. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================= */
@media (max-width: 960px) {
	.kb-hub {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.kb-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		gap: 16px;
	}

	.kb-nav-list {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 8px;
		scrollbar-width: none;
	}
	.kb-nav-list::-webkit-scrollbar {
		display: none;
	}

	.kb-nav-item {
		white-space: nowrap;
		flex-shrink: 0;
	}

	.kb-sidebar-footer {
		display: none;
	}

	.kb-hero {
		grid-template-columns: 1fr;
		padding: 28px 24px;
	}

	.kb-hero-visual {
		display: none;
	}

	.kb-article-layout {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   8. LIVE SEARCH DROPDOWN (Glassmorphism & Quick Results)
   ========================================================= */
.kb-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--na-bg-card-hover, rgba(15, 20, 32, 0.96));
	border: 1px solid var(--na-border-hover, rgba(0, 240, 255, 0.35));
	border-radius: var(--na-radius-lg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 25px -5px var(--na-cyan-glow);
	max-height: 440px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.kb-dropdown-header {
	padding: 12px 18px 8px;
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--na-text-dim);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: 1px solid var(--na-border);
}

.kb-dropdown-list {
	display: flex;
	flex-direction: column;
}

.kb-dropdown-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: inherit;
	text-decoration: none !important;
	transition: var(--na-transition);
}

.kb-dropdown-item:last-child {
	border-bottom: none;
}

.kb-dropdown-item:hover,
.kb-dropdown-item.active {
	background: rgba(0, 240, 255, 0.08);
}

.kb-dropdown-item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.kb-dropdown-item-cat {
	font-family: var(--na-font-mono);
	font-size: 10px;
	font-weight: 600;
	color: var(--na-cyan);
	text-transform: uppercase;
}

.kb-dropdown-item-views {
	font-family: var(--na-font-mono);
	font-size: 10px;
	color: var(--na-text-dim);
}

.kb-dropdown-item-title {
	font-family: var(--na-font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--na-text-main);
}

.kb-dropdown-item-title mark,
.kb-dropdown-item-desc mark {
	background: rgba(0, 240, 255, 0.25);
	color: #fff;
	padding: 1px 3px;
	border-radius: 3px;
}

.kb-dropdown-item-desc {
	font-size: 12px;
	color: var(--na-text-muted);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kb-dropdown-footer {
	padding: 10px 18px;
	background: rgba(7, 9, 14, 0.4);
	border-top: 1px solid var(--na-border);
	text-align: right;
}

.kb-dropdown-all-btn {
	font-size: 12px;
	font-weight: 600;
	color: var(--na-cyan);
	text-decoration: none !important;
}

.kb-dropdown-all-btn:hover {
	text-decoration: underline !important;
}

.kb-dropdown-empty {
	padding: 28px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.kb-dropdown-empty-icon {
	font-size: 24px;
	color: var(--na-text-dim);
}

.kb-dropdown-empty-text {
	font-size: 13px;
	color: var(--na-text-muted);
}

.kb-dropdown-empty-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--na-cyan);
	text-decoration: none;
	margin-top: 4px;
}

.kb-dropdown-empty-link:hover {
	text-decoration: underline;
}

/* Loading spinner inside search */
.kb-search-loading::after {
	content: '';
	position: absolute;
	right: 110px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(0, 240, 255, 0.2);
	border-top-color: var(--na-cyan);
	border-radius: 50%;
	animation: kbSpin 0.7s linear infinite;
	pointer-events: none;
}

@keyframes kbSpin {
	to { transform: rotate(360deg); }
}

/* =========================================================
   9. CODE BLOCKS WITH 1-CLICK COPY
   ========================================================= */
.kb-code-box {
	margin: 22px 0;
	border-radius: var(--na-radius-lg);
	border: 1px solid var(--na-border);
	background: #090d16;
	overflow: hidden;
}

.kb-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid var(--na-border);
}

.kb-code-lang {
	font-family: var(--na-font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--na-cyan);
	letter-spacing: 0.04em;
}

.kb-code-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--na-text-muted);
	font-family: var(--na-font-mono);
	font-size: 11px;
	cursor: pointer;
	transition: var(--na-transition);
}

.kb-code-copy-btn:hover {
	color: var(--na-text-main);
	border-color: var(--na-border-hover);
	background: rgba(255, 255, 255, 0.05);
}

.kb-code-copy-btn.copied {
	color: var(--na-cyan);
	border-color: var(--na-cyan);
	background: rgba(0, 240, 255, 0.1);
}

.kb-code-box pre {
	margin: 0 !important;
	padding: 16px 20px !important;
	background: transparent !important;
	border: none !important;
	overflow-x: auto;
	font-family: var(--na-font-mono);
	font-size: 13px;
	line-height: 1.6;
	color: #e2e8f0;
}

/* ==========================================================================
   Collapsible Accordion Navigation in Sidebar (Timeweb Cloud Pattern)
   ========================================================================== */
.kb-nav-branch {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.kb-nav-row {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}
.kb-nav-row .kb-nav-item {
	flex: 1;
	min-width: 0;
}
.kb-nav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 6px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--na-text-dim);
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 4px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.kb-nav-arrow:hover {
	background: rgba(2, 132, 199, 0.12);
	color: var(--na-cyan, #0284c7);
	border-color: rgba(2, 132, 199, 0.25);
}
.kb-nav-arrow svg {
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}
/* When branch is collapsed, arrow points right (-90deg) */
.kb-nav-branch:not(.is-open) > .kb-nav-row .kb-nav-arrow svg {
	transform: rotate(-90deg);
}
/* When branch is open, arrow points down (0deg) */
.kb-nav-branch.is-open > .kb-nav-row .kb-nav-arrow svg {
	transform: rotate(0deg);
}

/* Submenu container */
.kb-nav-sub {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-left: 6px;
	padding-left: 8px;
	border-left: 1px dashed rgba(2, 132, 199, 0.25);
	margin-top: 2px;
	margin-bottom: 4px;
}
.kb-nav-branch:not(.is-open) > .kb-nav-sub {
	display: none;
}

/* Sub-items */
.kb-nav-item.kb-nav-child {
	font-size: 13px;
	padding: 6px 10px;
	min-height: 32px;
	border-radius: 6px;
	color: #475569;
}
.kb-nav-item.kb-nav-child:hover {
	background: #f1f5f9;
	color: #0284c7;
}
.kb-nav-item.kb-nav-child .kb-nav-icon {
	width: 16px;
	height: 16px;
	font-size: 11px;
}
.kb-nav-item.kb-nav-child.active {
	background: #e0f2fe;
	color: #0284c7;
	font-weight: 700;
}
.kb-nav-item.has-active-child {
	color: #0284c7;
	font-weight: 600;
}

/* Dark theme */
body.dle_theme_dark .kb-nav-sub {
	border-left-color: rgba(56, 189, 248, 0.25);
}
body.dle_theme_dark .kb-nav-arrow:hover {
	background: rgba(0, 240, 255, 0.12);
	color: #38bdf8;
	border-color: rgba(56, 189, 248, 0.3);
}
body.dle_theme_dark .kb-nav-item.kb-nav-child {
	color: #94a3b8;
}
body.dle_theme_dark .kb-nav-item.kb-nav-child:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #38bdf8;
}
body.dle_theme_dark .kb-nav-item.kb-nav-child.active {
	background: rgba(2, 132, 199, 0.25);
	color: #38bdf8;
}


