/* One Life Hardcore SMP - public page styles (Home, Server Info, Network).
   Loaded on top of site.css by the public static pages only. The admin
   panel and the account/tickets pages also load site.css but never this
   file, so everything here is free to restyle without touching them. */
:root {
  --green: #5ee29a;
  --amber: #f5a623;
  --purple: #b98bff;
  --pink: #ff79d4;
  --red: #ff5a5f;
  --card-radius: 14px;
  --grad: linear-gradient(90deg, #00e5ff, #4d8fff);
}

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Bands / section heads ---------- */
.pb-band { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); }
.pb-band > .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.pb-band.alt { background: linear-gradient(180deg, var(--ink-0), #070c1a 50%, var(--ink-0)); border-block: 1px solid var(--line); }

.pb-head { display: flex; flex-direction: column; gap: .75rem; max-width: 64ch; }
.pb-head.center { align-items: center; text-align: center; margin-inline: auto; }
.pb-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 2.5rem); letter-spacing: .005em; }
.pb-head p { color: var(--dim); }
.pb-head p a { color: var(--ice); font-weight: 700; text-decoration: none; }
.pb-head p a:hover { text-decoration: underline; }

.pb-kicker {
  --k: var(--accent);
  display: inline-flex; align-items: center; gap: .45rem; width: fit-content;
  font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  color: var(--k); padding: .42rem .72rem .42rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--k) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--k) 30%, transparent);
}
.pb-kicker svg { width: 13px; height: 13px; flex: none; }

/* ---------- Cards + icon tiles ---------- */
.pb-card {
  position: relative; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink-2) 55%, var(--ink-1)), var(--ink-1));
  border: 1px solid var(--line); border-radius: var(--card-radius);
  padding: 1.35rem 1.4rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pb-card.lift:hover {
  border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--c, var(--accent)) 70%, transparent);
}
.pb-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.pb-card p { color: var(--dim); font-size: .93rem; }

.pb-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--ink-2));
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 32%, transparent);
}
.pb-ico svg { width: 20px; height: 20px; }
.pb-ico.sm { width: 34px; height: 34px; border-radius: 10px; }
.pb-ico.sm svg { width: 17px; height: 17px; }

/* colour helpers: set --c on a card / tile */
.c-accent { --c: var(--accent); }
.c-ice { --c: var(--ice); }
.c-blue { --c: #4d8fff; }
.c-green { --c: var(--green); }
.c-amber { --c: var(--amber); }
.c-red { --c: var(--red); }
.c-purple { --c: var(--purple); }
.c-pink { --c: var(--pink); }
.c-grey { --c: #8b97b0; }
.c-discord { --c: #8c9eff; }

/* ---------- Live status pill ---------- */
.pb-live {
  display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
  font-size: .82rem; font-weight: 700; color: var(--text); line-height: 1.2;
  padding: .4rem .8rem .4rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 9%, var(--ink-1));
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
}
.pb-live .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); animation: pb-pulse 2s ease-out infinite; }
.pb-live strong { color: var(--green); font-variant-numeric: tabular-nums; }
.pb-live.off { background: var(--ink-1); border-color: var(--line-strong); color: var(--dim); }
.pb-live.off .dot { background: #6f7b94; animation: none; }
@keyframes pb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,226,154,.55); }
  70% { box-shadow: 0 0 0 8px rgba(94,226,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,226,154,0); }
}

/* ---------- Server address (copy) box ---------- */
.pb-ip {
  display: flex; align-items: center; gap: .8rem; width: 100%; max-width: 480px;
  padding: .5rem .5rem .5rem .55rem; border-radius: 14px;
  background: color-mix(in srgb, var(--ink-2) 70%, var(--ink-1));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -26px rgba(0,120,255,.6);
}
.pb-ip .pb-ico { width: 40px; height: 40px; border-radius: 10px; }
.pb-ip-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.pb-ip-text small { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pb-ip code {
  font-family: var(--mono); font-weight: 700; font-size: clamp(.84rem, 3.2vw, 1rem); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all;
}
.pb-ip button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 98px;
  cursor: pointer; border-radius: 10px; border: 1px solid rgba(126,232,255,.45);
  background: linear-gradient(90deg, #00b8e6, #0047ff); color: #fff;
  font: 700 .85rem/1 var(--body); padding: .78rem 1rem;
  transition: filter .15s ease, background .2s ease, border-color .2s ease;
}
.pb-ip button:hover { filter: brightness(1.12); }
.pb-ip button svg { width: 15px; height: 15px; }
.pb-ip button .i-done { display: none; }
.pb-ip button.done { background: linear-gradient(90deg, #2fbf71, #179a55); border-color: rgba(94,226,154,.55); }
.pb-ip button.done .i-copy { display: none; }
.pb-ip button.done .i-done { display: block; }

/* small meta chips (versions, ports...) */
.pb-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.pb-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--dim); line-height: 1.2;
  padding: .34rem .7rem; border-radius: 999px; background: var(--ink-1); border: 1px solid var(--line);
  text-decoration: none;
}
.pb-chip svg { width: 13px; height: 13px; color: var(--ice); flex: none; }
.pb-chip b, .pb-chip code { font-family: var(--mono); font-weight: 600; color: var(--text); }
a.pb-chip:hover { border-color: var(--line-strong); color: var(--text); }

/* ---------- Page heads (Server Info / Network) ---------- */
.pb-pagehead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.pb-pagehead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 90% at 85% 0%, rgba(47,107,255,.2), transparent 70%),
    radial-gradient(35% 60% at 10% 100%, rgba(0,229,255,.07), transparent 70%),
    linear-gradient(180deg, #070b18, var(--ink-0));
}
.pb-pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: linear-gradient(rgba(126,232,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(126,232,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(60% 100% at 85% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 100% at 85% 0%, #000 15%, transparent 75%);
}
.pb-pagehead .wrap { position: relative; z-index: 1; padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.pb-pagehead h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .005em; }
.pb-pagehead .intro { color: var(--dim); max-width: 66ch; font-size: 1.05rem; }

.pb-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.pb-jump a {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  color: var(--text); font-size: .86rem; font-weight: 700; line-height: 1;
  padding: .6rem .9rem .6rem .7rem; border-radius: 11px;
  background: color-mix(in srgb, var(--ink-1) 85%, transparent); border: 1px solid var(--line-strong);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pb-jump a svg { width: 15px; height: 15px; color: var(--c, var(--ice)); }
.pb-jump a:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--line-strong)); background: var(--ink-2); transform: translateY(-1px); }

/* ---------- Join call-to-action (Home + Server Info) ---------- */
.pb-join { border-top: 1px solid var(--line); background: radial-gradient(50% 80% at 50% 100%, rgba(47,107,255,.14), transparent 70%); }
.pb-cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4.5vw, 3rem);
  border-radius: 20px; border: 1px solid transparent;
  background:
    linear-gradient(160deg, #0c1530, var(--ink-1) 60%) padding-box,
    linear-gradient(135deg, rgba(0,229,255,.55), rgba(47,107,255,.25) 40%, rgba(28,42,74,.9)) border-box;
  box-shadow: 0 30px 60px -40px rgba(0,120,255,.7);
}
.pb-cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47,107,255,.22), transparent);
}
.pb-cta-copy { position: relative; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pb-cta-copy .totem { width: 60px; height: 60px; filter: drop-shadow(0 0 18px rgba(126,232,255,.35)); }
.pb-cta-copy h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); text-transform: uppercase; line-height: 1.05; }
.pb-cta-copy p { color: var(--dim); max-width: 46ch; }
.pb-cta-copy .closing strong { color: var(--text); }
.pb-cta-side {
  position: relative; display: flex; flex-direction: column; gap: .9rem; min-width: 0;
  padding: 1.25rem; border-radius: 16px; background: color-mix(in srgb, var(--ink-0) 55%, transparent); border: 1px solid var(--line);
}
.pb-cta-ed { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pb-cta-ed h3 { font-weight: 800; font-size: 1.05rem; }
.pb-cta-ed .ver { font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--ice); padding: .22rem .55rem; border-radius: 999px; border: 1px solid rgba(126,232,255,.35); background: rgba(126,232,255,.06); }
.pb-cta-side .pb-ip { max-width: none; }
.pb-cta-side .pb-ip .pb-ico { display: none; }
.pb-cta-side .pb-ip-text { padding-left: .45rem; }
.pb-cta-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; color: var(--dim); }
.pb-cta-meta li { display: flex; align-items: center; gap: .55rem; }
.pb-cta-meta li svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.pb-cta-meta code { font-family: var(--mono); color: var(--text); }
.pb-cta-side .btn { width: 100%; }

/* ---------- Shared responsive ---------- */
@media (max-width: 860px) {
  .pb-cta { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
  .pb-ip { gap: .6rem; }
  .pb-ip .pb-ico { display: none; }
  .pb-ip-text { padding-left: .4rem; }
  .pb-ip button { min-width: 0; padding-inline: .8rem; }
  .pb-ip button .lbl { display: none; }
  .pb-cta-side { padding: 1rem; }
}
