/* =========================================================
   MANUAL NEURAL DOCS - SISTROM (VERSÃO OTIMIZADA PARA O USUÁRIO)
   ========================================================= */

/* --- VARIÁVEIS GERAIS --- */
:root {
	--bg-dark: #050a15;
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--font-mono: 'JetBrains Mono', monospace;
	--font-sans: 'Inter', sans-serif;

	/* A cor de destaque primária do sistema */
	--accent-cyan: #00f0ff;
}

/* --- ESTRUTURA BASE --- */
.manual-body {
	padding-top: 100px;
	background: var(--bg-dark);
	color: var(--text-main);
	font-family: var(--font-sans);
}

.manual-nav {
	backdrop-filter: blur(10px);
	background: rgba(12, 12, 12, 0.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	position: fixed;
	top: 0; width: 100%; z-index: 1000;
	display: flex; justify-content: space-between; padding: 15px 40px;
}

.manual-layout {
	display: flex;
	gap: 60px;
	position: relative;
	max-width: 1600px;
	margin: 0 auto;
}

/* =========================================================
   ESPINHA NEURAL (SIDEBAR)
   ========================================================= */
.neural-sidebar {
	width: 320px;
	flex-shrink: 0;
	padding-left: 20px;
}

.sidebar-sticky {
	position: sticky;
	top: 100px;
	display: flex;
	gap: 0;
	height: calc(100vh - 120px);
	overflow-y: auto;
	padding-top: 20px;
	padding-bottom: 50px;
}

.sidebar-sticky::-webkit-scrollbar { width: 6px; }
.sidebar-sticky::-webkit-scrollbar-track { background: transparent; }
.sidebar-sticky::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 8px; }

.neural-line {
	width: 2px;
	background: rgba(255, 255, 255, 0.05);
	position: relative;
	margin-left: 10px;
	margin-right: 25px;
}

.neural-pulse {
	position: absolute;
	top: 0; left: -1px;
	width: 4px; height: 20px;
	background: var(--accent-cyan);
	box-shadow: 0 0 15px var(--accent-cyan);
	border-radius: 4px;
	opacity: 0;
	z-index: 2;
}

.neural-menu {
	list-style: none;
	padding: 0; margin: 0;
	width: 100%;
	position: relative;
}

.menu-category {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--accent-cyan);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-top: 25px; margin-bottom: 10px;
	padding-left: 10px;
	opacity: 0.6;
	border-bottom: 1px solid rgba(0, 240, 255, 0.2);
	padding-bottom: 5px;
}
.menu-category:first-child { margin-top: 0; }

.menu-node {
	display: flex; align-items: center; gap: 15px;
	padding: 8px 0;
	cursor: pointer; position: relative;
}

.node-dot {
	width: 8px; height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transition: all 0.3s ease;
	position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
	z-index: 1;
}

.node-label {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--text-muted);
	transition: all 0.3s ease;
}

.menu-node:hover .node-label { color: var(--text-main); }
.menu-node:hover .node-dot { background: var(--text-main); box-shadow: 0 0 10px rgba(255,255,255,0.5); }

.menu-node.active .node-label { color: var(--accent-cyan); font-weight: 700; }
.menu-node.active .node-dot {
	background: var(--accent-cyan);
	box-shadow: 0 0 15px var(--accent-cyan);
	transform: translateY(-50%) scale(1.5);
}


/* =========================================================
   SISTEMA DE TEMAS (Cores em Cascata por Módulo)
   ========================================================= */
/* Por padrão, um módulo herda o Cyan */
.doc-module {
	--theme-color: #00f0ff;
	--theme-color-rgb: 0, 240, 255;
	min-height: 80vh;
	padding-bottom: 100px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
	margin-bottom: 100px;
}

/* Modificadores de Temas para a Tag <article> */
.theme-cyan    { --theme-color: #00f0ff; --theme-color-rgb: 0, 240, 255; }
.theme-green   { --theme-color: #27c93f; --theme-color-rgb: 39, 201, 63; }
.theme-blue    { --theme-color: #3b82f6; --theme-color-rgb: 59, 130, 246; }
.theme-purple  { --theme-color: #a855f7; --theme-color-rgb: 168, 85, 247; }
.theme-orange  { --theme-color: #f97316; --theme-color-rgb: 249, 115, 22; }
.theme-red     { --theme-color: #ef4444; --theme-color-rgb: 239, 68, 68; }
.theme-emerald { --theme-color: #10b981; --theme-color-rgb: 16, 185, 129; }
.theme-yellow  { --theme-color: #eab308; --theme-color-rgb: 234, 179, 8; }
.theme-magenta { --theme-color: #d946ef; --theme-color-rgb: 217, 70, 239; }


/* =========================================================
   CONTEÚDO DO MANUAL (Área Principal)
   ========================================================= */
.manual-content {
	flex-grow: 1;
	padding-bottom: 20vh;
}

/* --- Cabeçalho do Módulo (Sobre o Módulo) --- */
.module-header {
	background: rgba(10, 15, 30, 0.6);
	border: 1px solid rgba(var(--theme-color-rgb), 0.2);
	border-radius: 16px;
	padding: 50px 40px;
	margin-bottom: 50px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Brilho de Fundo Responsivo ao Tema */
.module-header::before {
	content: '';
	position: absolute;
	top: -50%; left: -50%; width: 200%; height: 200%;
	background: radial-gradient(circle at center, rgba(var(--theme-color-rgb), 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.kicker-tag {
	color: var(--theme-color);
	text-shadow: 0 0 10px rgba(var(--theme-color-rgb), 0.5);
	letter-spacing: 3px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	display: block;
	margin-bottom: 15px;
}

.module-title {
	font-size: 3.5rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	letter-spacing: -1.5px;
	line-height: 1.1;
}

.module-title span {
	color: var(--theme-color);
}

.module-description {
	font-size: 1.25rem;
	color: #e2e8f0;
	max-width: 900px;
	line-height: 1.6;
	position: relative;
	z-index: 2;
}

/* --- Subtítulos Padrões --- */
.section-subtitle {
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.5px;
	margin-bottom: 25px;
	border-left: 4px solid var(--theme-color);
	padding-left: 15px;
}


/* =========================================================
   SESSÃO 2: PARA QUE SERVE (COMO FUNCIONA)
   ========================================================= */
.feature-box {
	background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.05) 0%, transparent 100%);
	border: 1px solid rgba(var(--theme-color-rgb), 0.1);
	border-left: 4px solid var(--theme-color);
	padding: 30px;
	border-radius: 0 12px 12px 0;
	margin-bottom: 50px;
}

.feature-box p {
	font-size: 1.15rem;
	color: #cbd5e1;
	line-height: 1.7;
	margin: 0;
}


/* =========================================================
   SESSÃO 3: 3 CENÁRIOS REAIS (CARTÕES)
   ========================================================= */
.scenarios-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 60px;
}

.scenario-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 30px;
	transition: all 0.3s ease;
}

.scenario-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(var(--theme-color-rgb), 0.1);
	border-color: rgba(var(--theme-color-rgb), 0.4);
	background: rgba(var(--theme-color-rgb), 0.02);
}

.scenario-icon {
	font-size: 2.5rem;
	color: var(--theme-color);
	margin-bottom: 20px;
}

.scenario-card h4 {
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 15px;
	font-weight: 600;
}

.scenario-card p {
	color: #94a3b8;
	font-size: 0.95rem;
	line-height: 1.6;
}


/* =========================================================
   SESSÃO 4: GUIA COMPLETO (PASSO A PASSO)
   ========================================================= */
.step-by-step-container {
	margin-top: 30px;
}

.step-item {
	display: flex;
	gap: 25px;
	margin-bottom: 25px;
	background: rgba(255,255,255,0.015);
	padding: 30px;
	border-radius: 12px;
	border: 1px dashed rgba(255,255,255,0.05);
	transition: background 0.3s;
}

.step-item:hover {
	background: rgba(var(--theme-color-rgb), 0.03);
	border-color: rgba(var(--theme-color-rgb), 0.2);
}

.step-number {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background: var(--theme-color);
	color: #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 800;
	box-shadow: 0 0 15px rgba(var(--theme-color-rgb), 0.4);
}

.step-content {
	flex-grow: 1;
}

.step-content h4 {
	font-size: 1.25rem;
	color: var(--theme-color);
	margin-bottom: 15px;
	font-weight: 600;
}

.step-content p {
	color: #cbd5e1;
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 1.05rem;
}

/* Listas dentro do Passo a Passo */
.step-content ul {
	padding-left: 20px;
	margin-bottom: 15px;
}

.step-content ul li {
	color: #cbd5e1;
	line-height: 1.6;
	margin-bottom: 8px;
	font-size: 1rem;
}

.step-content ul li strong {
	color: #fff;
}

/* Dica Mágica (O Pulo do Gato para o Leigo) */
.step-note {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(var(--theme-color-rgb), 0.1);
	color: var(--theme-color);
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 0.95rem;
	border: 1px solid rgba(var(--theme-color-rgb), 0.3);
	margin-top: 10px;
	font-weight: 600;
}

/* =========================================================
   HERO / INTRODUÇÃO (O Cérebro da IA)
   ========================================================= */
.brain-title {
	font-size: 4rem;
	letter-spacing: -2px;
	color: #fff;
	text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
	margin-bottom: 10px;
}

.brain-subtitle {
	font-size: 1.2rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.brain-search-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	z-index: 3;
}

.brain-search-input {
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(0, 240, 255, 0.3);
	color: #fff;
	padding: 15px 25px 15px 50px;
	border-radius: 30px;
	font-family: var(--font-sans);
	font-size: 1.1rem;
	outline: none;
	transition: all 0.3s ease;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.brain-search-input:focus {
	border-color: #00f0ff;
	box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
	background: rgba(0, 20, 30, 0.8);
}

.brain-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	color: #00f0ff;
}

.brain-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	max-width: 1200px;
	z-index: 2;
}

.brain-node {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 12px 20px;
	border-radius: 30px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 10px;
}

.brain-node:hover {
	background: rgba(0, 240, 255, 0.1);
	border-color: #00f0ff;
	color: #fff;
	box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.node-category-tag {
	font-size: 0.65rem;
	background: rgba(255,255,255,0.1);
	padding: 3px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	font-weight: 600;
	font-family: var(--font-mono);
}

.brain-node:hover .node-category-tag {
	background: #00f0ff;
	color: #000;
}

.brain-node.hidden { display: none; }

/* Botão Flutuante IA */
.floating-ai-btn {
	position: fixed;
	bottom: 40px; right: 40px;
	width: 65px; height: 65px;
	background: linear-gradient(135deg, #00f0ff, #0055ff);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 1.8rem;
	box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
	z-index: 9999;
	transition: all 0.3s ease;
}

.floating-ai-btn:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 15px 35px rgba(0, 240, 255, 0.6);
}

.floating-ai-btn::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	border-radius: 50%;
	border: 2px solid #00f0ff;
	animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
	z-index: -1;
}

@keyframes pulseRing {
	0% { transform: scale(1); opacity: 1; }
	100% { transform: scale(1.5); opacity: 0; }
}

.ai-tooltip {
	position: absolute;
	right: 85px;
	background: rgba(0, 20, 30, 0.9);
	border: 1px solid #00f0ff;
	color: #00f0ff;
	padding: 12px 20px;
	border-radius: 20px;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(10px);
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.floating-ai-btn:hover .ai-tooltip {
	opacity: 1;
	transform: translateX(0);
}

/* =========================================================
   HERO / CANVAS DO CÉREBRO (Correção de Fundo)
   ========================================================= */
.neural-connections-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* Deixa o clique passar através dele */
	z-index: 1; /* Fica atrás dos textos e pílulas */
	background: transparent; /* Remove o fundo branco */
}

.brain-header,
.brain-search-container,
.brain-grid {
	position: relative;
	z-index: 2; /* Garante que os textos e botões fiquem acima do Canvas */
}

/* Garante que o texto digitado na busca fique visível */
.brain-search-input {
	color: #ffffff !important;
}