/* MonkeyPC Solved 1.0.0 — uses The MonkeyPC forum colours, with fallbacks for any style */

.mpc-solved-pill {
	display: inline-flex; align-items: center; gap: 2px;
	margin-left: 8px; padding: 3px 10px 3px 7px;
	border-radius: 999px;
	background: var(--leaf, #48b01c); color: #fff !important;
	font-family: var(--body, inherit); font-size: 13px; font-weight: 700; line-height: 1.3;
	vertical-align: middle; white-space: nowrap; letter-spacing: .01em;
}
.mpc-solved-pill .icon { font-size: 12px; }
.mpc-solved-pill-sm { margin-left: 6px; padding: 1px 8px 1px 5px; font-size: 11.5px; }
.mpc-solved-pill-sm .icon { font-size: 10px; }

.mpc-solved-bar, .mpc-solved-hint {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
	margin: 6px 0 14px; padding: 12px 16px;
	border-radius: 14px;
	font-family: var(--body, inherit); font-size: 15px; line-height: 1.4;
}
.mpc-solved-bar {
	background: var(--mint, #e8f4d7); color: var(--ink, #402408);
	border: 1px solid var(--leaf, #48b01c);
}
.mpc-solved-bar > .icon { color: var(--leaf, #48b01c); font-size: 20px; }
.mpc-solved-bar > span { flex: 1 1 auto; }
.mpc-solved-jump {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 6px 14px; border-radius: 999px;
	background: var(--leaf, #48b01c); color: #fff !important;
	font-weight: 700; font-size: 14px; text-decoration: none !important;
}
.mpc-solved-jump:hover { background: var(--leaf-dark, #2a7a0d); }
.mpc-solved-hint {
	background: var(--sand, #f8f0de); color: var(--ink-2, #5a3513);
	border: 1px dashed var(--line, #e9d8b4);
}
.mpc-solved-hint > .icon { color: var(--amber-dark, #e6b92f); font-size: 18px; }

/* The answer post */
.mpc-answer-badge {
	display: inline-flex; align-items: center; gap: 2px;
	margin: 0 0 6px; padding: 3px 11px 3px 8px;
	border-radius: 999px;
	background: var(--leaf, #48b01c); color: #fff;
	font-family: var(--body, inherit); font-size: 13px; font-weight: 700; line-height: 1.3;
}
.post:has(.mpc-answer-badge) {
	box-shadow: inset 4px 0 0 var(--leaf, #48b01c), var(--shadow, none);
}

/* Buttons under a post (shared look with MonkeyPC Thanks) */
.mpc-solved-action { display: inline-flex; margin: 14px 8px 0 0; vertical-align: middle; }
.mpc-btn {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 6px 14px 6px 11px; border-radius: 999px;
	border: 1px solid var(--line, #e9d8b4);
	background: var(--paper, #fff); color: var(--ink-2, #5a3513) !important;
	font-family: var(--body, inherit); font-size: 14px; font-weight: 600; line-height: 1.3;
	text-decoration: none !important; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.mpc-btn:hover { border-color: var(--leaf, #48b01c); background: var(--leaf-soft, #f3f8eb); color: var(--leaf-dark, #2a7a0d) !important; }
.mpc-btn-solved.is-on { color: var(--muted, #6e4f30) !important; }

/* Dark mode (The MonkeyPC site toggle) */
html[data-theme="dark"] .mpc-solved-bar { background: #253520; border-color: #3f7a24; color: var(--ink, #f4e9d8); }
html[data-theme="dark"] .mpc-solved-bar > .icon { color: #8be05a; }
html[data-theme="dark"] .mpc-solved-pill,
html[data-theme="dark"] .mpc-answer-badge,
html[data-theme="dark"] .mpc-solved-jump { background: #3f8f1e; }
html[data-theme="dark"] .mpc-solved-jump:hover { background: #4ca524; }
html[data-theme="dark"] .post:has(.mpc-answer-badge) { box-shadow: inset 4px 0 0 #4ca524, var(--shadow, none); }
html[data-theme="dark"] .mpc-btn:hover { color: #9be36a !important; }

@media (max-width: 700px) {
	.mpc-solved-bar, .mpc-solved-hint { font-size: 14px; padding: 10px 12px; }
	.mpc-solved-jump { width: 100%; justify-content: center; }
}
