/*
 * JK SUPER PLUGIN – Blog & SEO (halaman depan).
 * Memakai warna JK Super Theme (--jks-*) bila tersedia; warna cadangan untuk theme lain.
 */
.jkb-breadcrumb,
.jkb-toc,
.jkb-related,
.jkb-author,
.jkb-share,
.jkb-posts {
	--jkb-primary: var(--jks-link, #1e66f5);
	--jkb-soft: var(--jks-primary-soft, #eef3fe);
	--jkb-border: var(--jks-border, #e5e7eb);
	--jkb-surface: var(--jks-surface, #f5f7fa);
	--jkb-heading: var(--jks-heading, inherit);
	--jkb-muted: var(--jks-text-muted, #6b7280);
	--jkb-radius: var(--jks-radius, 10px);
}

/* Breadcrumb */
.jkb-breadcrumb {
	margin: 0 0 12px;
	color: var(--jkb-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.jkb-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jkb-breadcrumb li:not(:last-child)::after {
	content: "›";
	margin: 0 7px;
	opacity: 0.6;
}

.jkb-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.jkb-breadcrumb a:hover {
	color: var(--jkb-primary);
}

.jkb-breadcrumb [aria-current] {
	overflow: hidden;
	max-width: 32ch;
	color: var(--jkb-heading);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Daftar isi */
.jkb-toc {
	margin: 1.5em 0;
	padding: 14px 18px;
	border: 1px solid var(--jkb-border);
	border-radius: var(--jkb-radius);
	background: var(--jkb-surface);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.jkb-toc summary {
	color: var(--jkb-heading);
	font-weight: 700;
	cursor: pointer;
}

.jkb-toc[open] summary {
	margin-bottom: 8px;
}

.jkb-toc ol {
	margin: 0;
	padding-left: 1.3em;
}

.jkb-toc ol ol {
	margin-top: 4px;
}

.jkb-toc li {
	margin: 4px 0;
}

.entry-content .jkb-toc a,
.jkb-toc a {
	color: inherit;
	text-decoration: none;
}

.jkb-toc a:hover {
	color: var(--jkb-primary);
	text-decoration: underline;
}

/* Tombol share */
.jkb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 1.5em 0;
}

.jkb-share-label {
	margin-right: 4px;
	color: var(--jkb-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.entry-content .jkb-share-btn,
.jkb-share-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform 150ms ease, filter 150ms ease;
}

.jkb-share-btn:hover {
	color: #fff;
	filter: brightness(0.9);
	transform: translateY(-2px);
}

.jkb-share-facebook { background: #1877f2; }
.jkb-share-x { background: #000; }
.jkb-share-whatsapp { background: #128c4b; }
.jkb-share-telegram { background: #1c8adb; }
.jkb-share-pinterest { background: #c8232c; }
.jkb-share-linkedin { background: #0a66c2; }
.jkb-share-copy { background: #4b5563; }

.jkb-share-copy[data-done]::after {
	content: "✓";
	position: absolute;
	margin: -30px 0 0 30px;
	color: #128c4b;
	font-weight: 700;
}

/* Kotak penulis */
.jkb-author {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 32px 0 0;
	padding: 18px;
	border: 1px solid var(--jkb-border);
	border-radius: var(--jkb-radius);
	background: var(--jkb-surface);
}

.jkb-author-avatar {
	flex-shrink: 0;
	border-radius: 50%;
}

.jkb-author-body p {
	margin: 0 0 6px;
}

.jkb-author-name {
	font-weight: 700;
}

.jkb-author-name a {
	color: var(--jkb-heading);
}

.jkb-author-bio {
	color: var(--jkb-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.jkb-author-links {
	font-size: 0.875rem;
}

.jkb-author-links a {
	color: var(--jkb-primary);
}

/* Artikel terkait */
.jkb-related {
	margin-top: 32px;
}

.jkb-related-title {
	margin: 0 0 14px;
	font-size: 1.125rem;
}

.jkb-related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.jkb-related-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.jkb-related-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 8px;
	border-radius: var(--jks-radius-sm, 6px);
	background: var(--jkb-surface);
}

.jkb-related-noimg {
	background: linear-gradient(135deg, var(--jkb-soft), var(--jkb-surface));
}

.jkb-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jkb-related-link {
	display: block;
	color: var(--jkb-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.jkb-related-link:hover {
	color: var(--jkb-primary);
}

/* Iklan */
.jkb-ad {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin: 20px auto;
	text-align: center;
}

.jkb-ad-header {
	margin: 0;
}

.jkb-ad-label {
	display: block;
	margin-bottom: 4px;
	color: var(--jks-text-muted, #6b7280);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jkb-ad-wrap .jkb-ad {
	margin-block: 16px;
}

.post-list > .jkb-ad {
	margin: 0;
	padding-block: 16px;
	border-bottom: 1px solid var(--jks-border, #e5e7eb);
}

.jks-blog-grid .post-list > .jkb-ad {
	grid-column: 1 / -1;
	border: 0;
}

/* Widget artikel */
.jkb-posts {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: jkb;
}

.widget .jkb-posts-item,
.jkb-posts-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-block: 10px;
	border-bottom: 1px solid var(--jkb-border);
}

.jkb-posts-item:first-child {
	padding-top: 0;
}

.jkb-posts-item:last-child {
	border-bottom: 0;
}

.jkb-posts-thumb {
	flex-shrink: 0;
	overflow: hidden;
	width: 72px;
	aspect-ratio: 1;
	border-radius: var(--jks-radius-sm, 6px);
}

.jkb-posts-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jkb-posts-rank {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--jkb-soft);
	color: var(--jkb-primary);
	font-weight: 800;
}

.jkb-posts-link {
	display: block;
	font-weight: 600;
	line-height: 1.4;
}

.jkb-posts-date {
	display: block;
	margin-top: 2px;
	color: var(--jkb-muted);
	font-size: 0.75rem;
}

/* Daftar isi di sidebar (desktop): widget terakhir, menempel, bisa di-scroll */
.jkb-toc-widget {
	display: none;
}

@media (min-width: 992px) {
	.jkb-toc-widget {
		display: block;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.jkb-toc-mobile {
		display: none;
	}
}

.jkb-toc-widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.jkb-toc-widget ol ol {
	margin: 2px 0 4px 12px;
}

.widget.jkb-toc-widget li {
	padding: 0;
	border: 0;
}

.widget.jkb-toc-widget a {
	display: block;
	padding: 5px 10px;
	border-left: 2px solid var(--jks-border, #e5e7eb);
	color: var(--jks-text-muted, #6b7280);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.widget.jkb-toc-widget a:hover {
	color: var(--jks-link, #1e66f5);
}

.widget.jkb-toc-widget a.is-active {
	border-left-color: var(--jks-primary, #1e66f5);
	background: var(--jks-primary-soft, #eef3fe);
	color: var(--jks-link, #1e66f5);
	font-weight: 600;
}

/* Halaman pengalihan link keluar */
.jkb-go {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding-block: 24px 40px;
}

.jkb-go-card,
.jkb-go-article {
	width: 100%;
	max-width: 760px;
}

.jkb-go-card {
	padding: 22px 20px;
	border: 1px solid var(--jks-border, #e5e7eb);
	border-radius: var(--jks-radius, 12px);
	background: var(--jks-bg, #fff);
	box-shadow: var(--jks-shadow, 0 2px 8px rgb(0 0 0 / 0.06));
	text-align: center;
}

.jkb-go-title {
	margin: 0 0 6px;
	font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
}

.jkb-go-message {
	margin: 0 0 8px;
	color: var(--jks-text-muted, #6b7280);
}

/* Iklan: berlabel dan berjarak jelas dari tombol (tidak memancing klik tak sengaja). */
.jkb-go-ad {
	margin: 28px 0;
	overflow: hidden;
	text-align: center;
}

.jkb-go-ad-label {
	display: block;
	margin-bottom: 4px;
	color: var(--jks-text-muted, #6b7280);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jkb-go-box {
	margin: 28px auto;
	padding: 14px 12px;
	border-radius: var(--jks-radius, 12px);
	background: var(--jks-surface, #f5f7fb);
}

.jkb-go-count {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.jkb-go-count span {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--jks-bg, #fff);
	color: var(--jks-link, #1e66f5);
}

.jkb-go-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	margin: 0;
}

.jkb-go-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--jks-hero-1, #143780), var(--jks-hero-2, #1e66f5) 55%, var(--jks-hero-3, #107f63));
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	transition: opacity 0.2s, filter 0.2s;
}

.jkb-go-btn:hover {
	filter: brightness(1.08);
}

.jkb-go-btn.is-wait {
	cursor: not-allowed;
	opacity: 0.45;
	filter: grayscale(0.6);
}

.jkb-go-back {
	color: var(--jks-text-muted, #6b7280);
	font-size: 0.875rem;
}

.jkb-go-note {
	margin: 8px 0 0;
	color: var(--jks-text-muted, #6b7280);
	font-size: 0.75rem;
}

.jkb-go-article {
	padding: 0 4px;
}

.jkb-go-article-kicker {
	margin: 0 0 4px;
	color: var(--jks-link, #1e66f5);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jkb-go-article-title {
	margin: 0 0 14px;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.jkb-go-article .jkb-go-article-title a {
	color: inherit;
	text-decoration: none;
}

.jkb-go-article .jkb-go-article-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-bottom: 16px;
	border-radius: var(--jks-radius, 12px);
}

