/* The Greatest Minecraft Server — apex server list (not AIPG brand.css). */

:root {
  --bg: #070b12;
  --ink: #f2f4f8;
  --muted: #9aa8bc;
  --line: rgba(242, 244, 248, 0.14);
  --accent: #5ec8ff;
  --panel: rgba(10, 18, 32, 0.72);
  --font-display: "Press Start 2P", ui-monospace, monospace;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(40, 90, 140, 0.35), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a1220 50%, #070b12 100%);
}

.top,
.list {
  position: relative;
  z-index: 1;
}

.top {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  max-width: 40rem;
  margin: 0 auto;
  animation: rise 0.55s ease-out both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 1.55;
  font-weight: 400;
}

.sub {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.list {
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Interaction surface for a server row — not a marketing “card” grid. */
.server {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  animation: rise 0.55s ease-out 0.08s both;
}

.server__icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
}

.server__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  color: #fff;
}

.server__blurb {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.tag-sep {
  color: #555;
  margin: 0 0.15em;
}

.tag--earth { color: #5555ff; }
.tag--pvp { color: #ff5555; }
.tag--nations { color: #ffaa00; }
.tag--anti { color: #55ff55; }

.facts {
  margin: 0.9rem 0 0;
  padding: 0;
}

.fact {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.2rem 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}

.fact:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.fact__version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.fact__edition,
.copy-ip__text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.fact__edition {
  color: var(--ink);
  font-weight: 400;
}

.copy-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.copy-ip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.copy-ip__text {
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--ink);
  word-break: break-all;
}

.copy-ip__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.copy-ip__clip,
.copy-ip__check {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.copy-ip__clip {
  opacity: 1;
  transform: scale(1);
}

.copy-ip__check {
  opacity: 0;
  transform: scale(0.55);
  color: var(--accent);
}

.copy-ip:hover .copy-ip__icon {
  color: var(--accent);
}

.copy-ip.is-copied .copy-ip__clip {
  opacity: 0;
  transform: scale(0.55);
}

.copy-ip.is-copied .copy-ip__check {
  opacity: 1;
  transform: scale(1);
  animation: copy-pop 0.35s ease;
}

@keyframes copy-pop {
  0% {
    transform: scale(0.55);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.server__links {
  margin: 0.9rem 0 0;
}

.server__links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.server__links a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .server {
    animation: none;
  }
}
