/*
Theme Name: Gadget Vortixel Child
Theme URI: https://gadgetvortixel.com/
Description: Child theme khusus Gadget Vortixel berbasis Hello Elementor.
Author: Gadget Vortixel
Template: hello-elementor
Version: 1.0.0
Text Domain: gadget-vortixel-child
*/

:root {
	--gv-bg: #f5f5f7;
	--gv-surface: #ffffff;
	--gv-surface-soft: #f8f8fb;
	--gv-text: #141417;
	--gv-body: #64646e;
	--gv-muted: #8b8b96;
	--gv-primary: #684cff;
	--gv-secondary: #c83cff;
	--gv-accent: #328cff;
	--gv-border: rgba(20, 20, 23, 0.10);
	--gv-radius: 26px;
	--gv-shadow: 0 24px 70px rgba(30, 25, 65, 0.10);
}

/* =====================================================
   GLOBAL
===================================================== */

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--gv-bg);
	color: var(--gv-text);
}

body.single-post {
	overflow-x: hidden;
	background:
		radial-gradient(
			circle at top left,
			rgba(104, 76, 255, 0.07),
			transparent 28%
		),
		radial-gradient(
			circle at top right,
			rgba(200, 60, 255, 0.05),
			transparent 26%
		),
		var(--gv-bg);
}

/* =====================================================
   READING PROGRESS
===================================================== */

.gv-reading-progress {
	position: fixed;
	z-index: 999999;
	top: 0;
	left: 0;
	width: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--gv-primary),
		var(--gv-secondary),
		var(--gv-accent)
	);
}

/* =====================================================
   MAIN WRAPPER
===================================================== */

.gv-single {
	display: block;
	width: 100%;
	margin: 0;
	padding: 20px 18px 80px;
}

.gv-container {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.gv-article {
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	background: var(--gv-surface);
	box-shadow: var(--gv-shadow);
}

/* =====================================================
   HERO
===================================================== */

.gv-hero {
	position: relative;
	margin: 0;
	padding: clamp(42px, 7vw, 86px);
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(104, 76, 255, 0.09),
			transparent 38%
		),
		radial-gradient(
			circle at 88% 12%,
			rgba(200, 60, 255, 0.12),
			transparent 26%
		),
		#ffffff;
}

.gv-hero::before {
	content: "";
	position: absolute;
	top: -130px;
	right: -80px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(104, 76, 255, 0.12);
	border-radius: 50%;
	box-shadow:
		0 0 80px rgba(104, 76, 255, 0.08),
		inset 0 0 80px rgba(200, 60, 255, 0.05);
	pointer-events: none;
}

.gv-hero::after {
	content: "";
	position: absolute;
	right: clamp(30px, 7vw, 90px);
	bottom: -52px;
	width: 145px;
	height: 145px;
	border-radius: 32px;
	background: linear-gradient(
		135deg,
		var(--gv-primary),
		var(--gv-secondary)
	);
	transform: rotate(17deg);
	opacity: 0.09;
	pointer-events: none;
}

/* =====================================================
   BREADCRUMB
===================================================== */

.gv-breadcrumb {
	position: relative;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 22px;
	padding: 0;
	color: var(--gv-muted);
	font-size: 14px;
	line-height: 1.5;
}

.gv-breadcrumb a {
	color: var(--gv-primary);
	text-decoration: none;
}

.gv-breadcrumb a:hover {
	color: var(--gv-secondary);
}

/* =====================================================
   CATEGORIES
===================================================== */

.gv-category-list {
	position: relative;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.gv-category-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid rgba(104, 76, 255, 0.20);
	border-radius: 999px;
	background: rgba(104, 76, 255, 0.06);
	color: var(--gv-primary);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.gv-category-list a:hover {
	background: var(--gv-primary);
	color: #ffffff;
	transform: translateY(-2px);
}

/* =====================================================
   TITLE
===================================================== */

.gv-title,
.gv-article .gv-hero h1.gv-title {
	position: relative;
	z-index: 3;
	max-width: 1040px;
	margin: 0;
	padding: 0;
	color: var(--gv-text) !important;
	background: none !important;
	background-image: none !important;
	font-size: clamp(46px, 6.5vw, 84px);
	font-weight: 500;
	line-height: 1.01;
	letter-spacing: -0.055em;
	text-shadow: none;
	text-wrap: balance;
	-webkit-text-fill-color: var(--gv-text) !important;
}

/* =====================================================
   EXCERPT
===================================================== */

.gv-excerpt {
	position: relative;
	z-index: 3;
	max-width: 850px;
	margin: 26px 0 0;
	padding: 0;
	color: var(--gv-body);
	font-size: clamp(17px, 1.9vw, 21px);
	line-height: 1.72;
}

/* =====================================================
   META
===================================================== */

.gv-meta {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	align-items: center;
	margin: 30px 0 0;
	padding: 0;
	color: var(--gv-muted);
	font-size: 14px;
	line-height: 1.5;
}

.gv-meta,
.gv-meta span,
.gv-meta time,
.gv-meta a {
	color: var(--gv-muted);
}

.gv-author {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.gv-author img {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 2px solid rgba(104, 76, 255, 0.40);
	border-radius: 50%;
	object-fit: cover;
}

/* =====================================================
   FEATURED IMAGE
===================================================== */

.gv-featured-image {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #eeeeF4;
}

.gv-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	margin: 0;
	object-fit: cover;
}

/* =====================================================
   CONTENT GRID
===================================================== */

.gv-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 58px;
	padding: clamp(38px, 6vw, 80px);
}

.gv-content {
	min-width: 0;
	color: var(--gv-body);
	font-size: 18px;
	line-height: 1.86;
}

.gv-content > *:first-child {
	margin-top: 0;
}

.gv-content > *:last-child {
	margin-bottom: 0;
}

.gv-content p {
	margin: 0 0 1.45em;
}

.gv-content strong {
	color: var(--gv-text);
	font-weight: 700;
}

.gv-content ul,
.gv-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

.gv-content li {
	margin-bottom: 0.55em;
}

/* =====================================================
   ARTICLE HEADINGS
===================================================== */

.gv-content h2,
.gv-content h3,
.gv-content h4,
.gv-content h5,
.gv-content h6 {
	color: var(--gv-text) !important;
	background: none !important;
	background-image: none !important;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-shadow: none;
	scroll-margin-top: 110px;
	-webkit-text-fill-color: var(--gv-text) !important;
}

.gv-content h2 {
	margin: 1.35em 0 0.55em;
	font-size: clamp(36px, 4.4vw, 58px);
}

.gv-content h3 {
	margin: 1.35em 0 0.55em;
	font-size: clamp(28px, 3vw, 39px);
}

.gv-content h4 {
	margin: 1.3em 0 0.55em;
	font-size: clamp(22px, 2.3vw, 30px);
}

/* =====================================================
   LINKS
===================================================== */

.gv-content a {
	color: var(--gv-primary);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.gv-content a:hover {
	color: var(--gv-secondary);
}

/* =====================================================
   IMAGES
===================================================== */

.gv-content figure {
	margin: 2em 0;
}

.gv-content img {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

.gv-content figcaption {
	margin-top: 10px;
	color: var(--gv-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

/* =====================================================
   BLOCKQUOTE
===================================================== */

.gv-content blockquote {
	margin: 2em 0;
	padding: 26px 30px;
	border-left: 5px solid var(--gv-primary);
	border-radius: 0 18px 18px 0;
	background:
		linear-gradient(
			135deg,
			rgba(104, 76, 255, 0.08),
			rgba(200, 60, 255, 0.04)
		);
	color: #41414a;
	font-size: 1.08em;
}

.gv-content blockquote p:last-child {
	margin-bottom: 0;
}

/* =====================================================
   CODE
===================================================== */

.gv-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: #efedf9;
	color: #5642ba;
	font-size: 0.9em;
}

.gv-content pre {
	max-width: 100%;
	margin: 2em 0;
	padding: 24px;
	overflow-x: auto;
	border-radius: 16px;
	background: #17171c;
	color: #f5f4ff;
}

.gv-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

/* =====================================================
   TABLE
===================================================== */

.gv-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	border-collapse: collapse;
}

.gv-content th,
.gv-content td {
	padding: 12px 14px;
	border: 1px solid var(--gv-border);
	text-align: left;
	vertical-align: top;
}

.gv-content th {
	background: #f1effa;
	color: var(--gv-text);
	font-weight: 800;
}

/* =====================================================
   SIDEBAR
===================================================== */

.gv-sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
}

.gv-card {
	padding: 22px;
	border: 1px solid var(--gv-border);
	border-radius: 20px;
	background: var(--gv-surface-soft);
}

.gv-card + .gv-card {
	margin-top: 18px;
}

.gv-card-title {
	margin: 0 0 14px;
	color: var(--gv-text) !important;
	background: none !important;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	-webkit-text-fill-color: var(--gv-text) !important;
}

/* =====================================================
   SHARE BUTTONS
===================================================== */

.gv-share-links {
	display: grid;
	gap: 10px;
}

.gv-share-links a {
	display: flex;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--gv-text);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.gv-share-links a:hover {
	background: var(--gv-primary);
	color: #ffffff;
	transform: translateY(-2px);
}

/* =====================================================
   TABLE OF CONTENTS
===================================================== */

.gv-toc ol {
	margin: 0;
	padding-left: 19px;
}

.gv-toc li {
	margin: 0;
	padding: 0;
}

.gv-toc a {
	display: block;
	margin-bottom: 10px;
	color: #5d4ab3;
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
}

.gv-toc a:hover {
	color: var(--gv-secondary);
}

/* =====================================================
   TAGS
===================================================== */

.gv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--gv-border);
}

.gv-tags a {
	padding: 8px 12px;
	border-radius: 999px;
	background: #f0edff;
	color: #5944c7;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.gv-tags a:hover {
	background: #e1dbff;
	transform: translateY(-2px);
}

/* =====================================================
   POST NAVIGATION
===================================================== */

.gv-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding:
		0
		clamp(38px, 6vw, 80px)
		clamp(38px, 6vw, 80px);
}

.gv-post-nav > div {
	min-width: 0;
}

.gv-post-nav a {
	display: block;
	height: 100%;
	padding: 22px;
	border: 1px solid var(--gv-border);
	border-radius: 18px;
	background: #fafafe;
	color: var(--gv-text);
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.gv-post-nav a:hover {
	box-shadow: 0 14px 30px rgba(30, 25, 65, 0.10);
	transform: translateY(-3px);
}

.gv-post-nav small {
	display: block;
	margin-bottom: 8px;
	color: var(--gv-primary);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gv-post-nav strong {
	display: block;
	color: var(--gv-text);
	font-size: 16px;
	line-height: 1.45;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
	.gv-content-grid {
		gap: 36px;
	}

	.gv-sidebar {
		top: 100px;
	}
}

/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 920px) {
	.gv-content-grid {
		grid-template-columns: 1fr;
	}

	.gv-sidebar {
		position: static;
	}

	.gv-toc-card {
		display: none;
	}
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
	.gv-single {
		padding: 10px 10px 48px;
	}

	.gv-article {
		border-radius: 18px;
	}

	.gv-hero {
		padding: 30px 30px 44px;
	}

	.gv-hero::after {
		right: 5px;
		bottom: -20px;
		width: 110px;
		height: 110px;
	}

	.gv-breadcrumb {
		margin-bottom: 18px;
		font-size: 13px;
	}

	.gv-category-list {
		gap: 9px;
		margin-bottom: 22px;
	}

	.gv-category-list a {
		padding: 8px 12px;
		font-size: 11px;
	}

	.gv-title,
	.gv-article .gv-hero h1.gv-title {
		font-size: clamp(36px, 10vw, 50px);
		line-height: 1.02;
		letter-spacing: -0.04em;
	}

	.gv-excerpt {
		margin-top: 20px;
		font-size: 16px;
		line-height: 1.65;
	}

	.gv-meta {
		gap: 14px 20px;
		margin-top: 28px;
	}

	.gv-content-grid {
		padding: 34px 28px 42px;
	}

	.gv-content {
		font-size: 17px;
		line-height: 1.78;
	}

	.gv-content h2 {
		font-size: clamp(30px, 9vw, 42px);
	}

	.gv-content h3 {
		font-size: clamp(25px, 7vw, 34px);
	}

	.gv-post-nav {
		grid-template-columns: 1fr;
		padding: 0 28px 42px;
	}
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
	.gv-single {
		padding: 0 0 48px;
	}

	.gv-article {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.gv-hero {
		padding: 26px 26px 40px;
	}

	.gv-content-grid {
		padding: 32px 24px 40px;
	}

	.gv-post-nav {
		padding: 0 24px 40px;
	}
}