/* ============================================================
   WP Import Export by RockStarLab — Documentation Styles
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--color-primary: #4f46e5;
	--color-primary-dk: #3730a3;
	--color-primary-lt: #ede9fe;
	--color-accent: #7c3aed;
	--color-text: #1e293b;
	--color-muted: #64748b;
	--color-border: #e2e8f0;
	--color-bg: #f8fafc;
	--color-sidebar-bg: #1e1b4b;
	--color-sidebar-txt: #c7d2fe;
	--color-sidebar-act: #818cf8;
	--color-white: #ffffff;

	--color-note-bg: #eff6ff;
	--color-note-border: #3b82f6;
	--color-tip-bg: #f0fdf4;
	--color-tip-border: #22c55e;
	--color-warn-bg: #fffbeb;
	--color-warn-border: #f59e0b;
	--color-danger-bg: #fef2f2;
	--color-danger-border: #ef4444;

	--sidebar-w: 280px;
	--content-max: 860px;
	--radius: 8px;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	display: flex;
	min-height: 100vh;
}

.screenshot-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	border: 2px dashed #c3c4c7;
	border-radius: 12px;
	background: #f6f7f7;
	color: #50575e;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-align: center;
	padding: 18px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
	width: var(--sidebar-w);
	min-height: 100vh;
	background: var(--color-sidebar-bg);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	overflow-y: auto;
	z-index: 100;
}

.sidebar-logo-link,
.sidebar-logo-link:visited {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.sidebar-logo-link:hover {
	text-decoration: none;
	opacity: 0.85;
}

.sidebar-logo {
	padding: 24px 20px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.sidebar-logo img {
	height: 36px;
	width: auto;
	border: 2px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	padding: 3px;
}

.sidebar-logo-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-sidebar-act);
	letter-spacing: 0.03em;
	line-height: 1.3;
}

.sidebar-logo-sub {
	font-size: 11px;
	color: var(--color-sidebar-txt);
	opacity: 0.6;
	letter-spacing: 0.02em;
}

.sidebar-nav {
	padding: 16px 0 24px;
	flex: 1;
}

.nav-section-label {
	padding: 12px 20px 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(199, 210, 254, 0.45);
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 20px;
	font-size: 13.5px;
	color: var(--color-sidebar-txt);
	text-decoration: none !important;
	border-left: 3px solid transparent;
	transition:
		background 0.15s,
		color 0.15s,
		border-color 0.15s;
	line-height: 1.4;
}

.sidebar-nav a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	text-decoration: none !important;
}

.sidebar-nav a.active {
	background: rgba(129, 140, 248, 0.15);
	color: var(--color-sidebar-act);
	border-left-color: var(--color-sidebar-act);
	font-weight: 600;
}

.nav-icon {
	font-size: 15px;
	flex-shrink: 0;
	opacity: 0.8;
}

/* ── PRO nav badge (sidebar) ─────────────────────────────── */
.nav-pro-badge {
	display: inline-flex;
	align-items: center;
	position: relative;
	margin-left: auto;
	padding: 1px 7px;
	border-radius: 100px;
	overflow: hidden;
	background: linear-gradient(100deg, #f59e0b, #ec4899 55%, #8b5cf6);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	text-transform: uppercase;
	flex-shrink: 0;
}

.nav-pro-badge::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		115deg,
		transparent 20%,
		rgba(255, 255, 255, 0.65) 42%,
		transparent 64%
	);
	background-size: 220% 100%;
	background-position: 130% 0;
	animation: nav-pro-shine 3.2s ease-in-out infinite;
	animation-delay: 1.5s;
	pointer-events: none;
}

@keyframes nav-pro-shine {
	0%, 55% { background-position: 130% 0; }
	100%    { background-position: -60% 0; }
}

.sidebar-nav a:hover .nav-pro-badge {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 0 12px rgba(236, 72, 153, 0.55);
}

.sidebar-footer {
	padding: 14px 20px;
	font-size: 11px;
	color: rgba(199, 210, 254, 0.35);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	line-height: 1.5;
}

.sidebar-footer a {
	color: rgba(199, 210, 254, 0.55);
	text-decoration: none !important;
}

.sidebar-footer a:hover {
	color: var(--color-sidebar-act);
}

/* ── Main Content ─────────────────────────────────────────── */
.main {
	margin-left: var(--sidebar-w);
	flex: 1;
	min-width: 0;
}

.main-inner {
	max-width: var(--content-max);
	padding: 48px 48px 80px;
	margin: 0 auto;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--color-border);
}

.page-header .breadcrumb {
	font-size: 12px;
	color: var(--color-muted);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.page-header .breadcrumb a {
	color: var(--color-primary);
	text-decoration: none;
}

.page-header .breadcrumb a:hover {
	text-decoration: underline;
}

.page-header h1 {
	font-size: 30px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.2;
	margin-bottom: 10px;
}

.page-header p {
	font-size: 16px;
	color: var(--color-muted);
	line-height: 1.6;
}

.page-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.badge-free {
	background: var(--color-tip-bg);
	color: #15803d;
}
.badge-pro {
	background: var(--color-primary-lt);
	color: var(--color-primary-dk);
}
.badge-new {
	background: #fff7ed;
	color: #c2410c;
}

/* ── Typography ───────────────────────────────────────────── */
h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--color-text);
	margin: 36px 0 12px;
	line-height: 1.3;
}

h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--color-text);
	margin: 28px 0 8px;
	line-height: 1.35;
}

h4 {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
	margin: 24px 0 6px;
}

p {
	margin-bottom: 14px;
}
p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	padding-left: 22px;
	margin-bottom: 14px;
}

li {
	margin-bottom: 5px;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

strong {
	font-weight: 600;
}

code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	background: #f1f5f9;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 1px 5px;
	color: var(--color-accent);
}

pre {
	background: #1e293b;
	color: #e2e8f0;
	border-radius: var(--radius);
	padding: 18px 20px;
	overflow-x: auto;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.7;
}

pre code {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* ── Callout Boxes ────────────────────────────────────────── */
.callout {
	border-left: 4px solid;
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 14px 18px;
	margin: 20px 0;
	font-size: 14px;
}

.callout-note {
	background: var(--color-note-bg);
	border-color: var(--color-note-border);
}
.callout-tip {
	background: var(--color-tip-bg);
	border-color: var(--color-tip-border);
}
.callout-warn {
	background: var(--color-warn-bg);
	border-color: var(--color-warn-border);
}
.callout-danger {
	background: var(--color-danger-bg);
	border-color: var(--color-danger-border);
}

.callout-title {
	font-weight: 700;
	margin-bottom: 4px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.callout-note .callout-title {
	color: #1d4ed8;
}
.callout-tip .callout-title {
	color: #15803d;
}
.callout-warn .callout-title {
	color: #b45309;
}
.callout-danger .callout-title {
	color: #b91c1c;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.steps li {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	align-items: flex-start;
}

.step-num {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.step-content {
	flex: 1;
}

.step-content strong {
	font-size: 15px;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.feature-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
}

.feature-card-icon {
	font-size: 24px;
	margin-bottom: 10px;
}

.feature-card h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 6px;
}

.feature-card p {
	font-size: 13px;
	color: var(--color-muted);
	margin: 0;
}

/* ── Screenshot Placeholder ───────────────────────────────── */
.screenshot {
	margin: 24px 0;
}

.screenshot img {
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow);
	display: block;
}

.screenshot-placeholder {
	background: #f1f5f9;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius);
	padding: 40px 20px;
	text-align: center;
	color: var(--color-muted);
	font-size: 13px;
}

.screenshot-placeholder .ph-icon {
	font-size: 32px;
	margin-bottom: 8px;
}

.screenshot figcaption,
.screenshot-caption {
	text-align: center;
	font-size: 12px;
	color: var(--color-muted);
	margin-top: 8px;
	font-style: italic;
}

/* ── Options Table ────────────────────────────────────────── */
.options-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.options-table th {
	background: var(--color-primary);
	color: #fff;
	padding: 11px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
}

.options-table td {
	padding: 10px 16px;
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}

.options-table tr:last-child td {
	border-bottom: none;
}

.options-table tr:nth-child(even) td {
	background: #f8fafc;
}

.options-table .opt-name {
	font-weight: 600;
	color: var(--color-text);
	white-space: nowrap;
}

.options-table .opt-desc {
	color: var(--color-muted);
}

/* ── Badges in tables ─────────────────────────────────────── */
.tag {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}

.tag-pro {
	background: var(--color-primary-lt);
	color: var(--color-primary-dk);
}
.tag-free {
	background: var(--color-tip-bg);
	color: #166534;
}
.tag-optional {
	background: #f8fafc;
	color: var(--color-muted);
	border: 1px solid var(--color-border);
}

/* ── Navigation Footer ────────────────────────────────────── */
.doc-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	gap: 16px;
}

.doc-nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	text-decoration: none;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.doc-nav a:hover {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-lt);
	text-decoration: none;
}

.doc-nav .nav-prev {
	margin-right: auto;
}
.doc-nav .nav-next {
	margin-left: auto;
}

.doc-nav .nav-label {
	font-size: 11px;
	color: var(--color-muted);
	display: block;
}

/* ── Hero (index page) ────────────────────────────────────── */
.hero {
	background: linear-gradient(
		135deg,
		var(--color-primary),
		var(--color-accent)
	);
	border-radius: 12px;
	color: #fff;
	padding: 40px 40px 44px;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 10px;
	position: relative;
	color: #fff;
}

.hero p {
	font-size: 16px;
	opacity: 0.88;
	max-width: 600px;
	margin-bottom: 0;
	position: relative;
}

.hero-version {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 100px;
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 14px;
	position: relative;
}

/* ── Quick Links ──────────────────────────────────────────── */
.quick-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin: 28px 0;
}

.quick-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none !important;
	color: var(--color-text) !important;
	font-size: 14px;
	font-weight: 500;
	transition:
		border-color 0.15s,
		box-shadow 0.15s,
		transform 0.15s;
	box-shadow: var(--shadow);
}

.quick-link:hover {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-lt);
	transform: translateY(-1px);
	text-decoration: none !important;
}

.quick-link-icon {
	font-size: 20px;
}

/* ── Blog CTA ─────────────────────────────────────────────── */
.blog-cta {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	margin: 42px 0 28px;
	padding: 24px;
	background:
		radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32%),
		linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ecfdf5 100%);
	border: 1px solid rgba(37, 99, 235, 0.16);
	border-radius: calc(var(--radius) + 6px);
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.blog-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	background: #fff;
	border: 1px solid rgba(37, 99, 235, 0.14);
	border-radius: 18px;
	box-shadow: var(--shadow);
	font-size: 27px;
}

.blog-cta-content h2 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.25;
}

.blog-cta-content p {
	margin: 0;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.6;
}

.blog-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	padding: 11px 16px;
	background: var(--color-primary);
	color: #fff !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
	transition:
		background 0.15s,
		box-shadow 0.15s,
		transform 0.15s;
}

.blog-cta-button:hover {
	background: var(--color-primary-dark);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
	transform: translateY(-1px);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 32px 0;
}

/* ── Mobile ───────────────────────────────────────────────── */
.mobile-menu-btn {
	display: none;
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	background: var(--color-sidebar-bg);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 18px;
	cursor: pointer;
}

@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}

	.sidebar {
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.main {
		margin-left: 0;
	}

	.main-inner {
		padding: 32px 20px 60px;
	}

	.hero {
		padding: 28px 24px 32px;
	}

	.hero h1 {
		font-size: 22px;
	}

	.doc-nav {
		flex-direction: column;
	}

	.blog-cta {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 22px 18px;
	}

	.blog-cta-icon {
		margin: 0 auto;
	}

	.blog-cta-button {
		width: 100%;
	}

	.options-table {
		font-size: 13px;
	}
}
