/* =========================================================
   World / Codex Layout
   ========================================================= */

.world-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* =========================================================
   Codex Sidebar
   ========================================================= */

.world-sidebar {
    position: sticky;
    top: 120px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    padding: 20px 18px;
}

/* Sidebar title */
.world-sidebar h3 {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* List reset */
.world-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item spacing */
.world-sidebar li {
    margin-bottom: 4px;
}

/* Link styling */
.world-sidebar li a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;

    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.3;

    color: inherit;
    opacity: 0.75;

    transition:
        background 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

/* Hover */
.world-sidebar li a:hover {
    background: rgba(255,255,255,0.06);
    opacity: 1;
}

/* Active item */
.world-sidebar li.active a {
    background: rgba(255,255,255,0.10);
    opacity: 1;
    font-weight: 600;
    position: relative;
}

/* Left accent bar for active page */
.world-sidebar li.active a::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 6px;
    bottom: 6px;
    width: 3px;

    background: linear-gradient(
        180deg,
        #8fd3f4,
        #84fab0
    );

    border-radius: 3px;
}