/* ═══════════════════════════════════════════════════════════════
   jnet.us — common.css
   Shared reset, variables, nav, page headers, layout, footer.
   Source of truth for typography and color — based on links.php.
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── VARIABLES ── */
:root {
    --green:      #00ff00;
    --green-dim:  rgba(0,255,0,0.10);
    --green-glow: rgba(0,255,0,0.45);
    --red:        #ff5060;
    --red-glow:   rgba(255,80,96,0.45);
    --red-dim:    rgba(255,80,96,0.10);
    --bg:         #040404;
    --surface:    #0f0f0f;
    --surface2:   #141414;
    --border:     rgba(255,255,255,0.18);
    --text:       #ffffff;
    --dim:        rgba(255,255,255,0.88);
    --glass:      rgba(10,10,10,0.72);
}

/* ── BODY ── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── GRID BACKGROUND ── */
body::before {
    content: ''; position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(0,255,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,0,0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none; z-index: 0;
}

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
}
.nav-brand {
    color: var(--green); text-decoration: none;
    font-size: 0.72rem; letter-spacing: 0.3em;
    opacity: 0.6; text-shadow: 0 0 10px var(--green-glow);
    transition: opacity 0.25s;
}
.nav-brand:hover { opacity: 1; }
.nav-menu {
    display: flex; list-style: none;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border); border-radius: 2rem; overflow: hidden;
}
.nav-menu a {
    display: block; padding: 0.44rem 1.2rem;
    font-size: 0.67rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--dim); text-decoration: none; transition: color 0.22s;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--green); text-shadow: 0 0 8px var(--green-glow); }

/* ── WRAP (scrollable pages) ── */
.wrap {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
    padding: 52px 24px 80px;
}

/* ── PAGE HEADER ── */
.page-eyebrow {
    font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase;
    color: rgba(0,255,0,0.8); margin-bottom: 8px;
}
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--green);
    text-shadow: 0 0 24px var(--green-glow);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.page-title span { color: rgba(255,255,255,0.75); font-weight: normal; }
.page-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.1em;
    margin-bottom: 0;
}
.page-title + .page-sub { margin-bottom: 2rem; }

/* ── SECTION HEADER ── */
.section { margin-bottom: 52px; }
.section-hd {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-hd-label {
    font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase;
    color: rgba(0,255,0,0.9);
}
.section-hd-line { flex: 1; height: 1px; background: var(--border); }

/* ── SUBSECTION ── */
.subsection { margin-bottom: 32px; }
.subsection-label {
    font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
    color: rgba(255,255,255,0.8); margin-bottom: 14px; padding-left: 2px;
}

/* ── FOOTER (scrollable pages) ── */
.footer {
    text-align: center; color: rgba(255,255,255,0.75);
    font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase;
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ── TEXT BODY (description / body copy) ── */
/* Use .page-sub for subtitle-level text; use this for body paragraphs/descriptions */
.text-body {
    font-size: 0.68rem;
    color: var(--dim);
    line-height: 1.55;
    letter-spacing: 0.04em;
}

/* ── TEXT META (timestamps, stale indicators, metadata) ── */
.text-meta {
    font-size: 0.54rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ── TEXT BRIGHT (same as text-meta but full white, for emphasis) ── */
.text-bright {
    font-size: 0.54rem;
    color: #fff;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ── TEXT GREEN (green accent labels: domains, freshness, status) ── */
.text-green {
    font-size: 0.62rem;
    color: rgba(0,255,0,0.9);
    letter-spacing: 0.04em;
}

/* ── MSG / FLASH BAR ── */
.msg {
    background: rgba(0,255,0,0.07); border: 1px solid rgba(0,255,0,0.2);
    color: var(--green); padding: 10px 16px; margin-bottom: 28px;
    font-size: 0.65rem; letter-spacing: 0.12em; white-space: pre-wrap;
    word-break: break-all;
}
.msg.error {
    background: rgba(255,50,50,0.07); border-color: rgba(255,50,50,0.3);
    color: #ff5555;
}

/* ── EMPTY STATE ── */
.empty { color: var(--dim); font-size: 0.65rem; letter-spacing: 0.1em; padding: 16px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .wrap { padding: 32px 16px 60px; }
    .page-title { font-size: 1.5rem; }
}
