﻿/* HERO */
.archive-hero {
    text-align: center;
    padding: 3rem 1rem;
    color: #0e0b1a;
}

    .archive-hero h1 {
        /* letter-spacing: 0.08em; */
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .archive-hero p {
        font-size: 1rem;
        color: #7b7c91;
    }

/* NAV GRID */
.archive-nav {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 0 1rem;
    display: grid;
}

.nav-card {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    color: black;
    text-decoration: none;
    transition: 0.2s ease;
    border: solid .1em rgb(167 157 157);
}

    .nav-card:hover {
        transform: translateY(-3px);
        color: white !important;
        box-shadow: 0 0 20px rgba(150, 180, 255, 0.4);
        background: radial-gradient(circle at top left, #5e17eb, #ff6363);
    }

    .nav-card h3 {
        margin: 0 0 0.4rem;
        font-size: 1.1rem;
    }

    .nav-card p {
        margin: 0;
        font-size: 0.9rem;
        color: #000000;
    }
/* FEATURED */
.archive-featured h2 {
    background: #ffffff;
    padding: 1em;
    border-radius: 1em;
    display: block;
    width: fit-content;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.featured-card {
    background: linear-gradient(135deg, #0a0715, #14172b);
    border-radius: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(110, 140, 230, 0.5);
    color: #e8eaff;
}

    .featured-card h3 {
        margin: 0 0 0.4rem;
    }

    .featured-card p {
        margin: 0;
        color: #d0d4ff;
    }

.story-arcs {
    margin: 3rem auto;
    color: #000000;
    font-family: system-ui, sans-serif;
}

    .story-arcs h2 {
        text-align: center;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 0.9rem;
        color: #000000;
        border: solid .1em rgb(167 157 157);
    }

.arc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.arc-card {
    background: white;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    border: solid .1em rgb(167 157 157);
    box-shadow: 0 0 18px rgba(120, 150, 255, 0.25);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .arc-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 26px rgba(150, 190, 255, 0.45);
        background: linear-gradient(90deg, rgb(104 31 230), rgb(247 89 100));
        color: white
    }

    .arc-card h3 {
        margin: 0 0 0.4rem;
        font-size: 1.05rem;
    }

    .arc-card p {
        margin: 0 0 0.7rem;
        font-size: 0.9rem;
        color: #000000;
    }

.arc-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #000000;
}

/* Locked / mystery arc */
.locked {
    /* filter: grayscale(100%) brightness(0.45); */
    position: relative;
}

    .locked::after {
        content: "Locked";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(90deg, rgb(104 31 230), rgb(247 89 100));
        color: #f5f5ff;
        font-size: 0.85rem;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        border-radius: inherit !important;
    }

.codex {
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    color: #000000;
}

.codex-filter {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    border: solid .1em rgb(167 157 157);
    height: fit-content;
}

    .codex-filter h2 {
        letter-spacing: 0.12em;
        margin-bottom: 0.8rem;
        padding: 0;
        color: #020202;
        background: transparent;
        border: 0;
    }

.filter-pill {
    display: block;
    width: 100%;
    margin-bottom: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgb(167 157 157);
    background: transparent;
    color: rgb(0 0 0);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
}

    .filter-pill.active,
    .filter-pill:hover {
        background: linear-gradient( 90deg, #621ceb, #ff5d5d);
        color: white;
    }

.codex-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.codex-entry {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgb(167 157 157);
}

    .codex-entry header {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .codex-entry h3 {
        margin: 0;
        font-size: 1rem;
    }

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgb(0 0 0 / 70%);
    color: #000000;
    background: #9f35b480;
}

.codex-entry p {
    margin: 0.2rem 0 0.7rem;
    font-size: 0.9rem;
    color: #040404;
}

.codex-entry footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #2a2a2f;
}

.atlas {
    margin: 3rem auto;
    color: #f5f5ff;
}


.atlas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.realm {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    border: solid .1em rgb(167 157 157);
    color: black;
}

    .realm header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem;
    }

    .realm h3 {
        margin: 0;
        font-size: 1rem;
    }

.threat {
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid;
}

.threat-high {
    color: #ffffff;
    background: rgb(105 7 27 / 91%);
}

.threat-med {
    border-color: #7d6bff;
    color: #b3caff;
    background: rgb(60 91 255 / 28%);
}

.threat-low {
    border-color: #6bff94;
    color: #6bff94;
    background: rgb(60 255 140 / 12%);
}

.realm p {
    margin: 0.5rem 0 0.6rem;
    font-size: 0.9rem;
    color: #000000;
}

.realm-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #000000;
}

h2 {
    text-align: center;
    font-size: 0.9rem;
    color: #000000;
    text-transform: uppercase;
    background: #ffffff;
    padding: 1em;
    border-radius: 1em;
    display: block;
    width: fit-content;
    border: solid .1em rgb(167 157 157);
}

.codex-entry {
    transition: opacity .25s ease, transform .25s ease;
}

    .codex-entry[style*="none"] {
        opacity: 0;
        transform: translateY(5px);
    }

.gradient-shadow {
    position: relative;
    z-index: 1;
    color: white;
}

    .gradient-shadow::before {
        content: "";
        position: absolute;
        inset: -0.2rem; /* controls shadow size */
        z-index: -1;
        border-radius: inherit;
        background: linear-gradient(90deg, rgb(104 31 230), rgb(247 89 100));
    }

.region {
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid;
    color: #ffffff;
    background: rgb(105 31 228);
}

.code-img {
    width: 5em;
    border-radius: 1em;
}
