/* ZorvNet 3.0 "Glass & chrome" design system.
   Loaded on every network page. It redefines the colour and type tokens the pages already use
   (--bg, --fg, --panel, --mint, --grad and the rest) and restyles the shared pieces every page has
   (the top bar, the logo mark, buttons, cards, inputs, headings), so the whole site changes look
   without touching each page's layout. "html:root" and "html body ..." are a step more specific than
   a page's own rules, so these win wherever the link sits. The GTA VI site theme (html.theme-gta6,
   loaded later) still wins over these while it is on. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..800&family=Geist+Mono:wght@400..600&display=swap');

html:root {
  /* surfaces: pure black, glass panels */
  --bg: #0a1530;
  --panel: #0e1b38;
  --panel2: #142446;
  --glass: rgba(255,255,255,.045);
  --glass2: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.18);
  /* text: white and silver */
  --fg: #f5f5f7;
  --dim: #a1a1a6;
  --faint: #6e6e73;
  --ink: #000000;
  /* one accent: electric blue. The old violet, cyan and mint slots map onto it. */
  --accent: #3b8cff;
  --accent2: #8cc2ff;
  --mint: #3b8cff;
  --cyan: #3b8cff;
  --violet: #3b8cff;
  --v1: #3b8cff; --v2: #3b8cff; --v3: #8cc2ff;
  --grad: linear-gradient(135deg, #a9d4ff 0%, #3b8cff 55%, #2a5cff 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe2e8 46%, #9da2ad 100%);
  /* meaning colours, kept apart from the accent */
  --pink: #ff453a;
  --red: #ff453a;
  --gold: #ffd60a;
  --amber: #ffb340;
  --green: #30d158;
  /* glass recipe */
  --zc-glass-bg: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  --zc-glass-edge: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(255,255,255,.02);
  --zc-blur: blur(22px) saturate(160%);
  /* type */
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

html { -webkit-text-size-adjust: 100%; background: #0a1530; }
html body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.008em;
  /* navy blue, a touch lighter at the top, with a soft light and fine grain */
  background-color: #0a1530;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse 85% 55% at 50% -12%, rgba(120,160,255,.20), transparent 70%), linear-gradient(180deg, #0d1a38 0%, #0a1530 45%, #071027 100%);
  background-attachment: fixed;
}
html body h1, html body h2, html body .logo { font-family: var(--disp); letter-spacing: -.035em; }
html body h3, html body h4 { font-family: var(--disp); letter-spacing: -.018em; }
/* big headings get the chrome treatment: white fading to silver */
html body h1 {
  font-weight: 700;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html body code, html body kbd, html body pre { font-family: var(--mono); }

/* The old decorative glow blobs some pages carry (.aura / .aurora / .glow) are switched off,
   so every page sits on the same clean navy background */
html body .aura, html body .aurora, html body .glow { display: none !important; }

/* ---------- the top bar on every page becomes a floating glass pill ---------- */
/* pages whose first thing is <nav><div class="wrap">logo … back</div></nav> */
html body > nav:not(.side):not(.tnav):not(:has(.zg-top)) {
  position: sticky; top: 12px; z-index: 60;
  width: min(1120px, calc(100% - 24px)); margin: 12px auto 0;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,24,52,.58); -webkit-backdrop-filter: var(--zc-blur); backdrop-filter: var(--zc-blur);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), var(--zc-glass-edge);
}
html body > nav:not(.side):not(.tnav):not(:has(.zg-top)) > .wrap { padding-top: 9px; padding-bottom: 9px; }
/* pages whose first thing is <div class="wrap"><div class="top">logo … button</div> */
html body .wrap > .top:first-child {
  position: sticky; top: 12px; z-index: 60;
  margin-top: 12px; padding: 9px 10px 9px 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,24,52,.58); -webkit-backdrop-filter: var(--zc-blur); backdrop-filter: var(--zc-blur);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), var(--zc-glass-edge);
}
/* the Z mark: a chrome tile */
html body .logo .m, html body .brand .m {
  background: var(--chrome) !important; color: #000;
  box-shadow: inset 0 1px 0 #fff, 0 4px 18px rgba(59,140,255,.35);
}
html body .logo .m:empty, html body .brand .m:empty { display: inline-grid; place-items: center; vertical-align: middle; }
/* the ZorvNet mark: a Z drawn as a tiny network (four nodes, three links), cut out of the chrome tile */
html body .logo .m:empty::before, html body .brand .m:empty::before {
  content: ""; width: 64%; height: 64%; background: #000;
  -webkit-mask: var(--zn-mark) center / contain no-repeat; mask: var(--zn-mark) center / contain no-repeat;
}
html:root { --zn-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 6h13L5.5 18h13' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='5.5' cy='6' r='2.6'/%3E%3Ccircle cx='18.5' cy='6' r='2.6'/%3E%3Ccircle cx='5.5' cy='18' r='2.6'/%3E%3Ccircle cx='18.5' cy='18' r='2.6'/%3E%3C/svg%3E"); }
/* a slow sheen across the chrome tile */
html body .logo .m, html body .brand .m { position: relative; overflow: hidden; }
html body .logo .m::after, html body .brand .m::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); animation: zn-sheen 6s ease-in-out infinite; pointer-events: none;
}
@keyframes zn-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { html body .logo .m::after, html body .brand .m::after { animation: none; display: none; } }
html body .logo { color: var(--fg); }
html body a.back { color: var(--dim); border-radius: 999px; padding: 6px 12px; transition: background .2s, color .2s; }
html body a.back:hover { color: var(--fg); background: rgba(255,255,255,.07); }

/* ---------- buttons: glass pills; the main action is a chrome pill ---------- */
html body .btn {
  border-radius: 999px; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em;
  background: rgba(255,255,255,.06); color: var(--fg);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
html body .btn:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }
html body .btn:active { transform: scale(.97); }
html body .btn.go, html body .btn.primary, html body .btn.cta {
  background: var(--chrome); color: #000; border-color: rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 #fff, 0 8px 28px rgba(59,140,255,.28);
}
html body .btn.go:hover, html body .btn.primary:hover, html body .btn.cta:hover { box-shadow: inset 0 1px 0 #fff, 0 10px 36px rgba(59,140,255,.45); filter: brightness(1.04); }
html body .btn.blue { background: linear-gradient(180deg, #5aa0ff, #2a6dff); color: #fff; border-color: rgba(140,194,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 26px rgba(42,109,255,.35); }
html body .btn.green { background: rgba(48,209,88,.14); color: #6ee38d; border-color: rgba(48,209,88,.42); }
html body .btn.danger { background: rgba(255,69,58,.12); color: #ff6961; border-color: rgba(255,69,58,.42); }
html body .btn:disabled, html body .btn[disabled] { opacity: .5; transform: none; }

/* ---------- cards and panels: frosted glass ---------- */
html body .card, html body .panel, html body .post, html body .stat {
  background: var(--zc-glass-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: var(--zc-glass-edge), 0 18px 50px rgba(0,0,0,.35);
  -webkit-backdrop-filter: var(--zc-blur); backdrop-filter: var(--zc-blur);
}
html body .card .card, html body .card .post, html body .panel .post { border-radius: 16px; box-shadow: var(--zc-glass-edge); }

/* tabs, segmented controls and pills */
html body .tabs, html body .seg { border-radius: 999px; }
html body .pill, html body .tag { border-radius: 999px; }

/* ---------- inputs: soft glass fields with a blue focus ring ---------- */
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]),
html body textarea, html body select { border-radius: 12px; }
html body input, html body textarea, html body select { font-family: var(--sans); }
html body input:focus-visible, html body textarea:focus-visible, html body select:focus-visible { outline: none; border-color: rgba(59,140,255,.75) !important; box-shadow: 0 0 0 4px rgba(59,140,255,.20); }

/* small labels in the mono face */
html body .sec-label, html body .eyebrow, html body .kicker { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); }

/* selection, scrollbars and focus in the accent */
::selection { background: rgba(59,140,255,.42); color: #fff; }
::-moz-selection { background: rgba(59,140,255,.42); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(59,140,255,.7); background-clip: padding-box; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(59,140,255,.9); outline-offset: 2px; }

@media (max-width: 640px) {
  html body > nav:not(.side):not(.tnav):not(:has(.zg-top)) { border-radius: 20px; top: 8px; margin-top: 8px; width: calc(100% - 16px); }
  html body .wrap > .top:first-child { border-radius: 18px; top: 8px; margin-top: 8px; }
  html body .card, html body .panel, html body .post, html body .stat { border-radius: 18px; }
}
@media (prefers-reduced-transparency: reduce) {
  html body .card, html body .panel, html body .post, html body .stat, html body .btn,
  html body > nav, html body .wrap > .top:first-child { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0e1b38; }
}
