/* ============================================================
   IRIX Network — main.css
   Shared stylesheet for all static pages.
   Original design by Raion. Redesign © 2026 IRIX Network.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg-page:       #171616;
    --bg-content:    #1e1e1e;
    --bg-box:        #212121;
    --bg-nav:        #000000;
    --border:        #111111;
    --border-accent: #0f0f0f;
    --purple:        rgb(158, 0, 211);
    --purple-hover:  rgb(190, 50, 240);
    --text-primary:  #dad8d8;
    --text-muted:    #a3a3a3;
    --text-heading:  #bababa;
    --link:          #bfbfbf;
    --link-hover:    #dad8d8;
    --mono:          "Share Tech Mono", "Consolas", "Andale Mono", monospace;
    --sans:          "Rajdhani", sans-serif;
    --max-width:     980px;
    --nav-height:    36px;
    --header-height: 52px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ── Base ──────────────────────────────────────────────────── */
body {
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }
a:visited { color: var(--link); }

img { max-width: 100%; height: auto; display: block; }

.monospace { font-family: var(--mono); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    background: #171616;
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.logo-irix    { color: var(--purple); }
.logo-network { color: #ffffff; }

.site-logo:hover .logo-irix    { color: var(--purple-hover); }
.site-logo:hover .logo-network { color: var(--text-primary); }

/* ── Main Nav ──────────────────────────────────────────────── */
.main-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-inner a {
    display: inline-flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.03em;
    border-right: 1px solid #1a1a1a;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-inner a:first-child { border-left: 1px solid #1a1a1a; }

.nav-inner a:hover,
.nav-inner a.active {
    background: var(--purple);
    color: #ffffff;
}

/* ── User Bar ──────────────────────────────────────────────── */
.user-bar {
    background: #0d0d0d;
    border-bottom: 1px solid var(--border-accent);
    height: 28px;
    display: flex;
    align-items: center;
}

.user-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.user-bar a { font-size: 12px; color: var(--text-muted); }
.user-bar a:hover { color: var(--text-primary); }
.user-bar-sep { color: #333; font-size: 12px; user-select: none; }

/* ── Page Wrap ─────────────────────────────────────────────── */
.page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    flex: 1;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
    padding: 32px 0 24px;
}

.page-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.6em;
    color: var(--text-heading);
    letter-spacing: 0.04em;
}

/* ── Content Area ──────────────────────────────────────────── */
.content-area {
    max-width: 720px;
    padding-bottom: 48px;
}

.content-area--wide {
    max-width: 100%;
}

/* ── Hero (index only) ─────────────────────────────────────── */
.hero {
    padding: 48px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.hero-cube {
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0.92;
    animation: cube-float 6s ease-in-out infinite;
}

@keyframes cube-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.hero-tagline {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tagline::before { content: '[ '; color: var(--purple); }
.hero-tagline::after  { content: ' ]'; color: var(--purple); }

/* ── Status Bar (index only) ───────────────────────────────── */
.status-bar {
    background: var(--bg-box);
    border: 1px solid var(--border);
    border-top: 2px solid var(--purple);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.status-bar .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.status-bar .status-text { color: #2ecc71; }

/* ── Block ─────────────────────────────────────────────────── */
.block {
    background: var(--bg-content);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.block-header {
    background: var(--bg-box);
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--purple);
    flex-shrink: 0;
}

.block-body {
    padding: 18px 16px;
    font-size: 13.5px;
    line-height: 1.8;
}

.block-body p + p { margin-top: 12px; }

.block-body a {
    color: var(--purple-hover);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.block-body a:hover {
    color: #ffffff;
    border-bottom-color: var(--purple);
}

/* ── Contributors List (about.html) ────────────────────────── */
.contributor-list { list-style: none; }

.contributor-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.contributor-list li:last-child { border-bottom: none; }

.contributor-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--purple-hover);
    min-width: 130px;
    flex-shrink: 0;
}

.contributor-role { color: var(--text-muted); }

/* ── Affiliate List (affiliated.html) ──────────────────────── */
.affiliate-list { list-style: none; }

.affiliate-entry {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
}

.affiliate-entry:last-child { border-bottom: none; }

.affiliate-logo {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliate-logo img {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
}

.affiliate-logo--text {
    background: var(--bg-box);
    border: 1px solid var(--border);
    height: 48px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.affiliate-name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.affiliate-name a {
    color: var(--purple-hover);
    transition: color 0.2s ease;
}

.affiliate-name a:hover { color: #ffffff; }

.affiliate-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── File List (files.html) ─────────────────────────────────── */
.file-list { list-style: none; }

.file-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.file-entry:last-child { border-bottom: none; }

.file-entry--offline { opacity: 0.55; }

.file-entry__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-entry__name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--purple-hover);
    transition: color 0.2s ease;
}

.file-entry__name:hover { color: #ffffff; }

.file-entry__name--offline {
    color: var(--text-muted);
    cursor: default;
}

.file-entry__proto {
    font-size: 11px;
    color: #444;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}

.file-entry__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.file-entry__location {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
    border: 1px solid;
}

.badge--online {
    color: #2ecc71;
    border-color: #1a5c38;
    background: #0d1f16;
}

.badge--offline {
    color: #888;
    border-color: #333;
    background: #111;
}

/* ── Resource List (resources.html) ─────────────────────────── */
.resource-list { list-style: none; }

.resource-entry {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.resource-entry:last-child { border-bottom: none; }

.resource-entry__name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--purple-hover);
    display: inline-block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.resource-entry__name:hover { color: #ffffff; }

.resource-entry__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: #0d0d0d;
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    font-size: 12px;
    color: #555;
    font-family: var(--mono);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-inner a { color: #555; }
.footer-inner a:hover { color: var(--text-muted); }
.footer-partners { color: #444; }
.footer-sep { color: #333; margin: 0 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
    .nav-inner a         { padding: 0 10px; font-size: 12px; }
    .hero-cube           { width: 100px; height: 100px; }
    .affiliate-entry     { flex-direction: column; }
    .affiliate-logo      { width: 100%; }
    .affiliate-logo img  { max-width: 120px; }
    .contributor-list li { flex-direction: column; gap: 2px; }
    .file-entry          { flex-wrap: wrap; }
    .footer-inner        { flex-direction: column; align-items: flex-start; }
}
