/* Documentation — aligned with account / affiliate design language */

.documentation-page {
	--store-accent: var(--sf-navy, #2563eb);
	--store-accent-dark: var(--sf-navy-dark, #1e40af);
	--store-accent-soft: var(--sf-navy-soft, rgba(37, 99, 235, 0.08));
	--store-radius: 14px;
}

.documentation-page__hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--store-radius);
	padding: 1.5rem 1.35rem;
	background: linear-gradient(135deg, var(--store-accent-dark) 0%, var(--store-accent) 55%, var(--sf-navy-light, #3b82f6) 100%);
	box-shadow: 0 10px 32px rgba(37, 99, 235, 0.22);
	color: #fff;
	margin-bottom: 1.25rem;
}

.documentation-page__hero::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
	pointer-events: none;
}

.documentation-page__hero-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
	position: relative;
	z-index: 1;
}

.documentation-page__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 0.4rem;
}

.documentation-page__title {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem;
}

.documentation-page__desc {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 40rem;
	margin: 0;
}

.documentation-page__search {
	min-width: min(100%, 280px);
	max-width: 360px;
	flex: 1 1 240px;
}

.documentation-page__search .input-group {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 12px;
	overflow: hidden;
	backdrop-filter: blur(8px);
}

.documentation-page__search .input-group-text {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.8);
	padding-left: 0.9rem;
}

.documentation-page__search .form-control {
	background: transparent;
	border: 0;
	color: #fff;
	box-shadow: none !important;
	padding-left: 0.35rem;
}

.documentation-page__search .form-control::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.documentation-page__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.documentation-page__nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: #fff;
	color: #475569;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.documentation-page__nav a:hover {
	border-color: rgba(37, 99, 235, 0.35);
	color: var(--store-accent);
	background: var(--store-accent-soft);
	text-decoration: none;
}

.documentation-page__nav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.16);
	color: #64748b;
	font-size: 0.68rem;
	font-weight: 800;
}

.documentation-page__section {
	margin-bottom: 1.5rem;
}

.documentation-page__section-head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.documentation-page__section-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--store-accent-soft);
	color: var(--store-accent);
	font-size: 1.05rem;
	flex-shrink: 0;
}

.documentation-page__section-title {
	font-size: 1rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	letter-spacing: -0.01em;
}

.documentation-page__section-hint {
	font-size: 0.8rem;
	color: #64748b;
	margin: 0.2rem 0 0;
}

.documentation-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.documentation-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.documentation-page__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.doc-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--store-radius);
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	color: inherit;
	text-decoration: none !important;
}

.doc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.22);
	color: inherit;
}

.doc-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, #f8fafc 100%);
	overflow: hidden;
}

.doc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.doc-card__media-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--store-accent);
	font-size: 2rem;
}

.doc-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	border-radius: 999px;
	padding: 0.28rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	backdrop-filter: blur(6px);
}

.doc-card__body {
	padding: 1.1rem 1.15rem 1.15rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.doc-card__title {
	font-weight: 800;
	font-size: 0.95rem;
	color: #0f172a;
	margin-bottom: 0.4rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.doc-card__description {
	color: #64748b;
	font-size: 0.84rem;
	margin-bottom: 1rem;
	flex: 1;
	line-height: 1.45;
}

.doc-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--store-accent);
}

.doc-card__footer i {
	transition: transform 0.2s ease;
}

.doc-card:hover .doc-card__footer i {
	transform: translateX(3px);
}

.documentation-page__empty {
	border: 1px dashed rgba(148, 163, 184, 0.35);
	border-radius: var(--store-radius);
	padding: 2.75rem 1.5rem;
	text-align: center;
	color: #64748b;
	background: #fff;
}

.documentation-page__empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--store-accent-soft);
	color: var(--store-accent);
	font-size: 1.5rem;
	margin-bottom: 0.85rem;
}

.documentation-page__empty p {
	margin: 0;
	font-size: 0.9rem;
}

/* Guide detail */
.documentation-page__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	margin-bottom: 1rem;
	color: #94a3b8;
}

.documentation-page__breadcrumb a {
	color: var(--store-accent);
	font-weight: 700;
	text-decoration: none;
}

.documentation-page__breadcrumb a:hover {
	text-decoration: underline;
}

.documentation-page__btn-ghost {
	font-weight: 600;
	border-radius: 10px;
	padding: 0.55rem 1rem;
	border-color: rgba(255, 255, 255, 0.45) !important;
	color: #fff !important;
}

.documentation-page__btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.documentation-page__category-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.72rem;
	font-weight: 700;
	margin-bottom: 0.55rem;
}

.doc-guide-hero {
	border-radius: var(--store-radius);
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
	margin-bottom: 1.25rem;
}

.doc-guide-hero__screenshot img {
	width: 100%;
	display: block;
}

.doc-guide-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1.25rem;
}

@media (max-width: 991.98px) {
	.doc-guide-layout {
		grid-template-columns: 1fr;
	}
}

.doc-guide-content {
	border-radius: var(--store-radius);
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: #fff;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
	padding: 1.35rem 1.4rem;
}

.doc-guide-sidebar {
	position: sticky;
	top: 1rem;
	align-self: start;
}

.documentation-page__sidebar-card {
	border-radius: var(--store-radius) !important;
	border: 1px solid rgba(148, 163, 184, 0.14) !important;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
	background: #fff;
	overflow: hidden;
}

.documentation-page__sidebar-card .card-body {
	padding: 1.15rem 1.2rem;
}

.documentation-page__sidebar-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.85rem;
}

.documentation-page__sidebar-title i {
	color: var(--store-accent);
}

.doc-related-card {
	display: block;
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	margin-bottom: 0.55rem;
	color: inherit;
	text-decoration: none !important;
	background: #f8fafc;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.doc-related-card:last-child {
	margin-bottom: 0;
}

.doc-related-card:hover {
	border-color: rgba(37, 99, 235, 0.35);
	background: var(--store-accent-soft);
	color: inherit;
}

.doc-related-card__title {
	font-weight: 800;
	font-size: 0.84rem;
	color: #0f172a;
	margin-bottom: 0.2rem;
}

.doc-related-card__desc {
	font-size: 0.78rem;
	color: #64748b;
	line-height: 1.4;
}

.documentation-page__notice {
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid rgba(148, 163, 184, 0.16);
	font-size: 0.86rem;
	color: #475569;
	margin-bottom: 1.15rem;
}

.doc-steps {
	counter-reset: guide-step;
	list-style: none;
}

.doc-steps .doc-step {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
	list-style: none;
}

.doc-steps .doc-step::before {
	content: counter(guide-step);
	counter-increment: guide-step;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--store-accent-soft);
	color: var(--store-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	grid-row: 1;
	grid-column: 1;
}

.doc-steps .doc-step__number {
	display: none;
}

.doc-steps .doc-step > .doc-step__content,
.doc-steps .doc-step > div:not(.doc-step__number) {
	grid-column: 2;
}

.doc-steps .doc-step:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.doc-step__number {
	display: none;
}

.doc-step__title {
	font-size: 1.02rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.35rem;
	display: block;
	list-style: none;
	letter-spacing: -0.01em;
}

.doc-step__body {
	color: #475569;
	display: block;
	list-style: none;
	line-height: 1.55;
	font-size: 0.92rem;
}

.doc-steps ol,
.doc-steps ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.doc-content .ql-content img,
.doc-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	margin: 1rem 0;
}

@media (max-width: 575.98px) {
	.documentation-page__search {
		max-width: none;
		width: 100%;
	}

	.documentation-page__hero-row > .min-w-0 {
		width: 100%;
	}
}
