/**
 * Kingdom Connect Documentation Page Styles
 * Modern SaaS help center styling
 */

.kc-docs-wrapper {
	max-width: 1400px;
	margin: 0 auto;
}

.kc-docs-container {
	display: flex;
	gap: 30px;
	margin-top: 20px;
}

.kc-docs-main {
	flex: 1;
	min-width: 0;
}

.kc-docs-sidebar {
	width: 320px;
	flex-shrink: 0;
}

/* Tabs */
.kc-docs-tabs {
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 30px;
	background: #fff;
	padding: 0;
	border-radius: 8px 8px 0 0;
}

.kc-docs-tabs .nav-tab {
	padding: 15px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	border: none;
	border-bottom: 3px solid transparent;
	background: transparent;
	margin: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.kc-docs-tabs .nav-tab:hover {
	color: #2271b1;
	background: #f6f7f7;
}

.kc-docs-tabs .nav-tab-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	background: #fff;
	font-weight: 600;
}

.kc-docs-tabs .nav-tab .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Content Cards */
.kc-docs-content {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kc-docs-card {
	padding: 40px;
	border-bottom: 1px solid #e0e0e0;
}

.kc-docs-card:last-child {
	border-bottom: none;
}

.kc-docs-title {
	font-size: 28px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 30px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.kc-docs-title .dashicons {
	color: #2271b1;
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.kc-docs-card h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
	margin: 30px 0 15px 0;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.kc-docs-card h3:first-of-type {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.kc-docs-card h4 {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin: 20px 0 10px 0;
}

.kc-docs-card p {
	font-size: 15px;
	line-height: 1.7;
	color: #50575e;
	margin: 15px 0;
}

.kc-docs-card ul,
.kc-docs-card ol {
	margin: 15px 0;
	padding-left: 30px;
}

.kc-docs-card li {
	font-size: 15px;
	line-height: 1.7;
	color: #50575e;
	margin: 8px 0;
}

.kc-docs-card code {
	background: #f0f0f1;
	padding: 3px 8px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	color: #d63638;
}

.kc-docs-card pre {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 20px;
	overflow-x: auto;
	margin: 15px 0;
}

.kc-docs-card pre code {
	background: transparent;
	padding: 0;
	color: #1d2327;
}

.kc-docs-card strong {
	font-weight: 600;
	color: #1d2327;
}

.kc-docs-card a {
	color: #2271b1;
	text-decoration: none;
}

.kc-docs-card a:hover {
	text-decoration: underline;
}

/* Info Boxes */
.kc-docs-info-box {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	padding: 20px;
	margin: 20px 0;
	border-radius: 4px;
}

.kc-docs-info-box.warning {
	background: #fff8e5;
	border-left-color: #dba617;
}

.kc-docs-info-box.success {
	background: #f0f9ff;
	border-left-color: #00a32a;
}

.kc-docs-info-box h4 {
	margin-top: 0;
	color: #1d2327;
}

/* System Health Sidebar */
.kc-docs-sidebar-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 25px;
	margin-bottom: 20px;
}

.kc-docs-sidebar-card h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.kc-docs-sidebar-card h3 .dashicons {
	color: #2271b1;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.kc-docs-status-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #e0e0e0;
}

.kc-docs-status-item:last-child {
	border-bottom: none;
}

.kc-docs-status-label {
	font-size: 14px;
	color: #50575e;
	font-weight: 500;
}

.kc-docs-status-value {
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.kc-docs-status-value.status-ok {
	color: #00a32a;
}

.kc-docs-status-value.status-warning {
	color: #dba617;
}

.kc-docs-status-value.status-error {
	color: #d63638;
}

.kc-docs-status-icon {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

.kc-docs-status-icon.status-ok {
	background: #00a32a;
}

.kc-docs-status-icon.status-warning {
	background: #dba617;
}

.kc-docs-status-icon.status-error {
	background: #d63638;
}

/* Responsive */
@media (max-width: 1200px) {
	.kc-docs-container {
		flex-direction: column;
	}

	.kc-docs-sidebar {
		width: 100%;
	}

	.kc-docs-sidebar-card {
		margin-bottom: 20px;
	}
}

@media (max-width: 782px) {
	.kc-docs-tabs .nav-tab {
		padding: 12px 15px;
		font-size: 13px;
	}

	.kc-docs-card {
		padding: 25px;
	}

	.kc-docs-title {
		font-size: 24px;
	}
}
