/* ===== Allowed mods page ===== */
.mods-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.mods-card {
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    background: rgba(15, 20, 38, 0.8);
    border: 1px solid var(--p-line);
}

.mods-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mods-card p {
    color: var(--p-muted);
    font-size: 0.95rem;
}

.mods-card p + p {
    margin-top: 0.6rem;
}

.mods-card.request {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border-color: rgba(140, 123, 255, 0.4);
    background: linear-gradient(160deg, rgba(107, 70, 193, 0.18), rgba(15, 20, 38, 0.85));
}

.mods-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.mods-btn:hover {
    transform: translateY(-2px);
}

.mods-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* Panel */
.mods-panel {
    border-radius: 16px;
    background: rgba(10, 14, 28, 0.85);
    border: 1px solid var(--p-line);
    overflow: hidden;
}

.mods-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--p-line);
}

.mods-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #fff;
}

.mods-heading .mods-total {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(93, 255, 138, 0.12);
    color: #5dff8a;
    font-size: 0.8rem;
}

.mods-toolbar .page-search {
    margin: 0;
    height: 42px;
    max-width: 280px;
    flex: 1 1 220px;
}

.mod-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--p-line);
}

.mod-tabs button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--p-line);
    background: transparent;
    color: var(--p-muted);
    font: 500 0.85rem 'Roboto', sans-serif;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mod-tabs button:hover {
    color: #fff;
}

.mod-tabs button.active {
    color: #fff;
    border-color: rgba(79, 168, 255, 0.6);
    background: rgba(79, 168, 255, 0.14);
}

.mod-tab-n {
    font-size: 0.75rem;
    opacity: 0.7;
}

.mod-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mod {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mod:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mod:hover {
    background: rgba(255, 255, 255, 0.025);
}

.mod-main {
    min-width: 0;
}

.mod-name {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--p-text);
    font-weight: 500;
    text-decoration: none;
}

.mod-name:hover {
    color: #9cc8ff;
}

.mod-ext {
    font-size: 0.75rem;
    opacity: 0.5;
}

.mod-cat {
    display: block;
    font-size: 0.75rem;
    color: var(--p-muted);
    opacity: 0.8;
}


.mod-status {
    flex: 0 0 auto;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5dff8a;
    background: rgba(93, 255, 138, 0.1);
    border: 1px solid rgba(93, 255, 138, 0.3);
}


.mods-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    color: var(--p-muted);
}

.mods-empty {
    padding: 2rem 1.2rem;
    text-align: center;
    color: var(--p-muted);
}

/* Not allowed */
.mods-banned {
    margin-top: 1.6rem;
    border-color: rgba(255, 92, 108, 0.35);
}

.mods-banned ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.4rem;
    margin-top: 0.8rem;
    list-style: none;
}

.mods-banned li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--p-text);
    font-size: 0.92rem;
}

.mods-banned li::before {
    content: "\2715";
    position: absolute;
    left: 0;
    color: #ff5c6c;
    font-weight: 700;
}

/* Link card on the rules page */
.mods-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 61, 0.35);
    background: rgba(255, 200, 61, 0.06);
}

.mods-callout b {
    display: block;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
}

.mods-callout span {
    color: var(--p-muted);
    font-size: 0.9rem;
}

.mods-callout a {
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: #ffc83d;
    color: #1a1400;
    font-weight: 700;
    text-decoration: none;
}

/* Button in the rules page hero */
.rules-mods-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    background: #ffc83d;
    color: #1a1400;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(255, 200, 61, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rules-mods-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 200, 61, 0.35);
}

.rules-mods-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 760px) {
    .mod-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mod-tabs::-webkit-scrollbar {
        display: none;
    }

    .mods-intro,
    .mod-list,
    .mods-banned ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .mod:nth-child(odd) {
        border-right: 0;
    }

    .mods-toolbar .page-search {
        max-width: none;
    }

    .mods-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}
