/* Gadget Compare HP - tampilan bersih ala aplikasi (kartu membulat, kaca buram, tombol pil) */
.gc-root, .gc-bar, .gc-disclaimer {
	--gc-card: #fff;
	--gc-fg: #1d1d1f;
	--gc-mut: #6e6e73;
	--gc-line: rgba(0, 0, 0, 0.08);
	--gc-soft: rgba(0, 0, 0, 0.05);
	--gc-ac: #0071e3;
	--gc-aclink: #0071e3;
	--gc-tint: rgba(0, 113, 227, 0.1);
	--gc-best: rgba(52, 199, 89, 0.16);
	--gc-bestfg: #1a7f37;
	--gc-glass: rgba(255, 255, 255, 0.72);
	--gc-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
	.gc-root, .gc-bar, .gc-disclaimer {
		--gc-card: #1c1c1e;
		--gc-fg: #f5f5f7;
		--gc-mut: #98989d;
		--gc-line: rgba(255, 255, 255, 0.12);
		--gc-soft: rgba(255, 255, 255, 0.08);
		--gc-ac: #0a84ff;
		--gc-aclink: #64b5ff;
		--gc-tint: rgba(10, 132, 255, 0.18);
		--gc-best: rgba(48, 209, 88, 0.2);
		--gc-bestfg: #30d158;
		--gc-glass: rgba(28, 28, 30, 0.72);
		--gc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
	}
}

.gc-root, .gc-bar {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.gc-root *, .gc-bar * { box-sizing: border-box; }

/* kolom cari */
.gc-search {
	width: 100%;
	max-width: 28rem;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 14px;
	background: var(--gc-card);
	color: var(--gc-fg);
	box-shadow: var(--gc-shadow);
	font: inherit;
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}
.gc-search::placeholder { color: var(--gc-mut); }

/* tombol berbentuk pil */
.gc-btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--gc-tint);
	color: var(--gc-aclink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.gc-btn:hover { filter: brightness(0.97); }
.gc-btn[aria-pressed="true"] { background: var(--gc-ac); color: #fff; }
.gc-btn-primary { background: var(--gc-ac); color: #fff; }
.gc-btn-primary[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.gc-btn:focus-visible, .gc-search:focus-visible, .gc-remove:focus-visible, .gc-chip-x:focus-visible, .gc-results button:focus-visible {
	outline: 3px solid var(--gc-aclink);
	outline-offset: 2px;
}
.gc-root > .gc-btn { margin: 0.25rem 0 0.5rem; }

/* katalog */
.gc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1.25rem;
	margin-top: 1.25rem;
}
.gc-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1rem;
	border-radius: 24px;
	background: var(--gc-card);
	color: var(--gc-fg);
	box-shadow: var(--gc-shadow);
}
.gc-card img, .gc-noimg {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 18px;
	background: linear-gradient(160deg, var(--gc-soft), transparent);
}
.gc-card-body { display: flex; flex-direction: column; gap: 0.6rem; }
.gc-card h3 { margin: 0.25rem 0 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.gc-card h3 a { color: inherit; text-decoration: none; }
.gc-card h3 a:hover { text-decoration: underline; }
.gc-meta { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; color: var(--gc-mut); }
.gc-score {
	display: inline-grid;
	place-items: center;
	min-width: 2.2rem;
	padding: 0.1rem 0.65rem;
	border-radius: 999px;
	background: var(--gc-fg);
	color: var(--gc-card);
	font-size: 0.8rem;
	font-weight: 600;
}
.gc-buy { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gc-buy .gc-btn {
	background: transparent;
	color: var(--gc-fg);
	box-shadow: inset 0 0 0 1px var(--gc-line);
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
}
.gc-empty, .gc-note { opacity: 0.75; font-size: 0.9rem; }

/* bar melayang (kaca buram) */
.gc-bar {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	width: calc(100% - 2rem);
	max-width: 44rem;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0.8rem 0.7rem 1rem;
	border-radius: 22px;
	background: var(--gc-glass);
	color: var(--gc-fg);
	-webkit-backdrop-filter: saturate(180%) blur(22px);
	backdrop-filter: saturate(180%) blur(22px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--gc-line);
}
.gc-bar[hidden] { display: none; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.gc-chip { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15rem 0.3rem 0.15rem 0.75rem; border-radius: 999px; background: var(--gc-soft); font-size: 0.85rem; }
.gc-chip-x { border: 0; background: transparent; color: var(--gc-mut); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0.4rem; }

/* halaman bandingkan */
.gc-picker { position: relative; margin-bottom: 0.75rem; }
.gc-results {
	position: absolute;
	z-index: 5;
	left: 0;
	width: 100%;
	max-width: 28rem;
	margin: 0.4rem 0 0;
	padding: 0.3rem;
	list-style: none;
	background: var(--gc-card);
	color: var(--gc-fg);
	border-radius: 14px;
	box-shadow: var(--gc-shadow), inset 0 0 0 1px var(--gc-line);
}
.gc-results:empty { display: none; }
.gc-results button { display: block; width: 100%; padding: 0.6rem 0.8rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gc-results button:hover { background: var(--gc-soft); }

.gc-out { margin-top: 1rem; }
.gc-scroll { overflow-x: auto; border-radius: 24px; background: var(--gc-card); color: var(--gc-fg); box-shadow: var(--gc-shadow); }
.gc-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 34rem; font-size: 0.95rem; }
.gc-table th, .gc-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--gc-line); text-align: left; vertical-align: top; }
.gc-table thead th { vertical-align: bottom; padding-top: 1.1rem; font-size: 1.05rem; font-weight: 600; }
.gc-table thead img { display: block; width: 5rem; height: 5rem; object-fit: contain; margin-bottom: 0.4rem; border-radius: 12px; }
.gc-table thead a { color: inherit; text-decoration: none; }
.gc-table tbody th[scope="row"], .gc-table thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 9rem;
	background: var(--gc-card);
	color: var(--gc-mut);
	font-weight: 500;
}
.gc-group th { background: var(--gc-soft) !important; color: var(--gc-fg) !important; font-weight: 600; position: static !important; }
.gc-best { background: var(--gc-best); color: var(--gc-bestfg); font-weight: 600; }
.gc-num { display: inline-block; min-width: 2rem; }
.gc-meter { display: inline-block; width: 4rem; height: 0.4rem; margin-left: 0.6rem; background: var(--gc-soft); border-radius: 99px; vertical-align: middle; overflow: hidden; }
.gc-meter i { display: block; height: 100%; background: var(--gc-ac); border-radius: 99px; }
.gc-remove { display: block; margin-top: 0.3rem; padding: 0; border: 0; background: none; color: var(--gc-mut); font: inherit; font-size: 0.8rem; font-weight: 400; text-decoration: underline; cursor: pointer; }

/* catatan di bawah katalog/tabel */
.gc-disclaimer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(127, 127, 127, 0.28);
	font-size: 0.85rem;
	opacity: 0.8;
}
.gc-disclaimer p { margin: 0 0 0.5rem; }
.gc-disclaimer p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.gc-bar { flex-direction: column; align-items: stretch; }
	.gc-bar .gc-btn { text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
	.gc-card { transition: transform 0.25s ease; }
	.gc-card:hover { transform: translateY(-3px); }
	.gc-btn { transition: background-color 0.15s ease, transform 0.1s ease; }
	.gc-btn:active { transform: scale(0.97); }
}
