/* --- START OF FILE static/releases-styles.css ---
   THE NANOVERSE — Desktop Releases Archive (NV-SUB-A)
   Lives on the portal's design tokens (see portal-styles.css) and the
   "Earthrise" visual language: deep space backdrop, glass rows, mono badges. */

/* ══════════════════════════════════════════════════════════════════
   DOCUMENT FLOW: restore page scrolling
   portal-styles.css locks html/body (height: 100%; overflow: hidden) for the
   welcome experience's fixed-viewport sections. The releases archive is a
   normal scrolling document, so undo that lock on this page only.
   ══════════════════════════════════════════════════════════════════ */

html.nv-releases-page,
html.nv-releases-page body.nv-releases-body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Themed document scrollbar to match the deep-space look */
html.nv-releases-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) #07080f;
}

html.nv-releases-page::-webkit-scrollbar {
    width: 10px;
}

html.nv-releases-page::-webkit-scrollbar-track {
    background: #07080f;
}

html.nv-releases-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid #07080f;
}

html.nv-releases-page::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.45);
}

/* ══════════════════════════════════════════════════════════════════
   BACKDROP: CSS starfield (lightweight — no WebGL on this page)
   ══════════════════════════════════════════════════════════════════ */

.nv-releases-body {
    background: #07080f;
    color: var(--portal-text-primary, #e6e8ff);
    min-height: 100vh;
    overflow-x: hidden;
}

.nv-rl-starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 41% 14%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 82%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 67% 34%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 61%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 18%, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
        radial-gradient(1px 1px at 7% 87%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
        radial-gradient(ellipse 60% 45% at 50% -10%, rgba(56, 189, 248, 0.10), transparent 70%),
        radial-gradient(ellipse 45% 35% at 85% 110%, rgba(124, 77, 255, 0.08), transparent 70%);
    background-size: 640px 640px, 520px 520px, 720px 720px, 560px 560px, 680px 680px, 600px 600px, 760px 760px, 540px 540px, 100% 100%, 100% 100%;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE FRAME
   ══════════════════════════════════════════════════════════════════ */

.nv-rl-page {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 7.5rem 2rem 5rem;
}

.nv-rl-heading-block {
    text-align: center;
    margin-bottom: 2.6rem;
}

.nv-rl-heading {
    font-family: var(--portal-font-title, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.nv-rl-heading-block .nv-cw-divider {
    margin: 0.9rem auto 1.1rem;
}

.nv-rl-subheading {
    font-family: var(--portal-font-body, 'Inter', sans-serif);
    font-size: clamp(0.92rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    color: var(--portal-text-secondary, #a7adc4);
    max-width: 620px;
    margin: 0 auto;
}

.nv-rl-subheading strong {
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   ARCHIVE META ROW
   ══════════════════════════════════════════════════════════════════ */

.nv-rl-archive-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    padding: 0 0.35rem;
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nv-rl-count {
    color: var(--portal-accent-primary, #38bdf8);
}

.nv-rl-source {
    color: var(--portal-text-muted, #6b7394);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nv-rl-source a {
    color: var(--portal-text-secondary, #a7adc4);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--portal-transition-fast, all 0.2s ease);
}

.nv-rl-source a:hover {
    color: #ffffff;
    border-bottom-color: rgba(56, 189, 248, 0.6);
}

/* ══════════════════════════════════════════════════════════════════
   ARCHIVE TABLE (glass rows on deep space)
   ══════════════════════════════════════════════════════════════════ */

.nv-rl-table-wrap {
    position: relative;
}

.nv-rl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.nv-rl-table thead th {
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--portal-text-muted, #6b7394);
    text-align: left;
    padding: 0 1.1rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nv-rl-table tbody tr {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s var(--portal-ease-spring, ease), transform 0.3s var(--portal-ease-spring, ease);
    animation: rl-row-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rl-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nv-rl-table tbody tr:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.nv-rl-table tbody td {
    vertical-align: top;
    padding: 1.05rem 1.1rem;
    background: transparent;
}

/* Row enter animation stagger (set inline by JS via --row-index) */
.nv-rl-table tbody tr { animation-delay: calc(var(--row-index, 0) * 55ms); }

/* First/last cells carry the row's rounded corners */
.nv-rl-table tbody td:first-child { border-radius: 14px 0 0 14px; }
.nv-rl-table tbody td:last-child { border-radius: 0 14px 14px 0; }

/* ── Tag column ── */
.rl-tag {
    display: inline-block;
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--portal-accent-primary, #38bdf8);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

/* ── Title column ── */
.rl-title {
    font-family: var(--portal-font-title, 'Plus Jakarta Sans', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rl-date {
    display: block;
    margin-top: 4px;
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--portal-text-muted, #6b7394);
}

/* ── Notes column ── */
.col-notes { width: 44%; }

.rl-notes {
    font-family: var(--portal-font-body, 'Inter', sans-serif);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--portal-text-secondary, #a7adc4);
}

.rl-notes strong { color: #ffffff; font-weight: 600; }

.rl-notes .rn-heading {
    font-family: var(--portal-font-title, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.15rem 0 0.4rem;
}

.rl-notes .rn-paragraph { margin: 0 0 0.5rem; }

.rl-notes .rn-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rl-notes .rn-list li {
    position: relative;
    padding-left: 0.95rem;
}

.rl-notes .rn-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--portal-accent-primary, #38bdf8);
}

.rl-notes a {
    color: var(--portal-accent-primary, #38bdf8);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
}

.rl-notes a:hover { color: #7dd3fc; }

.rl-notes code {
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.82em;
    padding: 0.08em 0.35em;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
}

/* Collapsed state: clamp to three lines */
.rl-notes.rl-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rl-notes-toggle {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--portal-accent-primary, #38bdf8);
    transition: var(--portal-transition-fast, all 0.2s ease);
}

.rl-notes-toggle:hover { color: #7dd3fc; }

.rl-notes-toggle i { font-size: 0.55rem; transition: transform 0.25s ease; }

.rl-notes-toggle.expanded i { transform: rotate(180deg); }

/* ── Label column ── */
.rl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

.rl-chip .rl-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.rl-chip-pre {
    color: #ffab40;
    background: rgba(255, 171, 64, 0.08);
    border: 1px solid rgba(255, 171, 64, 0.35);
}

.rl-chip-stable {
    color: #00e676;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.35);
}

/* ── Download column ── */
.col-dl { width: 150px; }

.rl-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.1rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #161822 0%, #0d0f15 50%, #08090d 100%);
    color: #ffffff;
    font-family: var(--portal-font-title, 'Plus Jakarta Sans', sans-serif);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--portal-ease-spring, ease);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.65);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.rl-dl-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(56, 189, 248, 0.16),
        inset 0 1px 2px rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.rl-dl-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.rl-dl-btn i { font-size: 0.72rem; }

/* ══════════════════════════════════════════════════════════════════
   LOADING SKELETON & ERROR STATE
   ══════════════════════════════════════════════════════════════════ */

.nv-rl-skeleton { display: flex; flex-direction: column; gap: 10px; }

.rl-skel-row {
    height: 74px;
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 60%);
    background-size: 200% 100%;
    animation: rl-skel 1.4s ease-in-out infinite;
}

.rl-skel-row:nth-child(2) { animation-delay: 0.15s; }
.rl-skel-row:nth-child(3) { animation-delay: 0.3s; }
.rl-skel-row:nth-child(4) { animation-delay: 0.45s; }

@keyframes rl-skel {
    0% { background-position: 120% 0; }
    100% { background-position: -80% 0; }
}

.nv-rl-error {
    text-align: center;
    padding: 3.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--portal-text-secondary, #a7adc4);
    font-family: var(--portal-font-body, 'Inter', sans-serif);
    font-size: 0.92rem;
    line-height: 1.65;
}

.nv-rl-error i {
    display: block;
    font-size: 1.4rem;
    color: var(--portal-accent-primary, #38bdf8);
    margin-bottom: 0.8rem;
}

.nv-rl-error a { color: var(--portal-accent-primary, #38bdf8); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE: table collapses into stacked cards
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
    .nv-rl-page { padding: 6.2rem 1.1rem 3.5rem; }

    .nv-rl-table { border-spacing: 0 12px; }

    .nv-rl-table thead { display: none; }

    .nv-rl-table tbody tr {
        display: block;
        border-radius: 16px;
        padding: 0.4rem 0.2rem;
    }

    .nv-rl-table tbody td {
        display: block;
        padding: 0.55rem 0.9rem;
    }

    .nv-rl-table tbody td:first-child,
    .nv-rl-table tbody td:last-child { border-radius: 0; }

    .nv-rl-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        font-family: var(--portal-font-mono, 'JetBrains Mono', monospace);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--portal-text-muted, #6b7394);
    }

    .nv-rl-table tbody td.col-tag::before,
    .nv-rl-table tbody td.col-label::before {
        display: block;
    }

    .col-notes { width: auto; }
    .col-dl { width: auto; }

    .rl-dl-btn { width: 100%; }
}

@media (max-width: 480px) {
    .nv-rl-heading { font-size: clamp(1.6rem, 7vw, 2rem); }
    .nv-rl-subheading { font-size: 0.88rem; }
}
/* --- END OF FILE static/releases-styles.css --- */
