/* Joymax Status — public /status page. Prefix jxs- (old plugin uses jm-, so no clash). */

/* Full-width layout inside the theme (Astra) container. */
body.jxs-status-page #content > .ast-container { display: block; max-width: none; padding: 0; }
body.jxs-status-page #primary { width: 100%; margin: 0; padding: 0; border: 0; }
body.jxs-status-page article.page { padding: 0; margin: 0; background: transparent; }
body.jxs-status-page article.page > .entry-header { display: none; }

.jxs {
	--jxs-gold: #efc31a;
	--jxs-bg: #0a0a0b;
	--jxs-card: #141417;
	--jxs-line: #2a2a30;
	--jxs-text: #f4f4f5;
	--jxs-muted: #a3a4af;
	--jxs-wash: #efc31a12;
	--jxs-green: #4ce3a3;
	--jxs-orange: #ffad4b;
	--jxs-red: #ff687d;
	max-width: 1000px;
	margin-inline: auto;
	padding: 0 clamp(16px, 4vw, 32px) clamp(48px, 7vw, 84px);
	color: var(--jxs-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.45;
}
.jxs[dir="rtl"], .jxs[dir="rtl"] h1, .jxs[dir="rtl"] h2, .jxs[dir="rtl"] .jxs-eyebrow, .jxs[dir="rtl"] .jxs-totals strong {
	font-family: Tajawal, Inter, system-ui, sans-serif;
}
html[data-jm-theme="light"] .jxs {
	--jxs-gold: #876000;
	--jxs-card: #fffefa;
	--jxs-line: #d7d5cc;
	--jxs-text: #17171b;
	--jxs-muted: #595964;
	--jxs-wash: #efc31a22;
	--jxs-green: #137452;
	--jxs-orange: #974500;
	--jxs-red: #ba2848;
}
.jxs-s-undetected { --jxs-c: var(--jxs-green); }
.jxs-s-updating { --jxs-c: var(--jxs-orange); }
.jxs-s-down { --jxs-c: var(--jxs-red); }

.jxs h1, .jxs h2, .jxs h3 { font-family: "Chakra Petch", Inter, sans-serif; color: var(--jxs-text); margin: 0; letter-spacing: 0; }

.jxs-hero { position: relative; text-align: center; padding: clamp(40px, 7vw, 72px) 0 28px; overflow: hidden; }
.jxs-watermark {
	position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
	font: 700 clamp(70px, 16vw, 180px)/1 "Chakra Petch", sans-serif; letter-spacing: .06em;
	color: var(--jxs-text); opacity: .035;
}
.jxs-eyebrow { font: 600 12px/1.4 "Chakra Petch", sans-serif; letter-spacing: .24em; color: var(--jxs-gold); margin: 0 0 8px; }
.jxs[dir="rtl"] .jxs-eyebrow { letter-spacing: 0; font-size: 14px; }
.jxs-hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.05; font-weight: 700; }
.jxs-hero h1 span { color: var(--jxs-gold); }
.jxs-intro { color: var(--jxs-muted); margin: 10px 0 22px; }

.jxs-totals { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.jxs-totals li { display: flex; align-items: center; gap: 8px; background: var(--jxs-card); border: 1px solid var(--jxs-line); border-radius: 10px; padding: 10px 16px; margin: 0; }
.jxs-totals strong { font: 700 22px/1 "Chakra Petch", sans-serif; color: var(--jxs-text); }
.jxs-totals span:last-child { color: var(--jxs-muted); font-size: 13px; }

.jxs-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--jxs-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jxs-c) 20%, transparent); }

.jxs-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 16px 0 12px; }
.jxs-toolbar h2 { font-size: 20px; }
.jxs-toolbar p { margin: 2px 0 0; color: var(--jxs-muted); font-size: 13px; }
.jxs-live { display: inline-flex; align-items: center; gap: 6px; color: var(--jxs-green); font-weight: 600; font-size: 12px; }
.jxs-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: jxs-pulse 1.6s infinite; }
@keyframes jxs-pulse { 50% { opacity: .3; } }
.jxs-refresh { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--jxs-line); color: var(--jxs-text); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13px; }
/* Beat the theme's link styles: no underline in any state. */
body .jxs a.jxs-refresh, body .jxs a.jxs-refresh:link, body .jxs a.jxs-refresh:visited,
body .jxs a.jxs-refresh:hover, body .jxs a.jxs-refresh:focus, body .jxs a.jxs-refresh:active {
	text-decoration: none !important;
	box-shadow: none;
}
body .jxs a.jxs-refresh:visited { color: var(--jxs-text); }
body .jxs a.jxs-refresh:hover, body .jxs a.jxs-refresh:focus-visible { border-color: var(--jxs-gold); color: var(--jxs-gold); }
.jxs-refresh.is-busy span { display: inline-block; animation: jxs-spin .8s linear infinite; }
@keyframes jxs-spin { to { transform: rotate(360deg); } }

.jxs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jxs-row {
	display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 16px; margin: 0;
	background: var(--jxs-card); border: 1px solid var(--jxs-line); border-inline-start: 3px solid var(--jxs-c);
	border-radius: 12px; padding: 12px 14px;
}
.jxs-image { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--jxs-wash); color: var(--jxs-gold); font: 700 18px "Chakra Petch", sans-serif; }
.jxs-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jxs-name h3 { font-size: 18px; font-weight: 600; }
.jxs[dir="rtl"] .jxs-name h3 { text-align: right; }
.jxs-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
	font-size: 13px; font-weight: 600; color: var(--jxs-c);
	background: color-mix(in srgb, var(--jxs-c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--jxs-c) 35%, transparent);
}
.jxs-buy { display: inline-flex; align-items: center; gap: 6px; background: #efc31a; font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
/* Beat the theme's (gold) link color: dark text + icon in every state. */
body .jxs a.jxs-buy, body .jxs a.jxs-buy:link, body .jxs a.jxs-buy:visited,
body .jxs a.jxs-buy:hover, body .jxs a.jxs-buy:focus, body .jxs a.jxs-buy:active {
	color: #0a0a0b !important;
	text-decoration: none !important;
}
body .jxs a.jxs-buy svg { stroke: #0a0a0b; }
body .jxs a.jxs-buy:hover, body .jxs a.jxs-buy:focus-visible { filter: brightness(1.08); }
.jxs[dir="rtl"] .jxs-buy svg { transform: scaleX(-1); }
.jxs-buy-gap { width: 1px; }
.jxs-empty { color: var(--jxs-muted); text-align: center; }
.jxs a:focus-visible { outline: 2px solid var(--jxs-gold); outline-offset: 2px; }

@media (max-width: 640px) {
	/* Keep the 3 totals on one row, smaller boxes. */
	.jxs-totals { flex-wrap: nowrap; gap: 6px; }
	.jxs-totals li { flex: 1 1 0; min-width: 0; justify-content: center; gap: 5px; padding: 8px 6px; border-radius: 8px; }
	.jxs-totals strong { font-size: 17px; }
	.jxs-totals span:last-child { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.jxs-totals .jxs-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--jxs-c) 20%, transparent); }
	.jxs-row { grid-template-columns: 52px 1fr; grid-template-areas: "i n" "b b" "y y"; gap: 10px 12px; }
	.jxs-image { width: 52px; height: 52px; grid-area: i; }
	.jxs-name { grid-area: n; }
	.jxs-badge { grid-area: b; justify-self: start; }
	.jxs-buy { grid-area: y; justify-content: center; }
	.jxs-buy-gap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.jxs-live::before, .jxs-refresh.is-busy span { animation: none; }
}
