/*
 * Magic Tools — plugin frontend CSS.
 *
 * This file styles the *plugin wrapper* (toolbar, status, login notice,
 * confetti canvas). The tool itself brings its own CSS in its post content.
 * Keep this file minimal so it never fights with the host theme.
 */

.mt-instance {
	max-width: 1180px;
	margin: 0 auto;
	position: relative;
}

.mt-instance .mt-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.mt-instance .mt-brand {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	gap: 12px;
}

.mt-instance .mt-brand span {
	font-weight: 400;
	font-size: 10px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.55);
	border-left: 1px solid rgba(0, 0, 0, 0.2);
	padding-left: 12px;
}

.mt-instance .mt-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mt-instance .mt-btn {
	background: #161310;
	color: #f3ecdc;
	border: 1px solid #161310;
	padding: 10px 18px;
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.18s ease;
	font-weight: 500;
	border-radius: 0;
}

.mt-instance .mt-btn:hover {
	background: #b8472f;
	border-color: #b8472f;
}

.mt-instance .mt-btn--ghost {
	background: transparent;
	color: #161310;
}

.mt-instance .mt-btn--ghost:hover {
	background: #161310;
	color: #f3ecdc;
	border-color: #161310;
}

.mt-instance .mt-status {
	text-align: center;
	font-size: 11px;
	color: rgba(0, 0, 0, 0.55);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	min-height: 16px;
	margin-top: 24px;
	opacity: 0;
	transition: opacity 0.3s;
}
.mt-instance .mt-status.is-visible { opacity: 1; }

.mt-login-required {
	padding: 32px;
	background: #faf7ef;
	border-left: 3px solid #b8472f;
	text-align: center;
	font-size: 15px;
}

.mt-confetti-canvas {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
}

/* Print: hide toolbar + status when downloading PDF */
@media print {
	.mt-instance .mt-toolbar,
	.mt-instance .mt-status { display: none !important; }
}
