/* css/prefabdoc.css - Dark mode with warm colors */

@font-face {
	font-family: 'AvenirNextWorld';
	src: url('../fonts/AvenirNextWorld-Regular.otf') format('opentype'),
		 url('../fonts/AvenirNextWorld-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'AvenirNextWorld';
	src: url('../fonts/AvenirNextWorld-Bold.otf') format('opentype'),
		 url('../fonts/AvenirNextWorld-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'AvenirNextWorld', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #1a1a1a;
	color: #c8c8c8;
	height: 100vh;
	display: flex;
	flex-direction: column;
}


/* Orange note */
.note-orange {
	border-left-color: #ff8c42;
	background: #2a1a0a;
	padding: 0.8rem 1.2rem;
	border-radius: 6px;
	border-left: 4px solid #ff8c42;
	margin: 1rem 0;
	color: #e8e8e8;
}

/* Header */
.doc-header {
	padding: 0.8rem 2rem;
	background: #222222;
	border-bottom: 1px solid #333333;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.doc-header h1 {
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	color: #e8e8e8;
	letter-spacing: -0.02em;
}
.doc-header span {
	font-weight: 400;
	font-size: 0.85rem;
	color: #888888;
	margin-left: 0.25rem;
}

.doc-header .update-date {
	color: #ff8c42;
}

.header-icon {
	height: 1.2em;
	width: auto;
	vertical-align: middle;
	margin-right: 0.5rem;
	display: inline-block;
}

.update-date {
	color: #ff8c42;
}

/* Main layout */
.app-container {
	display: flex;
	flex: 1;
	min-height: 0;
}

/* Left sidebar */
.sidebar {
	width: 280px;
	min-width: 280px;
	background: #222222;
	border-right: 1px solid #333333;
	overflow-y: auto;
	padding: 1.5rem 0.8rem;
	flex-shrink: 0;
}

.nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-category {
	margin-bottom: 0.25rem;
}

/* Category header */
.cat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0.8rem;
	border-radius: 6px;
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: #a0a0a0;
	cursor: pointer;
	transition: all 0.15s;
	user-select: none;
}
.cat-header:hover {
	background: #2a2a2a;
	color: #d0d0d0;
}
.cat-header .arrow {
	font-size: 0.6rem;
	opacity: 0.4;
	transition: transform 0.2s ease;
	color: #666666;
}
.cat-header.open .arrow {
	transform: rotate(90deg);
}
.cat-header.open {
	color: #e8e8e8;
}

/* Category page link (hidden - we use the header itself) */
.cat-page-link {
	display: none;
}

/* Subcategories container */
.sub-list {
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.25s ease;
}
.sub-list.open {
	max-height: 800px;
}

.sub-item {
	padding: 0.1rem 0;
}
.sub-link {
	display: block;
	padding: 0.35rem 0.8rem 0.35rem 2rem;
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 400;
	font-size: 0.85rem;
	color: #888888;
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s;
	border-left: 3px solid transparent;
}
.sub-link:hover {
	background: #2a2a2a;
	color: #b0b0b0;
}
.sub-link.active {
	color: #ff8c42;
	font-weight: 700;
	border-left-color: #ff8c42;
	background: #2a2a2a;
}

/* Right content */
.content {
	flex: 1;
	background: #1a1a1a;
	padding: 2rem 2.5rem;
	overflow-y: auto;
}

.content-page {
	max-width: 900px;
	margin: 0 auto;
	background: #1e1e1e;
	border-radius: 8px;
	padding: 2.5rem;
	border: 1px solid #2a2a2a;
}

.content-page h2 {
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	margin-bottom: 1rem;
	color: #e8e8e8;
	letter-spacing: -0.02em;
}
.content-page p {
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 400;
	line-height: 1.7;
	color: #b0b0b0;
	margin-bottom: 1.2rem;
	font-size: 1rem;
}
.content-page .meta {
	color: #888888;
	background: #252525;
	padding: 0.8rem 1.2rem;
	border-radius: 6px;
	border-left: 4px solid #ff8c42;
	font-size: 0.9rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
	width: 4px;
}
.sidebar::-webkit-scrollbar-track {
	background: #222222;
}
.sidebar::-webkit-scrollbar-thumb {
	background: #444444;
	border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
	background: #555555;
}



/* Add to prefabdoc.css */

/* Full width image - maintains aspect ratio */
.image-full {
	width: 100%;
	margin: 1.2rem 0;
	background: #1a1a1a;
	border-radius: 8px;
	overflow: hidden;
}

.full-width-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Inline image - sized to content */
.inline-image {
	margin: 1rem 0;
	display: inline-block;
	background: #1a1a1a;
	border-radius: 6px;
	overflow: hidden;
	max-width: 100%;
}

.inline-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Headings */
.content-page h3 {
	font-family: 'AvenirNextWorld', sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	margin: 1.8rem 0 0.8rem 0;
	color: #e8e8e8;
	letter-spacing: -0.01em;
}

.content-page h3:first-of-type {
	margin-top: 1.5rem;
}

/* Code/Inline text styling */
.content-page code {
	font-family: 'Courier New', monospace;
	background: #252525;
	padding: 0.1rem 0.4rem;
	border-radius: 3px;
	font-size: 0.9rem;
	color: #ff8c42;
}

/* Lists in content */
.content-page ul, .content-page ol {
	margin: 0.8rem 0 1.2rem 1.5rem;
	color: #b0b0b0;
	line-height: 1.7;
}
.content-page li {
	margin-bottom: 0.3rem;
}