/* /tools/minecraft-server-status/ only. Every selector is scoped under .mcstatus. The server card (icon + MOTD)
   stays dark in both themes, like the in-game server list. Colour classes use the game's own RGB values. */

/* Form: edition choice on its own row above the address box */
.mcstatus .mc-edition { flex: 1 0 100%; border: 0; margin: 0; padding: 0; min-width: 0; }
.mcstatus .mc-edition legend { font-weight: 600; padding: 0; margin: 0 0 .35rem; }
.mcstatus .mc-edition label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.25rem .25rem 0; cursor: pointer; }
.mcstatus .mc-edition input { flex: none; min-width: 0; width: 1.1rem; height: 1.1rem; padding: 0; margin: 0; accent-color: var(--accent); }

/* Server card */
.mcstatus .mc-server { display: flex; gap: 1rem; align-items: flex-start; margin: 1rem 0 1.5rem; padding: 1rem;
  background: #1b1b1e; color: #aaaaaa; border: 1px solid #34343a; border-radius: 10px; box-shadow: var(--shadow); }
.mcstatus .mc-icon { flex: none; display: block; width: 64px; height: 64px; border-radius: 4px; image-rendering: pixelated; }
.mcstatus .mc-icon-none { background: #3a3a40; border: 1px solid #4a4a52; box-sizing: border-box; }
.mcstatus .mc-server-text { flex: 1; min-width: 0; }
.mcstatus .mc-server-name { margin: 0 0 .3rem; color: #ffffff; font-weight: 600; overflow-wrap: anywhere; }
.mcstatus .mc-count { color: #aaaaaa; font-weight: 400; font-size: .9rem; margin-left: .5rem; white-space: nowrap; }
.mcstatus .mc-motd { margin: 0; color: #aaaaaa; font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: .09em .09em 0 rgba(0, 0, 0, .6); }
.mcstatus .mc-none { color: #8a8a8a; font-style: italic; }
@media (max-width: 480px) {
  .mcstatus .mc-server { flex-direction: column; }
}

/* The 16 colour codes (§0 to §f) and named JSON colours */
.mcstatus .mc-c-0 { color: #000000; }
.mcstatus .mc-c-1 { color: #0000aa; }
.mcstatus .mc-c-2 { color: #00aa00; }
.mcstatus .mc-c-3 { color: #00aaaa; }
.mcstatus .mc-c-4 { color: #aa0000; }
.mcstatus .mc-c-5 { color: #aa00aa; }
.mcstatus .mc-c-6 { color: #ffaa00; }
.mcstatus .mc-c-7 { color: #aaaaaa; }
.mcstatus .mc-c-8 { color: #555555; }
.mcstatus .mc-c-9 { color: #5555ff; }
.mcstatus .mc-c-a { color: #55ff55; }
.mcstatus .mc-c-b { color: #55ffff; }
.mcstatus .mc-c-c { color: #ff5555; }
.mcstatus .mc-c-d { color: #ff55ff; }
.mcstatus .mc-c-e { color: #ffff55; }
.mcstatus .mc-c-f { color: #ffffff; }
/* Dark text on the dark card: a light shadow keeps it readable */
.mcstatus .mc-c-0, .mcstatus .mc-c-1, .mcstatus .mc-c-8 { text-shadow: 0 0 .15em rgba(255, 255, 255, .35); }

/* Format codes: §l bold, §o italic, §n underline, §m strikethrough, §k obfuscated (shown blurred, no script) */
.mcstatus .mc-b { font-weight: 700; }
.mcstatus .mc-i { font-style: italic; }
.mcstatus .mc-u { text-decoration: underline; }
.mcstatus .mc-s { text-decoration: line-through; }
.mcstatus .mc-u.mc-s { text-decoration: underline line-through; }
.mcstatus .mc-k { filter: blur(.2em); }

/* Player names sent by the server */
.mcstatus .mc-players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.mcstatus .mc-players li { margin: 0; padding: .1rem .55rem; background: var(--surface-2, var(--bg-alt)); border: 1px solid var(--border);
  border-radius: 6px; font-size: .95rem; overflow-wrap: anywhere; }
.mcstatus .rec td { overflow-wrap: anywhere; }

html[data-theme="dark"] .mcstatus .mc-server { background: #141417; border-color: var(--border); }
html[data-theme="dark"] .mcstatus .mc-edition legend { color: #fff; }
