/*
 * EpicUltra — the parts for "All EpicUltra sites", /sites/, /status/ and /support/.
 * Uses the colours from style.css (:root), so changing those changes these too.
 */

/* ---- small link under the server uptime ---------------------------------------- */
.stat-link {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px;
  color: #9dbcff; font-weight: 700; font-size: 0.92rem;
  border-bottom: 1px solid rgba(157, 188, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.stat-link:hover { color: #fff; border-color: #fff; }

/* ---- All EpicUltra sites ---------------------------------------------------------- */
.net-off { padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--border-strong); color: var(--muted); margin-bottom: 14px; }
.net-fine { margin-top: 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.net-fine a { color: #9dbcff; }

.net-grid {
  display: grid; gap: 14px; margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.net-site { --c1: #3d76ff; --c2: #22c3ee; min-width: 0; }
.net-cat-community { --c1: #7c5cff; --c2: #3d76ff; }
.net-cat-tools { --c1: #14b8a6; --c2: #22c3ee; }
.net-cat-games { --c1: #ff7a45; --c2: #ff4fa3; }
.net-cat-status { --c1: #2bb673; --c2: #7ee0b0; }
.net-cat-account { --c1: #64748b; --c2: #94a3b8; }

.net-site-link {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
  gap: 4px 14px; height: 100%; padding: 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 27, 49, 0.92), rgba(9, 19, 37, 0.92));
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  isolation: isolate; overflow: hidden;
}
.net-site-link::before { /* a soft glow in the site's colours, stronger on hover */
  content: ""; position: absolute; inset: -40% 40% 40% -40%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 65%);
  opacity: 0.35; transition: opacity 0.2s ease;
}
.net-site-link:hover, .net-site-link:focus-visible {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--c2) 55%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--c1) 25%, transparent) inset;
}
.net-site-link:hover::before { opacity: 0.8; }
.net-emoji {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  font-size: 1.6rem; line-height: 1;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c1) 30%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.net-body { display: grid; gap: 4px; min-width: 0; align-content: start; }
.net-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; }
.net-tag { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.net-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; color: var(--label); font-size: 0.84rem; }
.net-live b { color: var(--text); font-variant-numeric: tabular-nums; }
.net-sep { opacity: 0.5; }
.net-card-live { margin: 14px 0 0; }
.net-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.net-item + .net-item::before { content: "·"; opacity: 0.5; margin-right: 1px; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; }
.net-live.is-on .net-dot, .net-hero-live .net-dot { background: var(--green); animation: pulse 2s ease-out infinite; }
.net-open {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 0.86rem; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c1) 28%, transparent);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.net-site-link:hover .net-open { filter: brightness(1.12); transform: translateX(2px); }
.net-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---- frame of /sites/, /status/, /support/ ----------------------------------------- */
.net-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.net-home { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.net-bolt {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem;
  background: linear-gradient(135deg, #2f6bff, #19c3e6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.net-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.net-nav a { padding: 8px 14px; border-radius: 12px; color: #c8d6ec; font-weight: 600; font-size: 0.94rem; border: 1px solid transparent; }
.net-nav a:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border); }
.net-nav a[aria-current="page"] { background: var(--accent-soft); border-color: rgba(79, 135, 255, 0.35); color: #fff; }
.net-hero { display: grid; gap: 12px; }
.net-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.net-hero-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--muted); }
.net-hero-live b { color: var(--text); }
.net-group .section-head { margin-bottom: 0; }
.footer-net { margin-bottom: 6px; }

/* ---- status page ---------------------------------------------------------------------- */
.st-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 26px 0 18px; padding: 18px 20px;
  border-radius: 18px; border: 1px solid; font-size: 1.1rem;
}
.st-banner-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.st-banner-time { margin-left: auto; color: var(--muted); font-size: 0.86rem; }
.st-up, .st-banner.st-up { color: var(--green-text); }
.st-banner.st-up { background: rgba(43, 182, 115, 0.1); border-color: rgba(43, 182, 115, 0.35); }
.st-banner.st-up .st-banner-dot { background: var(--green); animation: pulse 2s ease-out infinite; }
.st-banner.st-slow, .st-banner.st-partial { background: rgba(226, 185, 59, 0.1); border-color: rgba(226, 185, 59, 0.4); color: #f2d27a; }
.st-banner.st-slow .st-banner-dot, .st-banner.st-partial .st-banner-dot { background: var(--yellow); }
.st-banner.st-down { background: rgba(240, 97, 109, 0.12); border-color: rgba(240, 97, 109, 0.45); color: #ffb1b8; }
.st-banner.st-down .st-banner-dot { background: var(--red); }
.st-banner.st-unknown { background: rgba(91, 107, 133, 0.15); border-color: var(--border-strong); color: var(--muted); }
.st-banner.st-unknown .st-banner-dot { background: var(--grey); }

.st-list { display: grid; gap: 12px; }
.st-row { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--border); }
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.st-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.st-name:hover { color: #9dbcff; }
.st-emoji { font-size: 1.2rem; }
.st-state { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid; }
.st-state.st-up { background: rgba(43, 182, 115, 0.12); border-color: rgba(43, 182, 115, 0.35); color: var(--green-text); }
.st-state.st-slow { background: rgba(226, 185, 59, 0.12); border-color: rgba(226, 185, 59, 0.4); color: #f2d27a; }
.st-state.st-down { background: rgba(240, 97, 109, 0.14); border-color: rgba(240, 97, 109, 0.45); color: #ffb1b8; }
.st-state.st-unknown { background: rgba(91, 107, 133, 0.15); border-color: var(--border-strong); color: var(--muted); }
.st-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 0.88rem; }
.st-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.st-ms { margin-left: auto; }
.st-bars { display: flex; gap: 2px; height: 30px; align-items: stretch; }
.st-bar { flex: 1 1 0; min-width: 2px; border-radius: 3px; background: var(--grey); opacity: 0.45; }
.st-bar:hover { filter: brightness(1.3); opacity: 1; }
.st-bar.b-ok { background: var(--green); opacity: 0.9; }
.st-bar.b-minor { background: #9ad45b; opacity: 0.95; }
.st-bar.b-warn { background: var(--yellow); opacity: 1; }
.st-bar.b-bad { background: var(--red); opacity: 1; }
.st-axis { display: flex; justify-content: space-between; color: var(--label); font-size: 0.75rem; }
.st-incidents h2 { font-size: 1.2rem; }
.st-inc-list { display: grid; gap: 8px; }
.st-inc { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); font-size: 0.92rem; }
.st-inc span, .st-inc time { color: var(--muted); }
.st-inc.is-open { border-color: rgba(240, 97, 109, 0.45); }
.st-inc-len { margin-left: auto; font-weight: 700; }
.st-outside { margin-top: 26px; }

/* ---- support page ---------------------------------------------------------------------- */
.sp-form { display: grid; gap: 18px; max-width: 640px; margin-top: 26px; }
.sp-row { display: grid; gap: 8px; }
.sp-row label { font-weight: 700; }
.sp-form select, .sp-form input[type="email"], .sp-form input[type="url"], .sp-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--panel-strong); border: 1px solid var(--border-strong);
}
.sp-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.sp-form select:focus, .sp-form input:focus, .sp-form textarea:focus { outline: 2px solid #9ec0ff; outline-offset: 1px; }
.sp-hint { color: var(--muted); font-size: 0.86rem; }
.sp-send { justify-self: start; }
.sp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-error { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(240, 97, 109, 0.12); border: 1px solid rgba(240, 97, 109, 0.45); color: #ffc4c9; }
.sp-done { margin-top: 26px; padding: 22px; border-radius: 18px; background: rgba(43, 182, 115, 0.1); border: 1px solid rgba(43, 182, 115, 0.35); display: grid; gap: 8px; }
.sp-done strong { color: var(--green-text); font-size: 1.15rem; }

@media (max-width: 620px) {
  .net-site-link { padding: 16px; }
  .net-emoji { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 14px; }
  .st-ms { margin-left: 0; }
  .st-bars { height: 24px; gap: 1px; }
  .net-top { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .net-site-link, .net-open, .stat-link { transition: none; }
  .net-live.is-on .net-dot, .net-hero-live .net-dot, .st-banner.st-up .st-banner-dot { animation: none; }
}

/* /sites/: search box */
.net-search { margin: 0 0 18px; max-width: 520px; }
.net-search input {
  width: 100%; padding: 12px 16px; border-radius: 14px; font: inherit; font-size: 1.02rem;
  border: 1px solid var(--border-strong); background: rgba(4, 17, 33, 0.7); color: inherit;
}
.net-search input:focus { outline: none; border-color: #6fb3ff; box-shadow: 0 0 0 3px rgba(80, 150, 255, 0.25); }
.net-site[hidden], .net-group[hidden] { display: none !important; }
