/* =========================================================
   Azguards Code Block — Frontend Styles
   ========================================================= */

.azguards-cb {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #2d2d2d;
	margin: 1.5em 0;
	font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
	/* Kill any box-shadow or border Prism themes inject on the wrapper */
	box-shadow: none !important;
}

/* ── Header bar ─────────────────────────────────────────── */
.azguards-cb__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1e1e1e;
	padding: 8px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	min-height: 38px;
}

/* Language label */
.azguards-cb__lang-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #858585;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	user-select: none;
}

/* ── Copy button ─────────────────────────────────────────── */
.azguards-cb__copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	background: #3a3f4b;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 500;
	transition: background 0.18s ease, transform 0.1s ease;
	line-height: 1;
	margin-left: auto;
}

.azguards-cb__copy-btn:hover {
	background: #4a5060;
}

.azguards-cb__copy-btn:active {
	transform: scale(0.95);
}

.azguards-cb__copy-btn.copied {
	background: #2e7d32;
	color: #fff;
}

.azguards-cb__copy-btn.copied .azguards-cb__copy-icon {
	display: none;
}

/* ── Code area ───────────────────────────────────────────── */

/* Override ALL Prism theme borders, shadows, margins on pre */
.azguards-cb pre,
.azguards-cb pre[class*="language-"] {
	margin: 0 !important;
	border-radius: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: #2d2d2d !important;
	/* Generous padding so code never hugs the edges */
	padding: 22px 24px 24px 24px !important;
	font-size: 14px;
	line-height: 1.7;
	/* Scrolling */
	overflow-x: auto;
	overflow-y: visible;
}

/* Kill any border/shadow Prism puts on the code element itself */
.azguards-cb pre code,
.azguards-cb pre[class*="language-"] code[class*="language-"] {
	font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace !important;
	font-size: inherit !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
}

/* ── Custom scrollbar (horizontal) ──────────────────────── */
.azguards-cb pre::-webkit-scrollbar {
	height: 6px;
}
.azguards-cb pre::-webkit-scrollbar-track {
	background: #1a1a1a;
	border-radius: 0 0 8px 8px;
}
.azguards-cb pre::-webkit-scrollbar-thumb {
	background: #4a4a4a;
	border-radius: 3px;
}
.azguards-cb pre::-webkit-scrollbar-thumb:hover {
	background: #666;
}
/* Firefox */
.azguards-cb pre {
	scrollbar-width: thin;
	scrollbar-color: #4a4a4a #1a1a1a;
}
