/* GeekPress Theme Changer — front-end slide-out panel
   Neutral dark styling so it sits cleanly over any theme.
   Handle + body are each fixed to the viewport's right edge so the
   handle stays flush right regardless of the (off-screen) body width. */

#gtc-panel,
#gtc-panel * {
	box-sizing: border-box;
}

#gtc-panel {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.4;
}

/* ── Handle — always flush to the right edge when closed ─────────── */
#gtc-panel .gtc-handle {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 40px;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: #15171f;
	color: #e8eaf2;
	border: 1px solid #2a2e3c;
	border-right: none;
	border-radius: 10px 0 0 10px;
	cursor: pointer;
	box-shadow: -5px 0 18px rgba(0, 0, 0, 0.32);
	z-index: 2147482001;
	transition: right 0.24s ease, color 0.15s ease, background 0.15s ease;
}

#gtc-panel .gtc-handle:hover {
	background: #1d2030;
	color: #fff;
}

#gtc-panel .gtc-handle svg {
	width: 22px;
	height: 22px;
}

/* When open, the handle sits against the body's left edge. */
#gtc-panel.gtc-open .gtc-handle {
	right: 256px;
}

/* ── Body — slides in from the right edge ────────────────────────── */
#gtc-panel .gtc-body {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%) translateX(100%);
	width: 256px;
	max-height: 80vh;
	overflow-y: auto;
	background: #15171f;
	color: #e8eaf2;
	border: 1px solid #2a2e3c;
	border-right: none;
	border-radius: 10px 0 0 10px;
	box-shadow: -10px 0 34px rgba(0, 0, 0, 0.5);
	z-index: 2147482000;
	transition: transform 0.24s ease;
}

#gtc-panel.gtc-open .gtc-body {
	transform: translateY(-50%) translateX(0);
}

#gtc-panel .gtc-head {
	padding: 13px 15px;
	border-bottom: 1px solid #2a2e3c;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9aa3bb;
}

#gtc-panel .gtc-list {
	padding: 9px;
}

#gtc-panel .gtc-item {
	display: block;
	width: 100%;
	text-align: left;
	margin: 0 0 7px;
	padding: 9px 11px;
	background: #1c1f2b;
	border: 1px solid #2a2e3c;
	border-radius: 7px;
	color: #e8eaf2;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

#gtc-panel .gtc-item:last-child {
	margin-bottom: 0;
}

#gtc-panel .gtc-item:hover {
	border-color: #4b5268;
	background: #212534;
}

#gtc-panel .gtc-item.gtc-active {
	border-color: #5b8cff;
	background: #23304d;
}

#gtc-panel .gtc-name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
}

#gtc-panel .gtc-slug {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: #7b8299;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	word-break: break-all;
}

#gtc-panel .gtc-tag {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 4px;
	background: #2f3550;
	color: #aab4d4;
}

#gtc-panel .gtc-check {
	margin-left: auto;
	color: #5b8cff;
	font-size: 13px;
}

#gtc-panel .gtc-empty {
	margin: 4px 4px 8px;
	font-size: 12px;
	color: #7b8299;
}

#gtc-panel .gtc-foot {
	padding: 9px 15px 12px;
	border-top: 1px solid #2a2e3c;
	font-size: 11px;
	color: #7b8299;
}

@media ( max-width: 600px ) {
	#gtc-panel .gtc-body {
		width: 220px;
	}
	#gtc-panel.gtc-open .gtc-handle {
		right: 220px;
	}
}
