/*
Theme Name: zyzx.biz Hub
Theme URI: https://zyzx.biz
Author: Cybercom Digital Solutions
Author URI: https://cybercom.biz
Description: A project hub theme for zyzx.biz. Lists every project as a filterable card with its own detail page, managed from the dashboard via the Projects post type. Light/dark, responsive, no page builder required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zyzx-hub
*/

/* Layout concept: sticky signal-bar header -> compact hero with faint dot-grid ->
   filterable project-card grid -> per-project detail page -> agency footer.
   Palette: blue-biased ink neutrals, one confident signal-blue accent, amber/green/slate for status.
   Type: Bricolage Grotesque display / IBM Plex Sans body / IBM Plex Mono data. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --fg: #121820;
  --muted: #5c6773;
  --faint: #8c97a4;
  --line: #e1e6ec;
  --line-strong: #cdd5df;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --accent-soft: #e7ecff;
  --ok: #1f9d55;
  --ok-soft: #e2f5ea;
  --warn: #b7791f;
  --warn-soft: #fbf0db;
  --plan: #6b7684;
  --plan-soft: #e9edf2;
  --shadow: 0 1px 2px rgba(18,24,32,.04), 0 10px 30px -18px rgba(18,24,32,.22);
  --shadow-lift: 0 2px 4px rgba(18,24,32,.05), 0 22px 44px -22px rgba(18,24,32,.32);
  --radius: 16px;
  --maxw: 1140px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e14; --surface: #121821; --surface-2: #171f2a; --fg: #e9eef5;
    --muted: #9aa6b4; --faint: #697582; --line: #212b38; --line-strong: #2d3a49;
    --accent: #6a8bff; --accent-ink: #0a0e14; --accent-soft: #19233a;
    --ok: #42c07e; --ok-soft: #122a1e; --warn: #e0ad53; --warn-soft: #2c2213;
    --plan: #8793a2; --plan-soft: #1b232e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 32px -18px rgba(0,0,0,.7);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 26px 50px -22px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e14; --surface: #121821; --surface-2: #171f2a; --fg: #e9eef5;
  --muted: #9aa6b4; --faint: #697582; --line: #212b38; --line-strong: #2d3a49;
  --accent: #6a8bff; --accent-ink: #0a0e14; --accent-soft: #19233a;
  --ok: #42c07e; --ok-soft: #122a1e; --warn: #e0ad53; --warn-soft: #2c2213;
  --plan: #8793a2; --plan-soft: #1b232e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 32px -18px rgba(0,0,0,.7);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 26px 50px -22px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left,0px)); padding-right: max(20px, env(safe-area-inset-right,0px)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; color: inherit; }
.brand .dot { color: var(--accent); }
.brand .tld { color: var(--muted); font-weight: 600; font-size: .95rem; }
.bar .spacer { flex: 1; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { font-size: .9rem; color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 9px; }
.bar nav a:hover { color: var(--fg); background: var(--surface-2); }
.tbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; }
.tbtn:hover { border-color: var(--line-strong); }
.tbtn svg { width: 18px; height: 18px; }
.tbtn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbtn .moon { display: block; } :root:not([data-theme="light"]) .tbtn .sun { display: none; } }
:root[data-theme="dark"] .tbtn .moon { display: block; }
:root[data-theme="dark"] .tbtn .sun { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%); mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%); opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; padding-block: clamp(44px, 7vw, 84px); }
.eyebrow { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.7rem); line-height: 1.02; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { margin: 20px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.signal { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; box-shadow: var(--shadow); max-width: 100%; overflow: hidden; }
.signal b { color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 8px; height: 16px; background: var(--accent); display: inline-block; border-radius: 1px; animation: blink 1.1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }

/* Section + filters */
.section { padding-block: clamp(36px, 6vw, 60px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-head .sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 .85rem/1 var(--font-body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--line-strong); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { font-family: var(--font-mono); font-size: .76rem; opacity: .8; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; text-align: left; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-top { display: flex; align-items: center; gap: 13px; }
.mono-tile { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--accent-ink); background: var(--tile, var(--accent)); overflow: hidden; }
.mono-tile img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.15rem; line-height: 1.1; }
.card .domain { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 3px; word-break: break-all; }
.card p.tag-line { margin: 0; color: var(--muted); font-size: .92rem; min-width: 0; }
.card .row-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .03em; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 7px; }
.view-link { font-size: .82rem; color: var(--accent); font-weight: 600; white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--ok); background: var(--ok-soft); }
.status.development { color: var(--warn); background: var(--warn-soft); }
.status.planned { color: var(--plan); background: var(--plan-soft); }

.card.ghost { border-style: dashed; box-shadow: none; background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--faint); min-height: 180px; gap: 10px; }
.card.ghost:hover { transform: none; border-color: var(--line-strong); }
.card.ghost .plus { width: 40px; height: 40px; border-radius: 11px; border: 1px dashed var(--line-strong); display: grid; place-items: center; font-size: 1.4rem; font-family: var(--font-display); }
.card.ghost span { font-size: .88rem; max-width: 24ch; }

.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Detail */
.detail { padding-block: clamp(28px, 5vw, 52px); }
.back { color: var(--muted); font: 500 .9rem var(--font-body); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; }
.back:hover { color: var(--fg); }
.detail-head { display: flex; align-items: flex-start; gap: 20px; margin: 18px 0 8px; flex-wrap: wrap; }
.detail-head .mono-tile { width: 64px; height: 64px; font-size: 1.9rem; border-radius: 15px; }
.detail-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.detail-head .domain { font-family: var(--font-mono); color: var(--accent); font-size: .95rem; text-decoration: none; margin-top: 6px; display: inline-block; word-break: break-all; }
.detail-head .domain:hover { text-decoration: underline; }
.detail-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-top: 30px; align-items: start; }
.prose { min-width: 0; }
.prose .tagline { font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.prose h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { color: var(--fg); padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); }
.aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h4 { margin: 0 0 12px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.kv .row .k { color: var(--muted); }
.stackchips { display: flex; flex-wrap: wrap; gap: 6px; }
.stackchips span { font-family: var(--font-mono); font-size: .74rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 13px 16px; border-radius: 11px; border: 1px solid transparent; }
.cta:hover { filter: brightness(1.06); }
.cta.disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; max-width: 40ch; }
.site-footer h5 { font: 600 .74rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer li { color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.colophon { border-top: 1px solid var(--line); }
.colophon .wrap { padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .76rem; color: var(--faint); }

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .bar nav { display: none; } }
