/*
Theme Name: JocoDEV Blocksy Child
Theme URI: https://jocodev.id
Description: Child theme Blocksy untuk JocoDEV — tipografi baca, code block, TOC, author box, CTA, related posts, reading time, progress bar.
Author: Solusi Digital Kreasi
Author URI: https://www.solusidigitalkreasi.com
Template: blocksy
Version: 1.0.1
Text Domain: jocodev-blocksy-child
*/

/* =========================================================
   1. TIPOGRAFI BACA
   ========================================================= */
:root {
	--jv-text: #1f2937;
	--jv-muted: #6b7280;
	--jv-accent: #1559ed;
	--jv-accent-dark: #0d3fc4;
	--jv-border: #e5e7eb;
	--jv-surface: #f8fafc;
	--jv-code-bg: #0f172a;
	--jv-code-text: #e2e8f0;
	--jv-measure: 680px;
}

.single-post .entry-content {
	font-size: 19px;
	line-height: 1.75;
	color: var(--jv-text);
	max-width: var(--jv-measure);
	margin-inline: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.single-post .entry-content > * + * {
	margin-top: 1.4em;
}

.single-post .entry-content p {
	margin-bottom: 0;
}

.single-post .entry-content h2 {
	font-size: 1.7rem;
	line-height: 1.3;
	margin-top: 2.2em;
	margin-bottom: 0.6em;
	scroll-margin-top: 90px;
}

.single-post .entry-content h3 {
	font-size: 1.35rem;
	line-height: 1.35;
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	scroll-margin-top: 90px;
}

.single-post .entry-content h4 {
	font-size: 1.15rem;
	margin-top: 1.5em;
}

.single-post .entry-content a {
	color: var(--jv-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.single-post .entry-content a:hover {
	color: var(--jv-accent-dark);
}

.single-post .entry-content strong {
	color: #111827;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	padding-left: 1.4em;
}

.single-post .entry-content li + li {
	margin-top: 0.4em;
}

.single-post .entry-content img {
	border-radius: 12px;
	height: auto;
}

.single-post .entry-content blockquote {
	margin: 1.6em 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--jv-accent);
	background: var(--jv-surface);
	border-radius: 0 10px 10px 0;
	color: #374151;
	font-style: italic;
}

.single-post .entry-content hr {
	border: 0;
	border-top: 1px solid var(--jv-border);
	margin: 2.4em 0;
}

/* =========================================================
   2. CODE BLOCK
   ========================================================= */
.single-post .entry-content code {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
	background: #f3f4f6;
	color: #b91c1c;
	padding: 0.15em 0.4em;
	border-radius: 5px;
}

.single-post .entry-content pre {
	position: relative;
	background: var(--jv-code-bg);
	color: var(--jv-code-text);
	padding: 1.2em 1.3em;
	border-radius: 12px;
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 1.6em 0;
}

.single-post .entry-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
}

.jv-copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	font-size: 12px;
	padding: 4px 10px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.single-post .entry-content pre:hover .jv-copy-btn {
	opacity: 1;
}

.jv-copy-btn:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   3. TABLE OF CONTENTS (Easy Table of Contents)
   ========================================================= */
.single-post #ez-toc-container {
	background: var(--jv-surface);
	border: 1px solid var(--jv-border);
	border-radius: 12px;
	padding: 1.1em 1.3em;
	margin: 1.8em 0;
	box-shadow: none;
}

.single-post #ez-toc-container .ez-toc-title {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.single-post #ez-toc-container ul li a {
	color: #374151;
	text-decoration: none;
}

.single-post #ez-toc-container ul li a:hover {
	color: var(--jv-accent);
}

@media (min-width: 1200px) {
	.single-post #ez-toc-container {
		position: sticky;
		top: 90px;
	}
}

/* =========================================================
   4. AUTHOR BOX (E-E-A-T)
   ========================================================= */
.jv-author-box {
	display: flex;
	gap: 1.1em;
	align-items: flex-start;
	margin: 2.6em 0 1.4em;
	padding: 1.4em;
	background: var(--jv-surface);
	border: 1px solid var(--jv-border);
	border-radius: 14px;
}

.jv-author-box img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

.jv-author-box .jv-author-name {
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.2em;
	font-size: 1.05rem;
}

.jv-author-box .jv-author-role {
	font-size: 0.85rem;
	color: var(--jv-muted);
	margin: 0 0 0.5em;
}

.jv-author-box .jv-author-bio {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #374151;
	margin: 0;
}

.jv-author-box .jv-author-links {
	margin-top: 0.6em;
	font-size: 0.9rem;
}

.jv-author-box .jv-author-links a {
	color: var(--jv-accent);
	text-decoration: none;
	font-weight: 600;
}

/* =========================================================
   5. CTA KE SOLUSI DIGITAL KREASI
   ========================================================= */
.jv-cta {
	margin: 2.4em 0;
	padding: 1.6em 1.7em;
	border-radius: 16px;
	background: linear-gradient(135deg, #0a0f1d 0%, #16233f 100%);
	color: #e5e7eb;
}

.jv-cta .jv-cta-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.4em;
}

.jv-cta .jv-cta-text {
	font-size: 0.98rem;
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 0 1.1em;
}

.jv-cta .jv-cta-btn {
	display: inline-block;
	background: var(--jv-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	padding: 0.7em 1.4em;
	border-radius: 10px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.jv-cta .jv-cta-btn:hover {
	background: var(--jv-accent-dark);
	transform: translateY(-1px);
}

/* =========================================================
   6. RELATED POSTS
   ========================================================= */
.jv-related {
	margin: 2.6em 0 1em;
}

.jv-related .jv-related-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 1em;
}

.jv-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1em;
}

.jv-related-card {
	display: block;
	border: 1px solid var(--jv-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jv-related-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.jv-related-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.jv-related-card .jv-related-card-body {
	display: block;
	padding: 1.1em 1.2em 1.3em;
}

.jv-related-card .jv-related-card-title {
	display: block;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #111827;
	margin: 0;
	font-weight: 600;
}

/* =========================================================
   7. READING PROGRESS BAR
   ========================================================= */
.jv-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--jv-accent);
	z-index: 9999;
	transition: width 0.1s linear;
}

/* =========================================================
   8. META ARTIKEL
   ========================================================= */
.single-post .entry-meta {
	font-size: 0.9rem;
	color: var(--jv-muted);
}

.single-post .entry-meta a {
	color: var(--jv-muted);
	text-decoration: none;
}

.single-post .entry-meta a:hover {
	color: var(--jv-accent);
}

/* =========================================================
   9. MOBILE
   ========================================================= */
@media (max-width: 768px) {
	.single-post .entry-content {
		font-size: 17px;
	}

	.single-post .entry-content h2 {
		font-size: 1.45rem;
	}

	.single-post .entry-content h3 {
		font-size: 1.2rem;
	}

	.jv-author-box {
		flex-direction: column;
	}
}
