/* Phase 3-1: vulnerability list/detail */

.vulnerability-filter {
    margin-bottom: 24px;
}

.vulnerability-filter .search-bar--catalog {
    margin-bottom: 12px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row select {
    min-width: 170px;
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #ccd9e6;
    border-radius: 6px;
    background: #fff;
    color: #26384c;
}

.filter-button {
    height: 40px;
    padding: 0 18px;
    border: 1px solid #1f73d2;
    border-radius: 6px;
    background: #fff;
    color: #1769c2;
    font-weight: 700;
    cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible {
    background: #edf6ff;
}

.vulnerability-table td:nth-child(1) {
    white-space: nowrap;
}

.vulnerability-table td:nth-child(2) {
    white-space: nowrap;
    font-weight: 700;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.severity-critical {
    background: #ffe3e3;
    color: #aa1b1b;
}

.severity-high {
    background: #ffede2;
    color: #b34a16;
}

.severity-medium {
    background: #fff3cf;
    color: #956a00;
}

.severity-low {
    background: #e8f5eb;
    color: #24713a;
}

.severity-unknown {
    background: #edf1f5;
    color: #66778a;
}

.product-chip {
    display: inline-flex;
    margin: 2px 4px 2px 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf5fc;
    color: #315c83;
    font-size: 0.72rem;
    font-weight: 700;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 0.84rem;
}

.pagination a {
    padding: 5px 10px;
    border: 1px solid #d4e0ec;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
}

.vulnerability-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.version-title-row--vulnerability {
    justify-content: flex-start;
    gap: 12px;
}

.vulnerability-title {
    margin: 8px 0 0;
    color: #43576e;
    font-size: 0.95rem;
}

.vulnerability-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    color: #78889a;
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}

.vulnerability-layout .detail-card > p {
    margin-bottom: 0;
}

.detail-list--compact {
    margin-bottom: 0;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reference-list a {
    display: block;
    padding: 8px 10px;
    border: 1px solid #d9e5f0;
    border-radius: 5px;
    background: #f8fbfe;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-row label,
    .filter-row select,
    .filter-button {
        width: 100%;
    }

    .vulnerability-title-row {
        display: block;
    }

    .vulnerability-dates {
        margin-top: 10px;
        padding-top: 0;
        text-align: left;
    }
}
