/* MOL-GOD - Extended Bibliography ("Bibliografia rozszerzona")
 * Per-source color-coded badges:
 *   pubchem=#1976d2, chembl=#7b1fa2, metabolights=#388e3c,
 *   metabolomics_wb=#f57c00, epa_comptox=#c2185b, health_canada=#d32f2f,
 *   doaj=#5d4037, openalex=#455a64
 */

.molgod-extended-bibliography {
    margin: 18px 0 22px;
    padding: 16px 18px;
    background: #fafbfd;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #1f2937;
}

.molgod-extended-bibliography .molgod-biblio-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 6px;
}

.molgod-extended-bibliography .molgod-biblio-count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-left: 6px;
}

.molgod-extended-bibliography .molgod-biblio-note {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 10px;
    font-style: italic;
}

.molgod-extended-bibliography .molgod-biblio-list {
    margin: 0;
    padding-left: 22px;
    list-style: decimal;
}

.molgod-extended-bibliography .molgod-biblio-item {
    margin-bottom: 10px;
    padding: 6px 8px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.molgod-extended-bibliography .molgod-biblio-item:hover {
    background: #f3f4f6;
}

/* Per-source border-left + badge colors */
.molgod-extended-bibliography .molgod-biblio-item[data-source="pubchem"]         { border-left-color: #1976d2; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="chembl"]          { border-left-color: #7b1fa2; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="metabolights"]    { border-left-color: #388e3c; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="metabolomics_wb"] { border-left-color: #f57c00; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="epa_comptox"]     { border-left-color: #c2185b; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="health_canada"]   { border-left-color: #d32f2f; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="doaj"]            { border-left-color: #5d4037; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="openalex"]        { border-left-color: #455a64; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="echa"]            { border-left-color: #00695c; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="nist"]            { border-left-color: #283593; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="wikidata"]        { border-left-color: #6a1b9a; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="crossref"]        { border-left-color: #37474f; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="europepmc"]       { border-left-color: #0277bd; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="chemrxiv"]        { border-left-color: #bf360c; }
.molgod-extended-bibliography .molgod-biblio-item[data-source="builtin"]         { border-left-color: #546e7a; }

.molgod-extended-bibliography .molgod-biblio-source-badge {
    display: inline-block;
    padding: 2px 7px;
    margin-right: 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
    line-height: 1.4;
}

.molgod-extended-bibliography .molgod-biblio-cite {
    color: #1f2937;
}

.molgod-extended-bibliography .molgod-biblio-url {
    color: #1d4ed8;
    text-decoration: underline;
    margin-left: 4px;
}
.molgod-extended-bibliography .molgod-biblio-url:hover {
    color: #1e3a8a;
}

.molgod-extended-bibliography .molgod-biblio-accessed,
.molgod-extended-bibliography .molgod-biblio-license {
    font-size: 11px;
    color: #6b7280;
    margin-left: 4px;
}

.molgod-extended-bibliography .molgod-biblio-license {
    background: #eef2ff;
    color: #3730a3;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.molgod-extended-bibliography .molgod-biblio-copy {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.molgod-extended-bibliography .molgod-biblio-copy:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Responsive — keep readable on narrow screens */
@media (max-width: 600px) {
    .molgod-extended-bibliography {
        padding: 12px;
        font-size: 12px;
    }
    .molgod-extended-bibliography .molgod-biblio-list {
        padding-left: 18px;
    }
    .molgod-extended-bibliography .molgod-biblio-source-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
}
