/* Documentation Specific Styles */

.docArticle {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* Two-Column Layout */
.docLayout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	margin-top: 30px;
}

/* Sidebar TOC */
.docSidebar {
	position: relative;
}

.docSidebarSticky {
	position: sticky;
	top: 20px;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.docSidebar h3 {
	color: #2c3e50;
	font-size: 1.1em;
	margin-top: 0;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #dee2e6;
}

#docTOC {
	font-size: 0.9em;
}

#docTOC ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#docTOC li {
	margin-bottom: 8px;
}

#docTOC a {
	color: #495057;
	text-decoration: none;
	display: block;
	padding: 6px 10px;
	border-radius: 4px;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

#docTOC a:hover {
	background: #e9ecef;
	color: #007bff;
	border-left-color: #007bff;
}

#docTOC a.active {
	background: #e7f3ff;
	color: #007bff;
	font-weight: 600;
	border-left-color: #007bff;
}

/* Nested TOC items (h3 subsections) */
#docTOC ul ul {
	padding-left: 15px;
	margin-top: 5px;
}

#docTOC ul ul a {
	font-size: 0.95em;
	padding: 4px 8px;
}

/* Main Content */
.docContent {
	background: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	min-height: 600px;
}

.docContent h1 {
	color: #2c3e50;
	font-size: 2.5em;
	margin-top: 0;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 3px solid #007bff;
}

.docBody {
	max-width: 800px;
}

.docBody hr {
	border: none;
	border-top: 2px solid #ecf0f1;
	margin: 40px 0;
}

/* Feedback Widget */
.docFeedback {
	margin-top: 60px;
	padding: 30px;
	background: #f8f9fa;
	border-radius: 8px;
	text-align: center;
	border-top: 3px solid #007bff;
}

.docFeedback h4 {
	color: #2c3e50;
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.2em;
}

.feedbackBtn {
	padding: 12px 30px;
	margin: 0 10px;
	font-size: 1em;
	border: 2px solid #dee2e6;
	background: white;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.feedbackBtn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feedbackBtn[data-helpful="yes"]:hover {
	background: #d4edda;
	border-color: #28a745;
}

.feedbackBtn[data-helpful="no"]:hover {
	background: #f8d7da;
	border-color: #dc3545;
}

/* Documentation Grid (List View) */
.docsGrid {
	margin-top: 30px;
}

.docsGrid h2 {
	color: #2c3e50;
	font-size: 1.8em;
	margin-top: 40px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #dee2e6;
}

.docsSection {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.docCard {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	border-left: 4px solid #007bff;
}

.docCard:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transform: translateY(-4px);
}

.docCard a {
	display: block;
	padding: 25px;
	text-decoration: none;
	color: inherit;
}

.docCardIcon {
	font-size: 2em;
	color: #007bff;
	margin-bottom: 15px;
}

.docCard h4 {
	color: #2c3e50;
	font-size: 1.3em;
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.docCard p {
	color: #6c757d;
	font-size: 0.95em;
	line-height: 1.6;
	margin: 10px 0;
}

.docCardMeta {
	font-size: 0.85em;
	color: #adb5bd;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

/* Print Styles */
@media print {
	.docSidebar,
	.docFeedback,
	.backLink,
	.breadcrumbs {
		display: none;
	}

	.docLayout {
		grid-template-columns: 1fr;
	}

	.docContent {
		box-shadow: none;
		padding: 0;
	}

	.docContent h1 {
		page-break-after: avoid;
	}

	.docBody h2,
	.docBody h3 {
		page-break-after: avoid;
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.docLayout {
		grid-template-columns: 1fr;
	}

	.docSidebar {
		order: 2;
		margin-top: 40px;
	}

	.docSidebarSticky {
		position: static;
	}

	.docContent {
		order: 1;
	}
}

@media (max-width: 768px) {
	.docArticle {
		padding: 10px;
	}

	.docContent {
		padding: 20px 15px;
	}

	.docContent h1 {
		font-size: 2em;
	}

	.docsSection {
		grid-template-columns: 1fr;
	}

	.feedbackBtn {
		display: block;
		width: 100%;
		margin: 10px 0;
	}
}
